]> git.ipfire.org Git - thirdparty/Chart.js.git/commit
Convert axis options from arrays to objects (#6773)
authorJukka Kurkela <jukka.kurkela@gmail.com>
Thu, 21 Nov 2019 23:46:49 +0000 (01:46 +0200)
committerEvert Timberg <evert.timberg+github@gmail.com>
Thu, 21 Nov 2019 23:46:49 +0000 (18:46 -0500)
commitce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7
tree8c43390a85fd37d0df1f3c06531556d7c1cd2961
parent18e3bc06240b8444a6ed3335b8cd510bed23f6c9
Convert axis options from arrays to objects (#6773)

* Convert axis options from arrays to objects

* Updated all chart type defaults
* Throw errors when axis type or position are not specified
* Avoid raising unnecessary errors when merging options into the default configs

* Fix additional tests

* Ensure scale defaults are set if type is not explicitly defined

* Another step

* Include `scale` as `firstIDs.r`

* update docs

* Update for buildOrUpdateScales

* Update migration guide

* Add test back
211 files changed:
docs/README.md
docs/axes/cartesian/README.md
docs/axes/cartesian/category.md
docs/axes/cartesian/linear.md
docs/axes/cartesian/time.md
docs/axes/labelling.md
docs/charts/bar.md
docs/charts/line.md
docs/charts/mixed.md
docs/charts/scatter.md
docs/developers/axes.md
docs/developers/updates.md
docs/getting-started/usage.md
docs/getting-started/v3-migration.md
samples/charts/area/line-boundaries.html
samples/charts/area/line-datasets.html
samples/charts/area/line-stacked.html
samples/charts/bar/multi-axis.html
samples/charts/bar/stacked-group.html
samples/charts/bar/stacked.html
samples/charts/line/basic.html
samples/charts/line/interpolation-modes.html
samples/charts/line/line-styles.html
samples/charts/line/multi-axis.html
samples/charts/line/point-sizes.html
samples/charts/line/skip-points.html
samples/charts/scatter/multi-axis.html
samples/legend/callbacks.html
samples/legend/point-style.html
samples/legend/positioning.html
samples/scales/filtering-labels.html
samples/scales/gridlines-display.html
samples/scales/gridlines-style.html
samples/scales/linear/min-max-suggested.html
samples/scales/linear/min-max.html
samples/scales/linear/step-size.html
samples/scales/logarithmic/line.html
samples/scales/logarithmic/scatter.html
samples/scales/non-numeric-y.html
samples/scales/time/combo.html
samples/scales/time/financial.html
samples/scales/time/line-point-data.html
samples/scales/time/line.html
samples/scales/toggle-scale-type.html
samples/tooltips/callbacks.html
src/controllers/controller.bar.js
src/controllers/controller.bubble.js
src/controllers/controller.horizontalBar.js
src/controllers/controller.line.js
src/controllers/controller.polarArea.js
src/controllers/controller.radar.js
src/controllers/controller.scatter.js
src/core/core.controller.js
src/core/core.datasetController.js
src/core/core.scale.js
src/plugins/plugin.filler.js
test/fixtures/controller.bar/backgroundColor/indexable.js
test/fixtures/controller.bar/backgroundColor/scriptable.js
test/fixtures/controller.bar/backgroundColor/value.js
test/fixtures/controller.bar/bar-thickness-absolute.json
test/fixtures/controller.bar/bar-thickness-flex-offset.json
test/fixtures/controller.bar/bar-thickness-flex-single-reverse.json
test/fixtures/controller.bar/bar-thickness-flex-single.json
test/fixtures/controller.bar/bar-thickness-flex.json
test/fixtures/controller.bar/bar-thickness-max.json
test/fixtures/controller.bar/bar-thickness-min-interval.json
test/fixtures/controller.bar/bar-thickness-multiple.json
test/fixtures/controller.bar/bar-thickness-no-overlap.json
test/fixtures/controller.bar/bar-thickness-offset.json
test/fixtures/controller.bar/bar-thickness-per-dataset-stacked.json
test/fixtures/controller.bar/bar-thickness-per-dataset.json
test/fixtures/controller.bar/bar-thickness-reverse.json
test/fixtures/controller.bar/bar-thickness-single-xy.json
test/fixtures/controller.bar/bar-thickness-single.json
test/fixtures/controller.bar/bar-thickness-stacked.json
test/fixtures/controller.bar/borderColor/indexable.js
test/fixtures/controller.bar/borderColor/scriptable.js
test/fixtures/controller.bar/borderColor/value.js
test/fixtures/controller.bar/borderSkipped/indexable.js
test/fixtures/controller.bar/borderSkipped/scriptable.js
test/fixtures/controller.bar/borderSkipped/value.js
test/fixtures/controller.bar/borderWidth/indexable-object.js
test/fixtures/controller.bar/borderWidth/indexable.js
test/fixtures/controller.bar/borderWidth/negative.js
test/fixtures/controller.bar/borderWidth/object.js
test/fixtures/controller.bar/borderWidth/scriptable-object.js
test/fixtures/controller.bar/borderWidth/scriptable.js
test/fixtures/controller.bar/borderWidth/value.js
test/fixtures/controller.bar/chart-area-clip.js
test/fixtures/controller.bar/data/object.js
test/fixtures/controller.bar/floatBar/data-as-objects-horizontal.js
test/fixtures/controller.bar/floatBar/data-as-objects.js
test/fixtures/controller.bar/floatBar/float-bar-horizontal.json
test/fixtures/controller.bar/floatBar/float-bar-stacked-horizontal.json
test/fixtures/controller.bar/floatBar/float-bar-stacked.json
test/fixtures/controller.bar/floatBar/float-bar.json
test/fixtures/controller.bar/horizontal-borders.js
test/fixtures/controller.bar/stacking/order-default.json
test/fixtures/controller.bar/stacking/order-specified.json
test/fixtures/controller.bubble/clip.js
test/fixtures/controller.bubble/point-style.json
test/fixtures/controller.bubble/radius-data.js
test/fixtures/controller.bubble/radius-scriptable.js
test/fixtures/controller.line/backgroundColor/scriptable.js
test/fixtures/controller.line/backgroundColor/value.js
test/fixtures/controller.line/borderCapStyle/scriptable.js
test/fixtures/controller.line/borderCapStyle/value.js
test/fixtures/controller.line/borderColor/scriptable.js
test/fixtures/controller.line/borderColor/value.js
test/fixtures/controller.line/borderDash/scriptable.js
test/fixtures/controller.line/borderDash/value.js
test/fixtures/controller.line/borderDashOffset/scriptable.js
test/fixtures/controller.line/borderDashOffset/value.js
test/fixtures/controller.line/borderJoinStyle/scriptable.js
test/fixtures/controller.line/borderJoinStyle/value.js
test/fixtures/controller.line/borderWidth/scriptable.js
test/fixtures/controller.line/borderWidth/value.js
test/fixtures/controller.line/clip/default-x-max.json
test/fixtures/controller.line/clip/default-x-min.json
test/fixtures/controller.line/clip/default-x.json
test/fixtures/controller.line/clip/default-y-max.json
test/fixtures/controller.line/clip/default-y-min.json
test/fixtures/controller.line/clip/default-y.json
test/fixtures/controller.line/clip/specified.json
test/fixtures/controller.line/cubicInterpolationMode/scriptable.js
test/fixtures/controller.line/cubicInterpolationMode/value.js
test/fixtures/controller.line/fill/order-default.js
test/fixtures/controller.line/fill/order.js
test/fixtures/controller.line/fill/scriptable.js
test/fixtures/controller.line/fill/value.js
test/fixtures/controller.line/non-numeric-y.json
test/fixtures/controller.line/point-style.json
test/fixtures/controller.line/pointBackgroundColor/indexable.js
test/fixtures/controller.line/pointBackgroundColor/scriptable.js
test/fixtures/controller.line/pointBackgroundColor/value.js
test/fixtures/controller.line/pointBorderColor/indexable.js
test/fixtures/controller.line/pointBorderColor/scriptable.js
test/fixtures/controller.line/pointBorderColor/value.js
test/fixtures/controller.line/pointBorderWidth/indexable.js
test/fixtures/controller.line/pointBorderWidth/scriptable.js
test/fixtures/controller.line/pointBorderWidth/value.js
test/fixtures/controller.line/pointStyle/indexable.js
test/fixtures/controller.line/pointStyle/scriptable.js
test/fixtures/controller.line/pointStyle/value.js
test/fixtures/controller.line/radius/indexable.js
test/fixtures/controller.line/radius/scriptable.js
test/fixtures/controller.line/radius/value.js
test/fixtures/controller.line/rotation/indexable.js
test/fixtures/controller.line/rotation/scriptable.js
test/fixtures/controller.line/rotation/value.js
test/fixtures/controller.line/stacking/order-default.js
test/fixtures/controller.line/stacking/order-specified.js
test/fixtures/core.scale/label-offset-vertical-axes.json
test/fixtures/core.scale/tick-drawing.json
test/fixtures/core.tooltip/opacity.js
test/fixtures/element.line/default.js
test/fixtures/element.line/skip/all.js
test/fixtures/element.line/skip/first-span.js
test/fixtures/element.line/skip/first.js
test/fixtures/element.line/skip/last-span.js
test/fixtures/element.line/skip/last.js
test/fixtures/element.line/skip/middle-span.js
test/fixtures/element.line/skip/middle.js
test/fixtures/element.line/stepped/after.js
test/fixtures/element.line/stepped/before.js
test/fixtures/element.line/stepped/default.js
test/fixtures/element.line/stepped/middle.js
test/fixtures/element.line/tension/default.js
test/fixtures/element.line/tension/one.js
test/fixtures/element.line/tension/zero.js
test/fixtures/element.point/point-style-circle.json
test/fixtures/element.point/point-style-cross-rot.json
test/fixtures/element.point/point-style-cross.json
test/fixtures/element.point/point-style-dash.json
test/fixtures/element.point/point-style-image.js
test/fixtures/element.point/point-style-line.json
test/fixtures/element.point/point-style-rect-rot.json
test/fixtures/element.point/point-style-rect-rounded.json
test/fixtures/element.point/point-style-rect.json
test/fixtures/element.point/point-style-star.json
test/fixtures/element.point/point-style-triangle.json
test/fixtures/element.point/rotation.js
test/fixtures/plugin.filler/fill-line-boundary-end-span.json
test/fixtures/plugin.filler/fill-line-boundary-end.json
test/fixtures/plugin.filler/fill-line-boundary-origin-span.json
test/fixtures/plugin.filler/fill-line-boundary-origin-spline-span.json
test/fixtures/plugin.filler/fill-line-boundary-origin-spline.json
test/fixtures/plugin.filler/fill-line-boundary-origin-stepped-span.json
test/fixtures/plugin.filler/fill-line-boundary-origin-stepped.json
test/fixtures/plugin.filler/fill-line-boundary-origin.json
test/fixtures/plugin.filler/fill-line-boundary-start-span.json
test/fixtures/plugin.filler/fill-line-boundary-start.json
test/fixtures/plugin.filler/fill-line-dataset-border.json
test/fixtures/plugin.filler/fill-line-dataset-span.json
test/fixtures/plugin.filler/fill-line-dataset-spline-span.json
test/fixtures/plugin.filler/fill-line-dataset-spline.json
test/fixtures/plugin.filler/fill-line-dataset.json
test/fixtures/scale.radialLinear/indexable-gridlines.json
test/specs/controller.bar.tests.js
test/specs/controller.bubble.tests.js
test/specs/controller.line.tests.js
test/specs/core.controller.tests.js
test/specs/core.datasetController.tests.js
test/specs/core.layouts.tests.js
test/specs/core.scale.tests.js
test/specs/core.ticks.tests.js
test/specs/scale.category.tests.js
test/specs/scale.linear.tests.js
test/specs/scale.logarithmic.tests.js
test/specs/scale.radialLinear.tests.js
test/specs/scale.time.tests.js