live-chart icon indicating copy to clipboard operation
live-chart copied to clipboard

Some ideas to improve live-chart

Open taozuhong opened this issue 3 years ago • 6 comments

  1. LiveChart.Serie: allow to change attributes of series(renderer/color/line width/clear data/update data/visible)
  2. LiveChart.Serie: allow to display data label on the chart
  3. LiveChart.Chart: allow to get serie instance by index or name
  4. LiveChart.Chart: allow to delete serie instance by index or name
  5. LiveChart.Chart: allow to customize x or y axis label

taozuhong avatar Sep 18 '20 03:09 taozuhong

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.

lcallarec avatar Nov 01 '20 21:11 lcallarec

@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 ?

lcallarec avatar Nov 02 '20 11:11 lcallarec

  1. allow to display data label on the chart Do you mean display to value of each point ? -----> yes, show data value on data node

  2. 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 avatar Nov 02 '20 11:11 taozuhong

@taozuhong Yes, ok for both. For the X axis, I guess you need that for a 'static chart'. I'll work on this.

lcallarec avatar Nov 02 '20 11:11 lcallarec

... and I forget : 1. allow to change attributes of series renderer: It cannot be swap at runtime, I'll work on this

lcallarec avatar Nov 02 '20 12:11 lcallarec

Cool, thanks for all.

and just share a repo: https://github.com/xcltapestry/XCL-Charts

maybe it could give you some guidance.

taozuhong avatar Nov 02 '20 12:11 taozuhong