Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some ideas to improve live-chart #21

Open
taozuhong opened this issue Sep 18, 2020 · 6 comments
Open

Some ideas to improve live-chart #21

taozuhong opened this issue Sep 18, 2020 · 6 comments

Comments

@taozuhong
Copy link
Contributor

  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
@lcallarec
Copy link
Owner

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
Copy link
Owner

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

@taozuhong
Copy link
Contributor Author

  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?

@lcallarec
Copy link
Owner

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

@lcallarec
Copy link
Owner

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

@taozuhong
Copy link
Contributor Author

Cool, thanks for all.

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

maybe it could give you some guidance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants