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

Chart minimap #126

Closed
steven-pribilinskiy opened this issue Sep 24, 2018 · 6 comments
Closed

Chart minimap #126

steven-pribilinskiy opened this issue Sep 24, 2018 · 6 comments
Labels
feature-request New feature or request

Comments

@steven-pribilinskiy
Copy link

A very useful feature of charts is a small version of it for an overview of all data

Example:
image

While there's a way to sync apex charts it's very cumbersome to replicate such a feature (one would need to hide labels, toolbar, disable tooltip) and it's buggy

image

@junedchhipa junedchhipa added the feature-request New feature or request label Sep 27, 2018
@junedchhipa
Copy link
Contributor

Added a new option chart.brush which allows you to create this "chart minimap" easily.

Docs
Demo

@steven-pribilinskiy
Copy link
Author

steven-pribilinskiy commented Oct 9, 2018

@junedchhipa Nice!

How to synchronize brush-chart with main chart when Toolbar is enabled?
Currently when you use any of the tools from the toolbar it doesn't reflect position in the brush chart

@junedchhipa
Copy link
Contributor

@pribilinskiy Currently panning on the main chart reflects selection on the brush chart. I think, I forgot the zooming part, I will take a look again.

@steven-pribilinskiy
Copy link
Author

steven-pribilinskiy commented Oct 9, 2018

@junedchhipa well, not really.
If you not specify selection.xaxis and zoom into the brush chart, panning the main chart will not affect the brush chart
https://codepen.io/anon/pen/YJNOjz

@junedchhipa
Copy link
Contributor

Right, ok. Thanks for catching.

@steven-pribilinskiy
Copy link
Author

@junedchhipa
And it works well with Vue :)
https://codesandbox.io/s/48568moqpw

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

No branches or pull requests

2 participants