-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
D3fc plugin #420
D3fc plugin #420
Conversation
- added default blue color to non-split-by bar graph. - added grid behind split-by bar graph. - ticks and labels on y axis brought into line with highcharts (ticks surrounding bars rather than pointing to them)
- renderChart and renderStackedChart method combined into one. - discrete operations refactored into discrete methods for code legibility.
- improved logic for reading axis labels, particularly in the case that there are multiple. - encapsulated chart config in discrete function for consistency. - moved axis labelling inside styling function.
- remove hardcoded styling of axes' colors. - prevent labels on y axis underlapping data zone.
- also switched crossLabel and mainLabel to be correct
- pass more specific parameters into interpretData function
Preserves the meaning of "crossValue" and "mainValue" so that we'll be able to use those values with the tooltip component without too many changes
The issue was actually with trying to create an empty bar series and associating a tooltip with it, which didn't check that it actually had a node to use.
Separated the scrollable code from the perspective-d3fc code to create a standalone "scrollable" legend component
Implemented X-Y chart
Cleaner axis styling with more readable text More interactive tooltip behaviour
Some styling and tooltip hover changes
This is exceptionally awesome! We have discussed this offline and agreed to go ahead and merge and publish this plugin as it is already in very useful state - and we're extremely excited about the future of utilizing this plugin as the default for charting in Perspective! For what was clearly a monumental development effort - special thanks @redbearsam @matt-hooper @DevAndyLee @Ro4052 @jacoburton104 for making it happen! |
Update: ready for review.
A plugin that uses D3/d3fc as an alternative charting solution to HighCharts.
The plugin is not feature complete. Development continues.
Functionality:
Known issues:
Demonstrating The Plugin:
It should be possible to run the pre-existing examples with the new d3fc chart variants selected. These are called [d3fc] Y Bar Chart and [d3fc] X Bar Chart. There is also a new example accessible from the simple example index page titled Superstore example using D3FC Bar/Column charts that is configured to use the d3fc Y Bar Chart by default.
All changes are within the new perspective-viewer-d3fc package with the exception of: