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

Is it possible to plot simple data (not dated) ? #24

Open
quai20 opened this issue Jul 9, 2020 · 0 comments
Open

Is it possible to plot simple data (not dated) ? #24

quai20 opened this issue Jul 9, 2020 · 0 comments

Comments

@quai20
Copy link

quai20 commented Jul 9, 2020

I managed to make the example run, but I can't find a way to plot a simple x,y data line.
My attempt was to do so :

var points = [ChartPoint(1.0,2.0),ChartPoint(2.0,0.0),ChartPoint(3.0,4.0),ChartPoint(4.0,1.0),ChartPoint(5.0,4.0),ChartPoint(6.0,6.0)];
var data = ChartLine(points,Color(0xFF42A5F5),'°C');
chart = LineChart([data],??);

but the fromTo arguments seems to want "Dates" ... I don't have any :)
Any ideas ? Thanks

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

1 participant