ResponsiveLine is not interactive on mobile
See original GitHub issueThe ResponsiveLine
chart component is not interactive on iOS devices. Working fine on Samsung S8, S9 and OpenPlus 5, but not on iPhone 6 and 7.
The flag for interactivity (isInteractive
) is set to true by default and the chart doesn’t have any customizations.
The tooltip shows and the chart is interactive on Samsung S8.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:10 (2 by maintainers)
Top Results From Across the Web
Nivo responsive line graph only responsive on making wider ...
The problem I have is if I make the browser narrower the graph does not resize to fill 100% of the browser width...
Read more >Beautiful and Responsive Line Charts Using Nivo, React and ...
In this tutorial, we will build a very simple React application that displays a responsive, colorful line chart of temperature data.
Read more >Line chart | nivo
Line chart with stacking ability. Given an array of data series having an id and a nested array of points (with x, y...
Read more >How to make your HTML responsive by adding a single line of ...
In this article, I'll teach you how to use CSS Grid to create a super cool image grid which varies the number of...
Read more >Improve line graphs on responsive mobile view
Make the chart scrollable on x-axis so that the dots are not squeezed together. Just resize down accordingly (I don't this can work...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve managed to modify the library locally to enable tooltips to work for iPhones
Tested on
iPhone 8S
- confirmed didn’t work before, worked after Tested oniPhone 6S
- confirmed didn’t work before, worked after Tested oniPad Mini
- confirmed didn’t work before, worked afterIs it possible for you to review @plouc ? (edit: sorry for errant tag
@iliyanyotov) Appears to be very quick fix that I’m sure a large contingent of users would like to see - especially those that may not have known their line graph tooltips aren’t working on some iPhones.I simply added
onClick: showTooltip,
to theLineSlicesItem
element :nivo-line-umd.js
line 227nivo-line-esm.js
line 226nivo-line-cjs.js
line 233Example:
Please feel free to improve further if you can think of other use cases or if issues are discovered.
I look forward to your response and potential push
Edit: Do you have any thoughts on this @plouc ? Am excited to see what your thoughts are
@martin-kieliszek, Do you know what should be changed in the code not compiled here https://github.com/plouc/nivo/tree/master/packages/line ?
So we can fork, and create a PR for this issue? Thanks