svelte-lightweight-charts icon indicating copy to clipboard operation
svelte-lightweight-charts copied to clipboard

**Not an Issue** - feature suggestion

Open kuatroka opened this issue 1 year ago • 3 comments

Thanks for the library. It's quite awesome. One question or suggestion is, are there plans to add interactivity elements to these charts? By interactivity I mean: Date Range Selection, Add/Remove additional series to the same chart, Linked Charts with brush selection... etc. In general some interactivity options, not just the hover. Thanks

kuatroka avatar Jun 07 '23 11:06 kuatroka

The brush and drawing tools are not implemented in lightweight-charts so I can't add them to this package.

I can create more examples on demo page:

  • Select date range
  • Add/remove/show/hide series on the same chart

Feel free to list cases that interest you.

An example of linked charts is already available on the demo page and in the REPL

trash-and-fire avatar Jun 07 '23 15:06 trash-and-fire

Thanks. Of the top of my head the use case that could be interesting are:

  1. Select date range (as mentioned by you) image
  2. Add/remove/show/hide series on the same chart (As mentioned by you) but with MY OWN data
  3. Add tabs - for example, instead of showing two charts like in the synchronized charts example, there could by two tabs for the same series but showing different metrics. It could also be enabled with buttons like the switch between themes now.
  4. Some sort of linked brush and zoom - like in the synchronized charts example, but when you select an area on the top chart, it shows the zoomed in portion on the bottom chart. It could be the same series but with lower time resolution or a different series but somehow linked the top one.

These are just a couple of suggestions. I haven't played with these charts yet. I'm still only learning Svelte, but hopefully I can start using them in the future. The reason of my suggestions is that it doesn't seem there are many out of the box truly interactive libraries for viz for Svelte out there. There is D3 but it's too low level. There is also echarts but I don't see any examples of using it on my own data and with true interactivity/filtering/selection, etc. There is a project evidence , but it only uses non-interactive parts of echarts

Thanks

kuatroka avatar Jun 07 '23 15:06 kuatroka

Hi @trash-and-fire ! Thanks a lot for your wrapper, it saved me a lot of time. I'm really interested too about these features too :)

AnatoleT avatar Sep 11 '23 12:09 AnatoleT