- [#67]: Add missing
cursor: pointerstyle to blocks when clickable - [#70]: Fix NaN and Infinity values in block paths when height is zero and
dynamicHeight: true
This release breaks major backwards compatibility by upgrading D3 3.x to D3 4.x. Refer to D3's changes documentation for more info.
- [#62]: Upgrade D3 3.x to 4.x
- [#19]: Add support for percentages in
chart.widthandchart.height(e.g.'75%') - [#38]: Split line break characters found in
label.formatinto multiple lines
- [#49]: Fix issue where gradient definitions could conflict with existing definitions
- [#50]: Add
block.barOverlayoption to display bar charts proportional to block value - [#52]: Add
chart.totalCountoption to override total counts used in ratio calculations
- Simplify and clean up examples
- [#53]: Add
label.fontSizeoption - [#57]: Add
block.dynamicSlopeoption to make the funnel width proportional to its value
- [#59]: Fix issue where formatted array values were not being passed to the label formatter
- [#44]: Pass DOM node to event data
- [#42]: Use ES6 imports and exports in source files
- [#43]: Require D3.js for CommonJS environments
D3Funnel v0.7.3 is an NPM-only hotfix that adds in missing compiled files.
- [#41]: Fix issue where
events.click.blockwould error onnull
- Errors thrown on data validation are now more descriptive and context-aware
- [#35]: Fix issue where gradient background would not persist after mouse out
- [#36]: Fix issue where non-SVG entities were not being removed from container
D3Funnel v0.7 is a backwards-incompatible release that resolves some outstanding bugs, standardizes several option names and formats, and introduces a few new features.
No new features will be added to the v0.6 series, but minor patches will be available for a few months.
- [#29]: Dynamic block heights are no longer determined by their weighted area, but by their weighted height
- Heights determined by weighted area: http://jsfiddle.net/zq4L82kv/2/ (legacy v0.6.x)
- Heights determined by weighted height: http://jsfiddle.net/bawv6m0j/3/ (v0.7+)
- [#9]: Block can now have their color scale specified in addition to data points
- [#34]: Default options are now statically available and overridable
- [#25]: Fix issues with
isInvertedanddynamicAreaproducing odd pyramids - [#32]: Fix issue where pinched blocks were not having the same width as
bottomWidth
Several options have been renamed for standardization. Please refer to the table below for the new equivalent option:
| Old option | New option | Notes |
|---|---|---|
animation |
chart.animate |
|
bottomPinch |
chart.bottomPinch |
|
bottomWidth |
chart.bottomWidth |
|
curveHeight |
chart.curve.height |
|
dynamicArea |
block.dynamicHeight |
See change #29. |
fillType |
block.fill.type |
|
height |
chart.height |
|
hoverEffects |
block.hightlight |
|
isCurved |
chart.curve.enabled |
|
isInverted |
chart.inverted |
|
onItemClick |
events.click.block |
|
minHeight |
block.minHeight |
|
width |
chart.width |
In addition, please refer to change #29.
- [#33]: Fix issue where
package.jsonpointed to the incorrect main file
- [#16]: Add support for formatted labels
- [#26]: Fix issues with closed range intervals in
bottomWidth - [#28]: Fix issue where short hex colors did not translate properly in color manipulations