Skip to content

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

@quai20

Description

@quai20

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions