Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use DataGear to make time Series data Visualization Kanban

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly shows you "how to use DataGear to make time series data visualization Kanban", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to use DataGear to make timing data visualization Kanban" this article.

Through the parameterized datasets of DataGear and the API function of Kanban, it is very convenient to make Kanban with timing charts.

First, create a new parameterized SQL dataset with time as a parameter:

SELECT COL_TIME, COL_VALUEFROM T_TIME_SERIESWHERE COL_TIME >'${time} 'ORDER BY COL_TIME ASCLIMIT 0, 1LIMIT 0,5

Parameters:

Name type required time string No

The above dataset loads the first five pieces of data when the time parameter is not specified, and when the time parameter is specified, one piece of data is loaded.

Then, create a new line chart that uses the above dataset:

Chart type: smooth line chart dataset column tag: COL_TIME: name (name); COL_VALUE: numeric (value) update interval: 1000 milliseconds

Then, create a new visual Kanban and fill in the following Kanban template:

Test-timing chart. Dg-chart {display: inline-block; width: 60%; margin-left: 20%; height: 400px;} / / data to be displayed in the timing window var timeSeriesData = []; var chartListener= {onUpdate: function (chart, results) {var result = results [0]; var data = result.data; if (data.length > 0) {if (timeSeriesData.length = = 0) timeSeriesData = data Else {timeSeriesData = timeSeriesData.concat (data); / / limit the amount of data in the timing window to 10 while (timeSeriesData.length > 10) timeSeriesData.shift ();} / / set the time parameter var nextTimeParam = data [data.length-1] ["COL_TIME"] for the next refresh of the chart; chart.dataSetParamValue (0,0, nextTimeParam) } result.data = timeSeriesData;}}; DataGear

Example of http://www.datagear.techDataGear Kanban

Click the [Save and Show] button to open the Kanban display page and finish!

The effect image is as follows:

The above is all the contents of the article "how to use DataGear to make a visual Kanban of time series data". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report