Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is the second in a series of beta releases for the next major revision of Plottable, v3.0.0. Please read on for a list of changes in beta.2, or track the v3.0.0 milestone at https://github.com/palantir/plottable/milestone/64.
d3 v4
We now use d3 v4.5.0, which opens the door to many bugfixes and general improvements. You will need to upgrade your d3 dependency to point to 4.5.0 accordingly:
Script tag:
requireJS:
If you use d3 elsewhere, that code will need to be upgraded to v4 semantics. See Changes in D3 4.0.
Typescript users
If you depend on
@types/d3
, you will need to upgrade your codebase to use@types/d3@4.5.0
.API Changes
The upgrade to d3v4 has also cause some API changes:
LinePlot/AreaPlot
.interpolator()
has been renamed to.curve()
..interpolator()
used to take strings of the form"linear-closed"
, coinciding with d3v3 easing names. These are now camelCased ("linear-closed"
->"linearClosed"
). Here's the full list of accepted curve names. It also now accepts a d3.curveFactory:See d3-shape#curves for more info.
EasingAnimator
EasingAnimator.easingMode()
used to take strings of the form"exp-in-out"
, coinciding with d3v3 easing names. These are now camelCased ("exp-in-out"
->"expInOut"
). Here's the full list of accepted easing names. It also now accepts an arbitrary mapping function:See d3-ease for more info.
SymbolFactory
triangleUp()
renamed totriangle()
.triangleDown()
removed.wye()
andstar()
.Dropping IE9 support
We are bumping our minimum supported version of Internet Explorer from 9 to 11. IE9 is no longer supported by Microsoft and users are recommended to upgrade to a newer browser. Future releases should not be expected to have IE9 compatibility. Please let us know your thoughts about this on #3243.