tiby312 / poloto-project

MIT License
158 stars 10 forks source link

Allow Strings on the x axis #101

Closed Brueggus closed 2 years ago

Brueggus commented 2 years ago

Would it be possible to allow String input values on the x-axis, i. e.:

    let data = [
        ("Jan 2020", 3144),
        ("Feb 2020", 3518),
        ("Mar 2020", 3835),
    ];
tiby312 commented 2 years ago

@Brueggus I just put a new version out that kind of lets you do this. See the month.rs example.

tiby312 commented 2 years ago

With the UnixTime plot number type and also with the custom steps() function I think this is done basically.