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

D3fc plugin - Sunburst, color styles and bug fixes #511

Merged
merged 66 commits into from
Apr 7, 2019

Conversation

matt-hooper
Copy link
Contributor

Update to the d3fc plugin containing the following:

Sunburst chart
image

non-numeric axis for X/Y charts
image

andy-lee-eng and others added 30 commits March 26, 2019 16:12
Allows us to put multiple charts on a single page, where theme settings apply to only some of them
This is the same as Highcharts currently uses.
Avoids having to create svg and dom elements to get the styles.
Requires that the default style variables are set in the perspective-viewer layer.
 Put color styles in settings so that they can be scoped to a chart
Implemented a special interpolator to connect up multiple two-color interpolators
Heatmap color has to be reapplied because the d3fc one forces it to the data extent rather than the color range you've given it
Found some d3 color utility functions
Implemented themable color ranges for heatmap and X/Y
update screenshot results with new colours
Check whether labels are outside of window bounds, and hide them.
Also added support for fully rotating (90 degrees) when there are a very large number of labels, similar to Highcharts.
Hide labels that would be clipped by the window bounds
Update develop from remote master
andy-lee-eng and others added 19 commits April 2, 2019 09:41
* Refactor axis to use a common implementation for x and y

Refactor to group by type of axis (linear/time/ordinal) rather than by direction.
Use a common implementation for each chart for creating an axis, based on the settings and data it will be working from.
Allow for aggregates that are strings turned into numbers (e.g. `count`) or left as string (e.g. `dominant`)

* Allow charts to say which axis types they can't use

* Applied new axis types to other charts

* Rename files

* Refactor `labelFunction` and remove `crossAxis`

* Fix variances in screenshot tests

* Restore heatmap vertical gridline

* Exclude "linear" ranges from various charts

* Default padding for chart axis, which can be overridden

* Restore label rotation/hiding code that was lost in merge
* Use a "nice" number range for display purpose only

* Improved colour-legend display

Cleaner numbers (reduces display of fractions), and better display of "clean" range
Give the colour legend a bit more height, but less width, which it doesn't need

* Make legend components non-global

Prevents legends from different charts interfering with each other
Stores `pageIndex` in settings to preserve page position
* Tweaked sizing code for sunburst charts`

Leads to large charts with more space usage, when divided into columns

* Reduce scrolling if row height is "close enough"
Allows for different chart types to have different size colour legends. Heatmap has space to have a taller one, but that it not so appropriate in sunburst
Sunburst centre now shows current level instead of parent
sunburst - add labels, don't display if no crossValue is supplied
d3fc_plugin - sunburst chart, color changes and bug fixes
Previously, it would allocate 3 or more columns (space allowing), even if there were only two charts to show.
Allow for 2-column display when only 2 charts (#151)
@timkpaine timkpaine added enhancement Feature requests or improvements JS labels Apr 2, 2019
andy-lee-eng and others added 7 commits April 3, 2019 14:11
IE uses left/right instead of x/y and different format "transform".
Use "closest" (with polyfill) to navigate up to the chart element.
Polyfill "matches" which is used by d3fc
Move default theme variables to where they actually need to be (IE/Edge don't get the variables otherwise)
Fix occasional integration test failure and some IE issues
@texodus
Copy link
Member

texodus commented Apr 7, 2019

Thanks for the PR! D3FC plugin now supports the most important of all chart types ..

1407-pie-chartliterally

@texodus texodus merged commit 829561c into finos:master Apr 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature requests or improvements JS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants