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

Feature (or example) request: Zoom #31

Closed
jfsiii opened this issue Aug 22, 2017 · 57 comments
Closed

Feature (or example) request: Zoom #31

jfsiii opened this issue Aug 22, 2017 · 57 comments

Comments

@jfsiii
Copy link

jfsiii commented Aug 22, 2017

This is a common, but often challenging, interaction. It'd be great to see how it should work in nivo.

@plouc plouc added the proposal label Aug 23, 2017
@plouc
Copy link
Owner

plouc commented Aug 23, 2017

I don't think we should create a global issue for it as it really depends on the type of chart used.
For example I don't think Chord/Sankey diagrams should be zoomable.

There's just the bubble component for now which support zooming, but the zooming method is tied to this chart, I was planing to add it to the TreeMap, but because TreeMap does not leave enough room for mouse interaction on parent nodes, I must think of a different approach.

@MarcMagnin
Copy link

Hi,
Thanks a lot for this sexy library! I've been using highcharts and echarts and I'm looking at a more efficient rendering library. Also I need some feature to be able to select a time range: https://www.highcharts.com/demo/line-time-series.
The zooming per say isn't what I'm looking for, it's more the capability to select an area and get the callback with the timerange to do whatever I want with it (for instance refresh the chart with the new time range, triggering a server call).
Do you have the events interactions in place for that such as mousedown/up and provide a timerange or x coordinates that we can correlate with the time axis?
Many thanks!

@plouc
Copy link
Owner

plouc commented Sep 14, 2018

@MarcMagnin I think you're referring to Brushing, it's not supported yet, but I'd like to have it available.

@MarcMagnin
Copy link

Ok sounds good, as long as it's on the roadmap.

@plouc
Copy link
Owner

plouc commented Sep 14, 2018

@MarcMagnin feel free to contribute if you need this feature.

@MarcMagnin
Copy link

I'd love but no time for it now now. Hopefully soon!

@nypinstripes
Copy link

@plouc @MarcMagnin was just curious if there was anything recent update-wise on this thread, am considering & proposing nivo strongly for adoption within my team at work but the brush & zoom on Line components seems to be a hard requirement for our stakeholders. Was thinking of giving @guzmonne's https://github.com/guzmonne/nivo-with-brush prototype a go if there's not an expectation for this to roll out in 2019. I really love what ive seen and used so far with nivo so i'm hoping these avenues will pan out.

@plouc
Copy link
Owner

plouc commented May 23, 2019

@nypinstripes, I started something a while ago, but it's more a prototype, I've created a PR with it, but unfortunately I already have several ongoing features and not much time for now :/

@ayepRahman
Copy link

Hi @plouc any estimated timeline for this, Would love to have this in nivo.

@thomasmarr
Copy link

thomasmarr commented Apr 29, 2020

@plouc I came here to check if brushing was available, but notice you mentioned you don't think sankey diagrams should be zoomable. I just thought you might be interested to see this if you haven't already come across it: wikibudgets

@gauravshah786
Copy link

@plouc Is there any plan to add zoom support for GeoMap and Choropleth ?

@stale
Copy link

stale bot commented Nov 10, 2020

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

@stale stale bot added the stale label Nov 10, 2020
@sattuchin
Copy link

bump

@stale stale bot removed the stale label Nov 11, 2020
@Dzheky
Copy link

Dzheky commented Jan 6, 2021

bump

@aaroncsolomon
Copy link

aaroncsolomon commented Jan 19, 2021

bump for zoomable scatterplots

@davidnmora
Copy link

Would really love zoom on these x-y type plots:

  • scatter
  • line

@NeCkEr
Copy link

NeCkEr commented Feb 12, 2021

+1 for zoom 🙏

@asherccohen
Copy link

Bump

@paritoshromy
Copy link

bump

@martinratinaud
Copy link

+1 for zoom also

@nico-hernandez
Copy link

Hi lovely people! Are there any news about zoom and range selector, for time series chart mainly?

@nico-hernandez
Copy link

bump

@ashic
Copy link

ashic commented Apr 12, 2021

Would be really useful to get zoom for scatterplots and line charts.

@natasha17-spec
Copy link

I would like to add zoom to various types of diagrams, especially linear

@stale
Copy link

stale bot commented Jul 26, 2021

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

@MilaSinica
Copy link

bump

1 similar comment
@iamgururaj
Copy link

bump

@stale
Copy link

stale bot commented Jul 6, 2022

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

@stale stale bot added the stale label Jul 6, 2022
@Saroopashree
Copy link

bump

@stale stale bot removed the stale label Jul 10, 2022
@manfye
Copy link

manfye commented Sep 25, 2022

bump

@SenouLynn
Copy link

bumparooney

@stale
Copy link

stale bot commented Dec 27, 2022

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

@stale stale bot added the stale label Dec 27, 2022
@stale
Copy link

stale bot commented Jan 7, 2023

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you!

@stale stale bot closed this as completed Jan 7, 2023
@chartexpro
Copy link

bump

1 similar comment
@aamir-mns
Copy link

bump

@Tristan-0D
Copy link

b u m p

@harticode
Copy link

bump for zoomable scatterplots

@GGrassiant
Copy link

I don't know if it helps anyone but in the meantime, for zooming on scatterplots similarly to stateOfJS, the workaround through context and a dynamic range is pretty neat: https://github.com/Devographics/Monorepo/blob/main/results/src/core/charts/toolsScatterplot/ToolsScatterplotChart/state.ts

@plouc
Copy link
Owner

plouc commented Apr 28, 2023

What I did for stateOfJS is quite specific though, as we use custom components, but yes, using dynamic range is the way to achieve zoom. Good idea to share this approach @GGrassiant.

@harticode
Copy link

harticode commented Apr 28, 2023

a work around this is to use a dynamic range for scales it kinda works for me, and for the listener, I use onWheel on the div that wraps the graph(it can be done also with an input slide...), check my implementation here, hope this helps till we have a zoom feature.
https://stackblitz.com/edit/react-6rycey?file=src/components/scatter/scatter.js

@plouc
Copy link
Owner

plouc commented Apr 28, 2023

That's very nice @harticode!

@plouc
Copy link
Owner

plouc commented Apr 28, 2023

Although the way nivo handles the identity of each point doesn't play well with animations in this case 😅

@jacobawebb
Copy link

+1 for this as a feature. Honestly I'd be happy with an example or concept for how to best approach this.
Thanks for the work so far @plouc 👍

@mococa
Copy link

mococa commented Jun 5, 2023

bump

1 similar comment
@Sprechen
Copy link

bump

@van-for-days
Copy link

van-for-days commented Sep 18, 2023

Would also love this feature or an example for the Line component

@Yov00
Copy link

Yov00 commented Feb 12, 2024

bump

1 similar comment
@ssbarbee
Copy link

bump

@natheeshsunway
Copy link

BUMPING ... PLEASE AND ZOOM or atleast horizontal scrolling

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

No branches or pull requests