Unit 3: Creating Your Dashboard in DTV


In this unit, you will learn how to create widgets in DTV to monitor battery status.

Prerequisites


Before you begin, please ensure the following.

  • The current OU has obtained and enabled Digital Twin Visualization. If not obtained, contact the system admin.

  • You need to be assigned the required asset permission and operation permission, and a menu group containing all menus in Digital Twin Visualization. If not assigned, contact the application administrator.

Step 1. Creating a Project and the Page


You need to create a project, and then a page to hold widgets.

  1. Log in to EnOS Application Portal and select Digital Twin Visualization from the application list.

  2. Select DTV Center > Dashboards from the navigation pane.

  3. Select New Project, and enter the name Demo. Select OK to create the project.

  4. To create a new page, select New Page.

    • For Name, enter Smart Battery Dashboard.

    • For Project, select Demo, the project that you just created.

    • For Template, leave it blank.

  5. Select OK to go to the Page Editor. Your page is created.

Step 2. Setting Your Overall Page Layout


Now you can configure the page to display the data.

Switch the theme to green in the right Page Settings. You can also change Background Color or upload your own Background Image.

Step 3. Creating a DTV Widget


Now, you will create and edit a DTV widget on the page you created.


You can choose many widgets on DTV for the best practice of data display and analysis. For instance:

  • Donut Gauge is good for measuring and displaying progress.

  • Horizontal Bar Chart is good for comparing data.

  • Map is good for displaying geographical information.

  • Mix Chart is good for visualizing and comparing trends.

  • Pie Chart is good for comparing and displaying the ratio of each data to the total.

  • Table is good for displaying complex data in an organized tabulated form.

  • Heat Map is good for comparing massive data and identifying anomalies by displaying data as color blocks.


For more information about other widgets on DTV, see Widgets.

Metric Card


To display the KPIs of multiple batteries, choose Metric Card.

  1. Select Add > Widget on the top toolbar.

  2. In the pop-up window, select Metric Card.

  3. In Basic Information > Basic Options, configure chart title: Status.

  4. In Data Fields, configure the data in your charts.

    • Data Source: LastestData.

    • Category: SmartBattery_Model, the model you have created.

    • Aggression: Raw Data.

    • Measurement:

      • health_level with the alias Health Level.

      • cycle_number with the alias Cycle Number.

      • current with the alias Current, temp with the alias Temp.

      • capacity, andvoltage with the alias Voltage.

  5. To enable more widget configuration items, select Advanced Mode on the top right of the toolbar.

  6. In Chart Style, configure measurement style and metric card style.

    • Measurement Style

      • health_level

        • Name Font: 14 pt.

        • Unit Name: %.

        • Value Font: Bold, 20 pt, and Green.

        • Decimal Places: 0.

        • Alignment: Left.

        • Name-Value Card Spacing: 0 px

        • Value Card Padding: 0 Up, 0 Down, 0 Left, 0 Right.

        • Name Card Padding: 0 Up, 0 Down, 0 Left, 0 Right.

      • cycle_number

        • Name Font: 14 pt.

        • Value Font: Bold, 20 pt, and Green.

        • Decimal Places: 0.

        • Alignment: Left.

        • Name-Value Card Spacing: 0 px

        • Value Card Padding: 0 Up, 0 Down, 0 Left, 0 Right.

        • Name Card Padding: 0 Up, 0 Down, 0 Left, 0 Right.

      • current

        • Name Font: 14 pt.

        • Unit Name: A.

        • Value Font: Bold, 20 pt, and Green.

        • Alignment: Left.

        • Name-Value Card Spacing: 0 px

        • Value Card Padding: 0 Up, 0 Down, 0 Left, 0 Right.

        • Name Card Padding: 0 Up, 0 Down, 0 Left, 0 Right.

      • temp

        • Name Font: 14 pt.

        • Unit Name: °C.

        • Value Font: Bold, 20 pt, and Green.

        • Alignment: Left.

        • Name-Value Card Spacing: 0 px

        • Value Card Padding: 0 Up, 0 Down, 0 Left, 0 Right.

        • Name Card Padding: 0 Up, 0 Down, 0 Left, 0 Right.

      • Capacity

        • Name Font: 14 pt.

        • Unit Name: KW.

        • Value Font: Bold, 20 pt, and Green.

        • Alignment: Left.

        • Name-Value Card Spacing: 0 px

        • Value Card Padding: 0 Up, 0 Down, 0 Left, 0 Right.

        • Name Card Padding: 0 Up, 0 Down, 0 Left, 0 Right.

      • voltage

        • Name Font: 14 pt.

        • Unit Name: V.

        • Value Font: Bold, 20 pt, and Green.

        • Alignment: Left.

        • Name-Value Card Spacing: 0 px

        • Value Card Padding: 0 Up, 0 Down, 0 Left, 0 Right.

        • Name Card Padding: 0 Up, 0 Down, 0 Left, 0 Right.

    • Metric Card Style

      • Layout: Row 2, Column 3.

      • Horizontal Spacing: 64 pt.

      • Show “Expand”: disable.

  7. To save your changes on the widget, select Save at the end of the page.

  8. To view your new widget on the dashboard, select back button back.

For more information about widget style configuration, see Metric Card.

Donut Gauge


To display the temperature of your batteries, choose Donut Gauge.

  1. Select Add > Widget on the top toolbar.

  2. In the pop-up window, select Donut Gauge.

  3. In Basic Information > Basic Options, configure chart title: Battery Health Level.

  4. In Data Fields, configure the data in your charts.

    • Data Source: LastestData.

    • Category: SmartBattery_Model, the model you have created.

    • Aggression: Raw Data.

    • Dimension: AssetName.

    • Measurement: health_level.

  5. Turn on Advanced Mode in the upper right corner of the toolbar to enable more chart configuration items.

  6. In Chart Style, configure style information, including layout, donut thickness, and widget color.

    • Layout: Rows 3, Columns 3.

    • Axis Range: Specify the data range 0 - 100.

    • Formatting Rules: By configuring the formatting rules for different intervals, when the values fall in different intervals, the color of the corresponding interval is displayed.

      • 0 - 40 is displayed as yellow.

      • 40 - 70 is displayed as blue.

      • 70 - 100 is displayed as green.

  7. To save your changes on the widget, select Save at the end of the page.

  8. To view your new widget on the dashboard, select back button back.


For more information about widget style configuration, see Donut Gauge.

Horizontal Bar Charts


To display the capacity of your batteries, choose Horizontal Bar Charts.

  1. Select Add > Widget on the top toolbar.

  2. In the pop-up window, select Horizontal Bar Chart.

  3. In Basic Information > Basic Options, configure chart title: Battery Capacity - Bar Chart.

  4. In Data Fields, configure the data in your charts.

    • Data Source: LastestData.

    • Category: SmartBattery_Model, the model you have created.

    • Aggression: Raw Data.

    • Dimension: AssetName.

    • Measurement: Capacity.

  5. In Chart Style, configure style information, including bar color, bar spacing, and axis style.

    • Color: Change the bar color to Gradient Blue in Measurement Style > Color.

    • Bar Spacing: You can specify the vertical spacing of each bar with different dimensions.

  6. To save your changes on the widget, select Save at the end of the page.

  7. To view your new widget on the dashboard, select back button back.


For more information about widget style configuration, see Horizontal Bar Chart.

Map


To display the geographical information of battery plants, choose Map.

  1. Select Add > Widget on the top toolbar.

  2. In the pop-up window, select Map.

  3. In Basic Information > Basic Options, configure the chart title, title font, title link, and description.

    • Title: Battery Map.

    • Hide Title: Enable.

  4. In Data Fields, configure the data in your charts.

    • Data Source: LastestData.

    • Category: SmartBattery_Model, the model you have created.

    • Aggression: Raw Data.

    • Dimension: longitude and latitude.

    • Measurement: AssetName.

  5. In Chart Style, configure style information, including map and interactive layers.

    • Center: Disable Auto Calculate, with Lng 103.8 and Lat 1.345.

    • Zoom Level: 12.

    • Map Source: Google.

    • Map Type: Satellite.

  6. Select New Layer, enter Layer Name and choose Poi for Layer Type, then select OK.

    • In the Poi configuration panel:

      • Longitude: longitude.

      • Latitude: latitude.

      • Asset Name: AssetName.

      • Show Coordinates: Enable.

      • POI Icon Size: Adjust icon size for the best display.

    • Choose Enable Data Linking to link Poi icons to your assets.

      • Select Link.

      • Choose the AssetName on Battery Data Insights, Last Day Electricity, and Status.

  7. To save your changes on the widget, select Save at the end of the page.

  8. To view your new widget on the dashboard, select back button back. You can view the distribution of your assets through the Poi icons on the map. Hover over a specific asset to view the name and location of the asset.


../_images/map3.png


For more information about widget style configuration, see map.

Mix Chart


To monitor the change of battery current by time, choose Mix Chart.

  1. Select Add > Widget on the top toolbar.

  2. In the pop-up window, select Mix Chart.

  3. In Basic Information > Basic Options, configure chart title: Battery Data Insights.

  4. In Data Fields, configure the data in your charts.

    • Data Source: AIRaw in TSDB.

    • Category: SmartBattery_Model, the model you have created.

    • Aggression: Raw Data.

    • StartTime: Select the start time of data acquisition.

    • EndTime: Select the end time of data acquisition.

    • Dimension: time, which is the X axis of the chart.

    • Measurement: current, temp, voltage, which are the Y axes of the chart.

  5. Select Add in Internal Filter > Filter, and configure your filter on the popup window.

    • Position: Right of Title.

    • Filter Type: Time Range.

    • Default Range: Past Day.

    • Link Data Fields: Select Starttime as Start, and Endtime as End.

  6. Select OK to save your internal filter configuration.

  7. In Chart Style, configure style information, including chart type, color and axis style.

    • Chart Type: You can choose line, area, bar, target, scatter, or bubble charts for different data.

      • Dual Y-Axis: Enable Dual Y-Axis in temp panel.

      • Color: You can choose different colors for the line charts of the three measurements.

      • Smooth: Enable Smooth.

    • Axis Style:

      • Label Settings: Select time with the format HH:MM. The X axis will display in the format you choose.

      • Show Scalar Bar: Enable, and you can drag the scalar to view the data over time.

  8. To save your changes on the widget, select Save at the end of the page.

  9. To view your new widget on the dashboard, select back button back.


../_images/mixchart4.png


For more information about widget style configuration, see Mix Chart.

Pie Chart


To display the total capacity and the capacity of each battery asset, choose Pie Chart.

  1. Select Add > Widget on the top toolbar.

  2. In the pop-up window, select Pie Chart.

  3. In Basic Information > Basic Options, configure chart title: Battery Capacity - Pie Chart.

  4. In Data Fields, configure the data in your charts.

    • Data Source: LastestData in TSDB.

    • Category: SmartBattery_Model, the model you have created.

    • Aggression: Raw Data.

    • Dimension: AssetName.

    • Measurement: Capacity.

  5. In Chart Style, configure style information, including pie chart style, color, and legend style.

    • Pie settings:

      • Use Gradient: Enable.

      • Decimal places: 0.

      • Unite Name: KW.

    • Legend

      • Position: right-middle.

      • Show Legend Value: Enable.

      • Value Font: Green.

      • Value Margin: 60.

  6. To save your changes on the widget, select Save at the end of the page.

  7. To view your new widget on the dashboard, select back button back.


../_images/piechart2.png


For more information about widget style configuration, see Pie Chart.

Table


To display massive data including capacity, voltage, longitude, and latitude, choose Table.

  1. Select Add > Widget on the top toolbar.

  2. In the pop-up window, select Table table.

  3. In Basic Information > Basic Options, configure chart titl: Battery Data Table.

  4. In Data Fields, configure the data in your charts.

    • Data Source: LastestData in TSDB.

    • Category: SmartBattery_Model, the model you have created.

    • Aggression: Raw Data.

    • Dimension: AssetName.

    • Measurement: current, temp, voltage, Latitude, Longitude.

  5. In Chart Style, configure style information, including display style, header style and color.

    • Header settings:

      • Font: Choose font Green and Bold.

      • Enable Sorting: Enable sorting the data in each column.

    • Content:

      • Even Row Color: Green with Transparency.

      • Border Color: 000000.

  6. To save your changes on the widget, select Save at the end of the page.

  7. To view your new widget on the dashboard, select back button back.


For more information about widget style configuration, see Table.

Heat Map


To display the historical trend comparison of battery voltage or current, choose Heat Map.

  1. Select Add > Widget on the top toolbar.

  2. In the pop-up window, select Heat Map.

  3. In Basic Information > Basic Options, configure chart title: Last Day Electricity.

  4. In Data Fields, configure the data in your charts.

    • Data Source: AI Aggregation in TSDB.

    • Category: SmartBattery_Model, the model you have created.

    • Aggression: Raw Data.

    • StartTime: Select the start time of data acquisition.

    • EndTime: Select the end time of data acquisition.

    • Dimension: time.

    • Comparison: SimplifiedAssetName

    • Measurement: current.

  5. Select Add in Internal Filter > Filter, and configure your filter on the popup window.

    • Position: Right of Title.

    • Filter Type: Time Range.

    • Default Range: Past Day.

    • Link Data Fields: Select Starttime as Start, and Endtime as End.

  6. In Chart Style, configure style information, including display style, color, and axis style.

    • Axis Style > X-Axis:

      • Label Settings: Select time with the format HH:MM and the label rotation 45°.

    • Heat Map Style:

      • Cell: Choose the cell color of the maximum and minimum values separately.

      • Mark Min Value: Enable.

      • Mark Max Value: Enable.

    • Legend:

      • Position: bottom-middle.

      • Size: length for 250, and width for 8.

  7. To save your changes on the widget, select Save at the end of the page.

  8. To view your new widget on the dashboard, select back button back.


../_images/heatmap2.png


For more information about widget style configuration, see Heat Map.

Step 5. Publishing and Using the Page


To publish your dashboard:

  1. In Page Editor, Select Publish on the top toolbar.

  2. Seconds later, you can see a popup window suggesting successful publishing. Copy the page URL to integrate your page into your applications.


../_images/publish.png


For more information about publishing and using pages, see Publishing Dashboard Pages