-
Notifications
You must be signed in to change notification settings - Fork 356
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
Sticky Y axis and X axis when graph is scrollable #1451
Comments
SubChart looks a little like scrollbar.
|
#260 chart.zoom.enable(true);
chart.zoom([1, 2]); //1st -> won't work?
chart.zoom([1, 2]); //2nd -> works. https://naver.github.io/billboard.js/release/latest/doc/Options.html#.zoom var chart = bb.generate({
data: {...},
bindto: ...,
zoom: {enabled: true}
});
chart.zoom([1, 2]); //1st -> works. |
https://naver.github.io/billboard.js/demo/#Interaction.Zoom
<- I could not find this. https://naver.github.io/billboard.js/release/latest/doc/Options.html#.zoom
https://naver.github.io/billboard.js/release/latest/doc/Chart.html#zoom%25E2%2580%25A4enable
@knz237 may possibly want scrollable chart rather than sticky axis/legend against wrapper div scroll. |
Thanks for the suggestions, watnab, but zoom won't work in our case. It is okay if we can achieve the similar result using some tweaks, but the positioning of SVG elements is not possible. |
In your example, when I scroll to the right, the y-axis overlaps the main chart. Is it the result you want?
Here, why do you set the width of SVG to 2000 px ?
What't the reason zoom won' work?
|
I want scrollable chart in our project like knz237's example. So I have strong interest in this issue. |
https://jsfiddle.net/tonh94wy/ |
https://jsfiddle.net/wg9zr0d2/1/
|
-> #1476
I could not find options in this library to provide fixed position of X axis labels/legends/Y axis against scrolling wrapper div. |
Hi watnab,
Another issue with the example is that the chart by default has to have a zoom. Hence the left most bars are partially hidden on the initial rendering. - Can be visible in your examples too. Can this be addressed somehow? |
https://jsfiddle.net/ucwkygba/1/
It seems min value should be |
Recharts seems to have something like scrollbar. SubChart seems to be more advanced. An option to select initially may possibly help to find the way. |
Brush can have child components. startIndex/endIndex may mean initial selection. |
Description
When the graph SVG extends the viewport and is inside a scrollable div, Can we have an option to
Steps to check or reproduce
The text was updated successfully, but these errors were encountered: