ONSvisual / svelte-charts

Reusable chart templates for Svelte projects.
14 stars 6 forks source link

New chart types to add #6

Open bothness opened 2 years ago

bothness commented 2 years ago

Use this issue to post requests for new chart types to be added. Ideally include screenshots.

bothness commented 2 years ago

Legend chart with breaks. Something akin to these charts, used as map legends. It should be able to have markers for selected, hovered and highlighted areas, with option value labels for each. image

bothness commented 2 years ago

Dot plots. I coded a version of these in this article (see github repo). Probably needs to be re-coded. image

sean-og8 commented 1 year ago

Hi @bothness ,

I'm a big fan of this repo and your scrolly work in general!

I've adapted your ScatterChart component to include trend lines:

image

I've added a ScatterChartTrendLines component which has the same functionality as the original component but users can specify an arbitrary line for each group in the data series (using the multiline component form the shared folder).

I'm not sure whether this is something you'd find useful to put back into the main repo or whether you'd like to keep it 'clean' but I thought I'd share regardless!

I'm also working on some other additions to a fork of your repo which you might be interested in, including:

bothness commented 7 months ago

Hi @sean-dluhc ,

Sorry for missing your comment. If you find a logical way to integrate any new features, do feel free to submit a pull request and we can look at how to merge.

Also, I'd be interested to chat about how you're using the charts and any longer feature wish list you might have. We've been a bit in two minds as to how much to invest in this library, or whether we can build on other emerging Svelte or JS chart libraries that can offer a wider variety of charts.

You can reach me at ahmad [dot] barclay at ons [gov uk].