Closed edgexie closed 6 years ago
@edgexie
I suggest you to use echartsInstance.setOption()
directly. You can get echartsInstance
in (chartInit)="onChartInit($event)"
ngx-echarts
is designed to be a light directive that is simple to use and easy to extend. That means, you can build fantastic chart components based upon ngx-echarts
. Maybe the directive itself won't support dynamically updating xAxis
data, but you can always find a way to make it.
As mentioned above, it's easy to use setOption()
to handle real-time data charts.
@xieziyu Thanks for your contribution. I saw there is an attribute named
dataset
. It can dynamic update theseries
. Then, I need it also can dynamic updatexAxis.data
, because my date is real-time who is come from socket data. Could you help me?