-
Notifications
You must be signed in to change notification settings - Fork 95
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 improvements #989
Chart improvements #989
Commits on Oct 2, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 898efcb - Browse repository at this point
Copy the full SHA 898efcbView commit details -
Configuration menu - View commit details
-
Copy full SHA for ba002c3 - Browse repository at this point
Copy the full SHA ba002c3View commit details -
No need to put hasSvg into the DataDisplay state
hasSvg can always be derived in render.
Configuration menu - View commit details
-
Copy full SHA for 3bdb9d7 - Browse repository at this point
Copy the full SHA 3bdb9d7View commit details -
Allow to toggle the Legend in children of DataDisplay
Add icon to toggle displaying the legend of charts.
Configuration menu - View commit details
-
Copy full SHA for ddd7416 - Browse repository at this point
Copy the full SHA ddd7416View commit details -
Use DataDisplay icons prop as render props
Allow to override the icon prop of DataDisplay to render different icons for a chart.
Configuration menu - View commit details
-
Copy full SHA for 4423392 - Browse repository at this point
Copy the full SHA 4423392View commit details -
Add a chartState to DataDisplay
Allow to set and get state for charts in DataDisplay. Setting the state will also re-render the children which wouldn't be possible if a chart keeps the state internally in it's component. At a first step the showLegend state is put into the chart state. In future this chart state will be saved in the redux store too.
Configuration menu - View commit details
-
Copy full SHA for 32cfade - Browse repository at this point
Copy the full SHA 32cfadeView commit details -
Move MENU_PLACEHOLDER_WIDTH to a new js module
Chart modules should not depend on dashboard components. Charts components are only for displaying some data and dashboards for orchestrating different displays which might be charts.
Configuration menu - View commit details
-
Copy full SHA for b16d763 - Browse repository at this point
Copy the full SHA b16d763View commit details -
Add a default shouldUpdate implementation for charts
Charts must be updates at least if data, width or height props have changed.
Configuration menu - View commit details
-
Copy full SHA for 377f808 - Browse repository at this point
Copy the full SHA 377f808View commit details -
Configuration menu - View commit details
-
Copy full SHA for 49d243f - Browse repository at this point
Copy the full SHA 49d243fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1c72750 - Browse repository at this point
Copy the full SHA 1c72750View commit details -
Use showLegend prop to toggle displaying chart Legends
Rename displayLegend of Bar chart to showLegend and add showLegend to Donut chart.
Configuration menu - View commit details
-
Copy full SHA for b483e9e - Browse repository at this point
Copy the full SHA b483e9eView commit details -
Fix calculating the Bar chart width with Legend displayed
If the legend is displayed the Bar chart must be rendered again after the ref is set. Also update chart to use new React.createRef API.
Configuration menu - View commit details
-
Copy full SHA for 8062970 - Browse repository at this point
Copy the full SHA 8062970View commit details -
Configuration menu - View commit details
-
Copy full SHA for 36ed925 - Browse repository at this point
Copy the full SHA 36ed925View commit details -
Move LineChart proptypes to the bottom
We have mostly all proptypes at the bottom of the js module. Therefore it's demanding to search for the LineChart proptypes.
Configuration menu - View commit details
-
Copy full SHA for b67033e - Browse repository at this point
Copy the full SHA b67033eView commit details -
Rename displayLegend into showLegend
Use showLegend prop instead of displayLegend at LineChart.
Configuration menu - View commit details
-
Copy full SHA for bc3271a - Browse repository at this point
Copy the full SHA bc3271aView commit details -
Configuration menu - View commit details
-
Copy full SHA for f49f80a - Browse repository at this point
Copy the full SHA f49f80aView commit details -
Configuration menu - View commit details
-
Copy full SHA for bf2d14a - Browse repository at this point
Copy the full SHA bf2d14aView commit details -
Avoid crashing DataDisplay on svg download
Never crash if svg or download refs aren't set. This should not ever happen but it is saver to check for this case.
Configuration menu - View commit details
-
Copy full SHA for 1dc6076 - Browse repository at this point
Copy the full SHA 1dc6076View commit details -
Fix displaying the svg download icon
When the svg ref is set in a child of DataDisplay the component will not be re-rendered necessarily. Therefore the svg ref may be set but the icon is still not displayed. Therefore add an external prop to deactivate the svg download icon on demand.
Configuration menu - View commit details
-
Copy full SHA for 041ead1 - Browse repository at this point
Copy the full SHA 041ead1View commit details -
Disable svg downloads for data table displays
When displaying a table it shouldn't be possible to download a svg.
Configuration menu - View commit details
-
Copy full SHA for c01917f - Browse repository at this point
Copy the full SHA c01917fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 274deff - Browse repository at this point
Copy the full SHA 274deffView commit details -
Only re-calculate state from width if the width has changed actually. Th LineChart did crash because the width has been re-calculated when hovering over the LineChart to display the tooltips. This lead to an infinite loop. Also fix calculation of the width. It uses the same pattern as the donut chart now.
Configuration menu - View commit details
-
Copy full SHA for db73eef - Browse repository at this point
Copy the full SHA db73eefView commit details -
Update shouldUpdate to consider showLegend prop
A chart should be re-rendered if the showLegend prop has changed.
Configuration menu - View commit details
-
Copy full SHA for 741028d - Browse repository at this point
Copy the full SHA 741028dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ae37ac - Browse repository at this point
Copy the full SHA 9ae37acView commit details -
Rename chart state to child state
Use initialState instead of initialChartState because the internal state variable name isn't visible outside of DataDisplay component. For children it's only the state.
Configuration menu - View commit details
-
Copy full SHA for ed66c95 - Browse repository at this point
Copy the full SHA ed66c95View commit details