Blueprint editor hands-on examples
This topic provides hands-on examples to help you solve common issues in the blueprint editor.
Video link
Watch the video tutorial: Blueprint editor hands-on examples.
Example overview
Use a tab list to control component visibility
This example shows how to use the blueprint editor to control the visibility of multiple components with a Tab List component.
Clicking TAB1 displays the column chart component. Clicking TAB2 displays the line chart component.
For the steps to configure this interaction, see Use a tab list to control component visibility.
Method 1: Use a branch judgment node
In the canvas editor, add the components for the interaction. This example uses a Column Chart, a Tab List, and an Area Chart component. Right-click each component and export them to the blueprint editor.
In the blueprint editor canvas, connect the nodes as shown in the following figure. Then, add the processing method in the branch judgment node.
NoteIf the Tab List parameter
id=1triggers the action, the Area Chart component is shown. Otherwise, it is hidden.If the Tab List parameter
id=2triggers the action, the Column Chart component is shown. Otherwise, it is hidden.
Method 2: Use a serial processing node
In the canvas editor, add the components for the interaction. Overlap the Area Chart and Column Chart components. Right-click them and select Group.

In the Layers panel, click the grouped object. Enable Carousel for objects in group and set Trigger Method to Event Trigger.
Right-click the Tab List and the Group and export them to the blueprint editor. Connect the nodes as shown in the following figure. Then, add the processing method in the serial processing node.
NoteWhen a tab is clicked, the
{id:"1"}parameter from the event is passed to the serial data processing node and becomes{index:0}. The value0indicates that the component index within the group starts from 0.
How to distribute data using merge requests
This example shows how to use the blueprint editor to request data with a General Title component and distribute it to a Ticker Board and a Multiline Text component.
The steps to configure this interaction are as follows. For a detailed demonstration, see Distribute data to multiple components.
In the canvas editor, add a Ticker Board and a General Title component. Clear the title, prefix, and suffix content of the Ticker Board component. Move the General Title component outside the canvas and modify its data.

Export the components to the blueprint editor. Add a Sequence Execution node and add the processing method for the node.

Implement cross-screen interaction
This example shows how to use the WebSocket Node in the blueprint editor to implement cross-screen interaction.
The steps to configure this interaction are as follows. For a detailed demonstration, see Implement cross-screen interaction.
You can establish a WebSocket service for two screens. For more information about how to build your own service or download the DataV-WS service package, see
Build a custom WebSocket node service and download the DataV-WS service package.
Create two visualization applications: a control end and a receiving end.
For the control end, add a Tab List component and export it to the blueprint editor. For the receiving end, add a General Title component and export it to the blueprint editor.
Set the sender's blueprint configuration.

Configure the blueprint for the receiving end.

Hands-on demo
Use a tab list to control component visibility
Method 1:
On the canvas editor page, go to the All Assets tab. Add the components for the interaction to the canvas. This example uses a Tab List, a List Carousel, and a Lucky Draw component.
After adding the components, select them in the Layers panel on the left. Right-click and select Export to Blueprint Editor.
On the blueprint editor page, select the components from the Imported Nodes panel on the left and add them to the canvas. Add two Branch Judgment nodes and connect them as shown in the following figure.

Click the upper branch judgment node. In the Configuration panel on the right, add the following processing method in the Other Configurations section:
return data.id == 1;Similarly, add the following processing method for the lower branch judgment node:
return data.id == 2;In the upper-right corner of the blueprint editor, click the Preview
icon to view the result.
Method 2: Use a serial processing node
On the canvas editor page, go to the All Assets tab. Add the components for the interaction to the canvas. This example uses a Tab List, a Table with Progress Charts, and a Key-Value Table component.
In the canvas editor, overlap the Table with Progress Charts and Key-Value Table components. In the Layers panel on the left, select both components. Right-click on the canvas and select Group.

In the Layers panel, click the grouped object. Enable Carousel for objects in group and set Trigger Method to Event Trigger.
Right-click the Tab List and the Group and select Export to Blueprint Editor. On the blueprint editor page, add the component nodes to the canvas from the Imported Nodes panel on the left.
In the blueprint editor canvas, add a Serial Data Processing node. Connect the nodes as shown in the following figure and add the following method for the serial data processing node:
return { "index": data.id - 1 }NoteWhen a tab is clicked, the
{id:"1"}parameter from the event is passed to the serial data processing node and becomes{index:0}. The value0indicates that the component index within the group starts from 0.In the upper-right corner of the blueprint editor, click the Preview
icon to view the result.
NoteWhen TAB1 is selected, the canvas displays the Table with Progress Charts component. When TAB2 is selected, the canvas displays the Key-Value Table component.
For detailed instructions on how to use a tab list to control component visibility, see: How to use a tab list to control component visibility.
How to Distribute Data with Merge Requests
On the canvas editor page, go to the All Assets tab. Add the components for the interaction to the canvas. This example uses a General Title, a Multiline Text, and a Ticker Board component.
Select the General Title component. In the data configuration panel on the right, click Configure Data Source and set the data source as follows:
[ { "num": "123", "text": "This is the multiline text component", "value": "Data receiving component" } ]On the canvas editor page, select the three components in the Layers panel. Right-click each one and select Export to Blueprint Editor.
On the blueprint editor page, click the three component nodes in the Imported Nodes panel to add them to the canvas. Add a Sequence Execution node to the canvas and connect the nodes as shown in the following figure.

After connecting the nodes, add two methods for the sequence execution node in the Other Configurations section on the right.
Retrieve text data:
return [{ value:data[0].text }];Retrieve ticker board data:
return [{ value:data[0].num }];
In the upper-right corner of the blueprint editor configuration page, click the Preview
icon to view the data distribution result.
For detailed instructions on distributing data using merge requests, see How to distribute data using merge requests.
Implement cross-screen interaction
You can establish a WebSocket service for two visualization applications. For information about how to build your own service or download the DataV-WS service package, see
Build your own WebSocket node service and download the DataV-WS service package.
Create two visualization applications: a control end and a receiving end.
In the control end visualization application, add a Tab List component and export it to the blueprint editor.
In the blueprint editor canvas, add a Serial Data Processing node and a WebSocket node. Connect them as shown in the following figure.
NoteConfigure the IP address of the WebSocket node service in the Other Configurations section on the right. There are two scenarios:
If you open the visualization application with HTTP, use the ws protocol. For example: ws://127.0.0.1:8181.
If you open the visualization application with HTTPS, use the wss protocol. For example: wss://xxx.
The screen ID and screen name are automatically filled.

After setting up the WebSocket node, add the following method for the serial data processing node in the Other Configurations section:
return [{"value":data.content}];After configuring the control end, open the receiving end visualization application. In the canvas editor, add a General Title component and export it to the blueprint editor.
On the blueprint editor page, add the General Title node from the Imported Nodes panel on the left to the canvas. Add a WebSocket node and connect them as shown in the following figure.
Configure the WebSocket node for the receiving end in the same way. The Message Name for Receive Message in the node must be the same as the Message Name for Send Message. In this example, set both to test.
After the setup is complete, click the Preview
icon in the upper-right corner of the blueprint editor configuration page to view the cross-screen interaction result.
For more information about how to implement cross-screen interaction, see How to implement cross-screen interaction.




icon to view the result.


icon to view the data distribution result.


icon in the upper-right corner of the blueprint editor configuration page to view the cross-screen interaction result.