mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 12:19:08 +02:00
4b421a50bf
The `fill` option now accepts the index of the target dataset (number) or a string starting by "+" or "-" followed by a number representing the dataset index relative to the current one (e.g. `fill: "-2"` on dataset at index 3 will fill to dataset at index 1). It's also possible to "propagate" the filling to the target of an hidden dataset (`options.plugins.filler.propagate`). Fill boundaries `zero`, `top` and `bottom` have been deprecated and replaced by `origin`, `start` and `end`. Implementation has been moved out of the line element into a new plugin (`src/plugins/plugin.filler.js`) and does not rely anymore on the deprecated model `scaleTop`, `scaleBottom` and `scaleZero` values. Drawing Bézier splines has been refactored in the canvas helpers (note that `Chart.helpers.canvas` is now an alias of `Chart.canvasHelpers`). Add 3 new examples and extend utils with a pseudo-random number generator that can be initialized with `srand`. That makes possible to design examples starting always with the same initial data. |
||
---|---|---|
.. | ||
fill-line-boundary-end-span.json | ||
fill-line-boundary-end-span.png | ||
fill-line-boundary-end.json | ||
fill-line-boundary-end.png | ||
fill-line-boundary-origin-span.json | ||
fill-line-boundary-origin-span.png | ||
fill-line-boundary-origin-spline-span.json | ||
fill-line-boundary-origin-spline-span.png | ||
fill-line-boundary-origin-spline.json | ||
fill-line-boundary-origin-spline.png | ||
fill-line-boundary-origin-stepped-span.json | ||
fill-line-boundary-origin-stepped-span.png | ||
fill-line-boundary-origin-stepped.json | ||
fill-line-boundary-origin-stepped.png | ||
fill-line-boundary-origin.json | ||
fill-line-boundary-origin.png | ||
fill-line-boundary-start-span.json | ||
fill-line-boundary-start-span.png | ||
fill-line-boundary-start.json | ||
fill-line-boundary-start.png | ||
fill-line-dataset-span.json | ||
fill-line-dataset-span.png | ||
fill-line-dataset-spline-span.json | ||
fill-line-dataset-spline-span.png | ||
fill-line-dataset-spline.json | ||
fill-line-dataset-spline.png | ||
fill-line-dataset.json | ||
fill-line-dataset.png | ||
fill-radar-boundary-origin-spline.json | ||
fill-radar-boundary-origin-spline.png | ||
fill-radar-boundary-origin.json | ||
fill-radar-boundary-origin.png |