do you mean the graph widget? if that's what you mean, then... sorry this isn't more helpful, but to get you started, the graph.lcb file is in Tools/Extensions/com.livecode.widget.linegraph, if you want to try reading through it. it's only 1300 lines, total, including the docs. there is not that much going on. there are no private properties that i can see.
On Sun, Sep 25, 2022 at 4:55 PM Alex Tweedly via use-livecode < use-livecode@lists.runrev.com> wrote: > Anyone using this widget ? > > Is there some documentation (other than the obvious dictionary entries) > about how to do different kinds of chart ? > > In the last 4-6 months, I've done 3 or 4 little personal projects where > I wanted to create a chart, but I've not been able to figure out how to > use the charts widget to do time-based charts. > > What I mean is, e.g., create a chart for the following data .... > > 2022-02-01 100 > 2022-02-04 500 > 2022-02-05 525 > 2022-02-17 900 > .... > > Obviously, the dates along the X-axis should be spaced properly > according to their data value, not equally spaced and simply labelled. > > Looking at the charts.js documentation, it tells me (or rather, fails to > tell me, since I can't understand it) that I need to define an 'adapter' > and shows some sample javascript. I don't really understand how to do it > simply in javascript - far less how I could use that in the widget. > > Can anyone give me a clue or a pointer ? > > Many thanks, > > Alex. > > P.S. currently I solved it using my own GraphMaker library (see LC > conference from 2018) - but I'd really like to retire that library in > favour of the new widget. > > > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode