live-chart
live-chart copied to clipboard
Some ideas to improve live-chart
- LiveChart.Serie: allow to change attributes of series(renderer/color/line width/clear data/update data/visible)
- LiveChart.Serie: allow to display data label on the chart
- LiveChart.Chart: allow to get serie instance by index or name
- LiveChart.Chart: allow to delete serie instance by index or name
- LiveChart.Chart: allow to customize x or y axis label
Hi @taozuhong, sorry for the late answer... I'll take a look at all these ideas, even if some of them are already implemented. Maybe API and or / documentation are not clear enough.
@taozuhong @stsdc
1. allow to change attributes of series
- Color can be changed using
Serie.set_main_color
property, see here. Documentation needs to be improved, IMHO. - Line width can be changed, but yeah, it's not documented. I'll document that (with some improvements too)
- Clear serie data is possible using
serie.clear()
, but still bad documented - update data is not yet fully possible. I'll take a look.
- hidding series is actually possible, see here, but ok, documentation may be improved
2. allow to display data label on the chart Do you mean display to value of each point ?
3. allow to get serie instance by index or name
This is now possible since version 1.7.0, using chart.series[index]
/ chart.series.get(index)
and chart.series.get_by_name(name)
4. allow to delete serie instance by index or name Yeah, I'll work on this.
5. allow to customize x or y axis label X and Y axis already have a lot of configuration options. Did I miss something ?
-
allow to display data label on the chart Do you mean display to value of each point ? -----> yes, show data value on data node
-
allow to customize x or y axis label X and Y axis already have a lot of configuration options. Did I miss something ? ----------> current version show the time label, could be set with other label?
@taozuhong Yes, ok for both. For the X axis, I guess you need that for a 'static chart'. I'll work on this.
... and I forget : 1. allow to change attributes of series renderer: It cannot be swap at runtime, I'll work on this
Cool, thanks for all.
and just share a repo: https://github.com/xcltapestry/XCL-Charts
maybe it could give you some guidance.