<template>
<ChartView
info="info"
type="type"
requestUrl="http://xxx"
wsUrl="ws://xxx/"
/>
</template>
<script>
import ChartView from 'charts-v'
</script>
param | type | desc | required | default |
---|---|---|---|---|
info | String | data time | true | \ |
type | String | data type | true | \ |
requestUrl | String | init data url | true | \ |
wsUrl | String | websocket url | true | \ |
wsParams | Any | websocket params | false | \ |
dataLength | Number | data length | false | 200 |
init data
{
[
'["1111","2222","3333","4444","5555"]',
...
]
}
ws data
{
"xxx": {
"price": "123123",
...
},
...
}
If you need help with color, style, data format, coordinate axis, legend, etc., you can contact me, I will try my best to help you. If you have any questions, I will reply ASAP.