BETA - not production ready
Pre-release
Pre-release
benoitjchevalier
released this
07 Feb 01:42
·
1428 commits
to master
since this release
- Upgrade to d3 4.4.x.
- Scale and axis changes:
- Changed time scale to UTC by default.
- Added timeLocal option for local time
- Moved Scale into a behavior
- scale now a simple wrapper around behavior
- Greatly improved and simplified how chart extents are calculated:
- chartExtents are now only dev set
- max and mins from the seriesConfig and range pickers go to dataExtents
- scale will use chartExtents directly and fallback on dataExtents if not present. If neither, then looks through data.
- defaultSeriesConfig no longer has default min and maxes
- defaultSeriesConfig now updates _defaultSeriesConfig so defaultSeriesConfig doesnt have to have all defaults
- Threshold changes:
- Added new threshold configuration similar to events
- Changed threshold data property from chartData to thresholdData
- Simplified threshold component removing the need for the x scale
- Added improved resize methods to chart behavior
- Added mechanism for redrawing an SVG series on top of others
- Layers
- Added layer generation to chart behavior
- Added ability to generate layers for any svg element dynamically
- modified interaction space so it doesnt clone svg
- modified thresholds so it doesnt clone svg
- Added an additional svg element below the canvas element on svg-canvas
- Changed px-vis-line to px-vis-line-svg for consistency
- Line now spans data undefined gaps by default
- Line will always gap "null" data
- Added showGaps to force it to show gaps for undefined data
- Demo Updates:
- updated demos with v1 changes
- all subcomponents have an API Documentation page
- Added navigatorConfig and ability to configure chart navigator with it
- most px-vis components now only loads basic colors as opposed to basic colors + dataVis colors
- Register Changes:
- Added margin to register height calculation
- Tooltip Changes:
- Added auto-calculated groupings to tooltip based on number of series. Can be overwritten by devs
- Added checks to gridline to ensure it gets the svg height and number-izes margins
- completeSeriesConfig function will now complete and create an empty completeSeriesConfig if an empty seriesConfig is passed in. Allows the deletion of all series from the chart.
- Ensure tooltip calculation are done based on pixel coordinates rather than values for non-time based charts
- Added px-vis-dynamic-menu in register, allowing developers to pass in custom features/function available in a menu in the register through dynamicMenuConfig
- Added actionConfig to px-vis-interaction-space, allowing to define custom interaction on chart hover or click for example
- Added panning capability to px-vis-interaction-space. Please note that when panning a chart with ordinal axes it is not possible to pan past those axes.
- Added panning capability to px-vis-interaction-space
- Enabled top and right axes
- Events
- Fixed event clip path to respect a right axis
- Simplified event component removing the need for the y scale
- Enabled configuration of the line
- Multi Axis:
- added support for multi axes via multiAxes behavior
- Many changes to components for support
- Modifications to px-vis-multi-axis for more flexibility
- Added px-vis-toolbar
- Toolbar items are configurable and each item can have:
- a tooltip label
- a title
- an event name (fired on click)
- a function run on click
- an actionConfig used by px-vis-interaction space, allowing interactions on chart hover and click for example
- an icon
- a set of sub items which will be displayed in the "secondary" toolbar below when the item is clicked
- Default actions of "zoom", "pan" and "tooltip" can be passed directly in the config
- Custom defined functions can also be used in the actionConfig
- Toolbar items are configurable and each item can have:
- Removed px-vis-zoom and provide the PxVisBehaviorChart.zooming behavior for charts instead
- Added 'zoom in' and 'zoom out' buttons in zoom controls
- changing ghp.sh to account for Alpha releases