跳转到内容
View in the app

A better way to browse. Learn more.

彼岸论坛

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
欢迎抵达彼岸 彼岸花开 此处谁在 -彼岸论坛

[Vue.js] 实时数据展示请教,波形图

发表于
目前小弟需要写一个页面,展示实时数据波形图,数据源是 websocket 推送,每秒一条,json ,里面有时间戳跟一个浮点数数组,元素比较多,一秒就对应一个数组,数组有 200 个浮点数。现在希望是点击下拉框,勾选之后,就发送该值给 websocket ,websocket 就推送对应的数据过来,然后需要把数据画在图里,现在用的 echarts ,但是用 series 更新数据,前面的数据不知道怎么处理,需要就是这秒推送的数据从图的右边一直向左边移动,下一秒的数据来了就继续推,整个图表数据长度控制在一分钟左右,类似一个实时波形图,有大佬懂可以指点一下吗,或者帮忙一下。

Featured Replies

No posts to show

创建帐户或登录来提出意见

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.