trash-and-fire / svelte-lightweight-charts

Svelte wrapper for financial lightweight charts
MIT License
108 stars 15 forks source link

**Not an Issue** - feature suggestion #80

Open kuatroka opened 1 year ago

kuatroka commented 1 year ago

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

trash-and-fire commented 1 year ago

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:

Feel free to list cases that interest you.

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

kuatroka commented 1 year ago

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

AnatoleT commented 1 year ago

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 :)