-
Notifications
You must be signed in to change notification settings - Fork 472
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
Incorporate mg-line-brushing extension directly into metricsgraphics #790
Comments
That's already available via npm: https://www.npmjs.com/package/mg-line-brushing I just verified that |
Oh that's great. Longer term, what do you think about including this plugin in metricsgraphics itself? |
Part of my rationale is that I eventually want to support more sophisticated types of brushing, along with zooming -- and I think this will be easier to implement inside metricsgraphics itself. |
Yeah, I'd be glad for it to become a part of MG proper. It's been dormant for a while so it'll no doubt need some tweaking. 👍 |
All for this. |
@wlach Can I work on this issue under your guidance please ? |
@shikhar-scs absolutely! that would be great if you wanted to take this up. |
Yeah sure. If you could provide me with a starting point, that would be great 😊 |
I think we're just going to move the code that's currently in the plugin inline into metricsgraphics. Probably the best way to start is to look at the plugin source https://github.com/dandehavilland/mg-line-brushing/blob/master/src/js/hooks.js and try to create a mental model of how it works. From there, it should be possible to come with a strategy on how to integrate it. If you get stuck, let me know and I can provide some hints. |
Ok @wlach I'll get started with this .
Yeah sure 👍 |
@wlach I guess I have solved the problem. I'll soon file a PR for the same |
@dandehavilland wrote a great extension to metrics graphics that lets you brush through line charts and get an expanded view of them. You can see an example of it in action on the current metricsgraphics site:
https://www.metricsgraphicsjs.org/examples.htm#addons
Unfortunately for those of us installing metricsgraphics via npm, this package is not there. I think it likely makes sense to incorporate this directly into metricsgraphics itself, as I would consider this core functionality for a useful charting library.
The text was updated successfully, but these errors were encountered: