Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kuatroka opened this issue Jun 7, 2023 · 3 comments
Open

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

kuatroka opened this issue Jun 7, 2023 · 3 comments

Comments

@kuatroka
Copy link

kuatroka commented Jun 7, 2023

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
Copy link
Owner

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

@kuatroka
Copy link
Author

kuatroka commented Jun 7, 2023

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants