当前位置:网站首页>Node-RED系列(二九):使用slider与chart节点来实现双折线时间序列图
Node-RED系列(二九):使用slider与chart节点来实现双折线时间序列图
2022-07-05 09:33:00 【拿我格子衫来】
前言
今天教使用dashboard的chart组件和slider组件来是实现一个双线的折线图。效果如下
拖动顶部的电量和水量,低下的图表会实时显示时间和值
之所以做这个模拟案例,是将教 大家使用chart节点和slider节点
开发
先说一下slider节点,该节点是一个滑块节点,可以接受上一节点的 msg.payload,作为滑块的值,
slider必须设置最大值和最小值。且不能动态设置。
此外当用户拖动slider滑块,改变值时,该节点会向下传递当前值 以属性payload装载。

在说一下chart节点,该节点可以用于显示折线图,还有其他饼图,柱形图。之前有过介绍。
但如果你想要在一个chart节点里,显示多个折线图,你可以这样向 chart节点里传值
msg.topic = "电量"
msg.payload=边栏推荐
- Node の MongoDB Driver
- Solve the problem of no all pattern found during Navicat activation and registration
- 测试老鸟浅谈unittest和pytest的区别
- The writing speed is increased by dozens of times, and the application of tdengine in tostar intelligent factory solution
- Kotlin introductory notes (VII) data class and singleton class
- 小程序启动性能优化实践
- OpenGL - Lighting
- OpenGL - Model Loading
- 分布式数据库下子查询和 Join 等复杂 SQL 如何实现?
- Kotlin introductory notes (I) kotlin variables and non variables
猜你喜欢

Unity skframework framework (24), avatar controller third person control

Using request headers to develop multi terminal applications
![[ManageEngine] how to make good use of the report function of OpManager](/img/15/dc15e638ae86d6cf1d5b989fe56611.jpg)
[ManageEngine] how to make good use of the report function of OpManager

分布式数据库下子查询和 Join 等复杂 SQL 如何实现?

Develop and implement movie recommendation applet based on wechat cloud

LeetCode 503. 下一个更大元素 II

Tongweb set gzip

Node の MongoDB Driver

The most comprehensive promotion strategy: online and offline promotion methods of E-commerce mall

Community group buying has triggered heated discussion. How does this model work?
随机推荐
百度交易中台之钱包系统架构浅析
LeetCode 31. 下一个排列
【sourceTree配置SSH及使用】
Wechat applet obtains household area information
E-commerce apps are becoming more and more popular. What are the advantages of being an app?
How to empty uploaded attachments with components encapsulated by El upload
Unity SKFramework框架(二十四)、Avatar Controller 第三人称控制
[reading notes] Figure comparative learning gnn+cl
顶会论文看图对比学习(GNN+CL)研究趋势
【对象数组a与对象数组b取出id不同元素赋值给新的数组】
写入速度提升数十倍,TDengine 在拓斯达智能工厂解决方案上的应用
揭秘百度智能测试在测试自动执行领域实践
Talking about the difference between unittest and pytest
一文读懂TDengine的窗口查询功能
LeetCode 556. Next bigger element III
Lepton 无损压缩原理及性能分析
How do enterprises choose the appropriate three-level distribution system?
Tongweb set gzip
[listening for an attribute in the array]
Cloud computing technology hotspot