language stringclasses 1
value | owner stringlengths 2 15 | repo stringlengths 2 21 | sha stringlengths 45 45 | message stringlengths 7 36.3k | path stringlengths 1 199 | patch stringlengths 15 102k | is_multipart bool 2
classes |
|---|---|---|---|---|---|---|---|
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | samples/charts/line/point-sizes.html | @@ -97,20 +97,20 @@
mode: 'index'
},
scales: {
- xAxes: [{
+ x: {
display: true,
scaleLabel: {
display: true,
labelString: 'Month'
}
- }],
- yAxes: [{
+ },
+ y: {
display: true,
scaleLabel: {
display: true,
labelS... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | samples/charts/line/skip-points.html | @@ -67,20 +67,20 @@
mode: 'index'
},
scales: {
- xAxes: [{
+ x: {
display: true,
scaleLabel: {
display: true,
labelString: 'Month'
}
- }],
- yAxes: [{
+ },
+ y: {
display: true,
scaleLabel: {
display: true,
labelS... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | samples/charts/scatter/multi-axis.html | @@ -24,8 +24,8 @@
var scatterChartData = {
datasets: [{
label: 'My First dataset',
- xAxisID: 'x-axis-1',
- yAxisID: 'y-axis-1',
+ xAxisID: 'x',
+ yAxisID: 'y',
borderColor: window.chartColors.red,
backgroundColor: color(window.chartColors.red).alpha(0.2).rgbString(),
data: [{
@@ -52,8 +52,... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | samples/legend/callbacks.html | @@ -99,20 +99,20 @@
text: 'Chart.js Line Chart'
},
scales: {
- xAxes: [{
+ x: {
display: true,
scaleLabel: {
display: true,
labelString: 'Month'
}
- }],
- yAxes: [{
+ },
+ y: {
display: true,
scaleLabel: {
display: true,
... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | samples/legend/point-style.html | @@ -68,20 +68,20 @@
}
},
scales: {
- xAxes: [{
+ x: {
display: true,
scaleLabel: {
display: true,
labelString: 'Month'
}
- }],
- yAxes: [{
+ },
+ y: {
display: true,
scaleLabel: {
display: true,
... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | samples/legend/positioning.html | @@ -69,20 +69,20 @@
position: legendPosition,
},
scales: {
- xAxes: [{
+ x: {
display: true,
scaleLabel: {
display: true,
labelString: 'Month'
}
- }],
- yAxes: [{
+ },
+ y: {
display: true,
scaleLabel: {
... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | samples/scales/filtering-labels.html | @@ -64,19 +64,19 @@
text: 'Chart.js Line Chart - X-Axis Filter'
},
scales: {
- xAxes: [{
+ x: {
display: true,
ticks: {
callback: function(dataLabel, index) {
// Hide the label of every 2nd dataset. return null to hide the grid line too
return index % 2 ==... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | samples/scales/gridlines-display.html | @@ -55,17 +55,17 @@
text: title
},
scales: {
- xAxes: [{
+ x: {
gridLines: gridlines
- }],
- yAxes: [{
+ },
+ y: {
gridLines: gridlines,
min: 0,
max: 100,
ticks: {
stepSize: 10
}
- }]
+ }
}
}
... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | samples/scales/gridlines-style.html | @@ -44,7 +44,7 @@
text: 'Grid Line Settings'
},
scales: {
- yAxes: [{
+ y: {
gridLines: {
drawBorder: false,
color: ['pink', 'red', 'orange', 'yellow', 'green', 'blue', 'indigo', 'purple']
@@ -54,7 +54,7 @@
ticks: {
stepSize: 10
}
- }]
+ }
... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | samples/scales/linear/min-max-suggested.html | @@ -44,13 +44,13 @@
text: 'Min and Max Settings'
},
scales: {
- yAxes: [{
+ y: {
// the data minimum used for determining the ticks is Math.min(dataMin, suggestedMin)
suggestedMin: 10,
// the data maximum used for determining the ticks is Math.max(dataMax, suggestedMax)
... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | samples/scales/linear/min-max.html | @@ -44,10 +44,10 @@
text: 'Min and Max Settings'
},
scales: {
- yAxes: [{
+ y: {
min: 10,
max: 50
- }]
+ }
}
}
}; | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | samples/scales/linear/step-size.html | @@ -81,14 +81,14 @@
intersect: true
},
scales: {
- xAxes: [{
+ x: {
display: true,
scaleLabel: {
display: true,
labelString: 'Month'
}
- }],
- yAxes: [{
+ },
+ y: {
display: true,
scaleLabel: {
display: true,
@@ -100,7 +1... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | samples/scales/logarithmic/line.html | @@ -65,13 +65,13 @@
text: 'Chart.js Line Chart - Logarithmic'
},
scales: {
- xAxes: [{
+ x: {
display: true,
- }],
- yAxes: [{
+ },
+ y: {
display: true,
type: 'logarithmic',
- }]
+ }
}
}
}; | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | samples/scales/logarithmic/scatter.html | @@ -133,7 +133,7 @@
text: 'Chart.js Scatter Chart - Logarithmic X-Axis'
},
scales: {
- xAxes: [{
+ x: {
type: 'logarithmic',
position: 'bottom',
ticks: {
@@ -149,8 +149,8 @@
labelString: 'Frequency',
display: true,
}
- }],
- yAxes: [{
+ },
... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | samples/scales/non-numeric-y.html | @@ -39,14 +39,14 @@
text: 'Chart with Non Numeric Y Axis'
},
scales: {
- xAxes: [{
+ x: {
display: true,
scaleLabel: {
display: true,
labelString: 'Month'
}
- }],
- yAxes: [{
+ },
+ y: {
type: 'category',
position: 'left',
... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | samples/scales/time/combo.html | @@ -73,14 +73,14 @@
text: 'Chart.js Combo Time Scale'
},
scales: {
- xAxes: [{
+ x: {
type: 'time',
display: true,
offset: true,
time: {
unit: 'day'
}
- }],
+ },
},
}
}; | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | samples/scales/time/financial.html | @@ -115,7 +115,7 @@
duration: 0
},
scales: {
- xAxes: [{
+ x: {
type: 'time',
distribution: 'series',
offset: true,
@@ -156,16 +156,17 @@
lastMajor = currMajor;
}
}
- }],
- yAxes: [{
+ },
+ y: {
+ type: 'linear',
gridLines:... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | samples/scales/time/line-point-data.html | @@ -82,7 +82,7 @@
text: 'Chart.js Time Point Data'
},
scales: {
- xAxes: [{
+ x: {
type: 'time',
display: true,
scaleLabel: {
@@ -95,14 +95,14 @@
fontColor: '#FF0000'
}
}
- }],
- yAxes: [{
+ },
+ y: {
display: true,
scale... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | samples/scales/time/line.html | @@ -103,7 +103,7 @@
text: 'Chart.js Time Scale'
},
scales: {
- xAxes: [{
+ x: {
type: 'time',
time: {
parser: timeFormat,
@@ -114,13 +114,13 @@
display: true,
labelString: 'Date'
}
- }],
- yAxes: [{
+ },
+ y: {
scaleLabel: {
... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | samples/scales/toggle-scale-type.html | @@ -67,13 +67,13 @@
text: 'Chart.js Line Chart - ' + type
},
scales: {
- xAxes: [{
+ x: {
display: true,
- }],
- yAxes: [{
+ },
+ y: {
display: true,
type: type
- }]
+ }
}
}
};
@@ -86,7 +86,7 @@
document.getElementById('toggleScale').ad... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | samples/tooltips/callbacks.html | @@ -79,20 +79,20 @@
intersect: true
},
scales: {
- xAxes: [{
+ x: {
display: true,
scaleLabel: {
show: true,
labelString: 'Month'
}
- }],
- yAxes: [{
+ },
+ y: {
display: true,
scaleLabel: {
show: true,
labelStrin... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | src/controllers/controller.bar.js | @@ -13,17 +13,16 @@ defaults._set('bar', {
},
scales: {
- xAxes: [{
+ x: {
type: 'category',
offset: true,
gridLines: {
offsetGridLines: true
}
- }],
-
- yAxes: [{
- type: 'linear'
- }]
+ },
+ y: {
+ type: 'linear',
+ }
}
});
@@ -221,13 +220,13 @@ module.exports = DatasetCont... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | src/controllers/controller.bubble.js | @@ -10,16 +10,14 @@ var resolve = helpers.options.resolve;
defaults._set('bubble', {
scales: {
- xAxes: [{
- type: 'linear', // bubble should probably use a linear scale by default
- position: 'bottom',
- id: 'x-axis-0' // need an ID so datasets can reference the scale
- }],
- yAxes: [{
+ x: {
type: ... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | src/controllers/controller.horizontalBar.js | @@ -10,19 +10,18 @@ defaults._set('horizontalBar', {
},
scales: {
- xAxes: [{
+ x: {
type: 'linear',
position: 'bottom'
- }],
-
- yAxes: [{
+ },
+ y: {
type: 'category',
position: 'left',
offset: true,
gridLines: {
offsetGridLines: true
}
- }]
+ }
},
elements: { | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | src/controllers/controller.line.js | @@ -18,14 +18,12 @@ defaults._set('line', {
},
scales: {
- xAxes: [{
+ x: {
type: 'category',
- id: 'x-axis-0'
- }],
- yAxes: [{
+ },
+ y: {
type: 'linear',
- id: 'y-axis-0'
- }]
+ },
}
});
| true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | src/controllers/controller.polarArea.js | @@ -8,17 +8,19 @@ var helpers = require('../helpers/index');
var resolve = helpers.options.resolve;
defaults._set('polarArea', {
- scale: {
- type: 'radialLinear',
- angleLines: {
- display: false
- },
- beginAtZero: true,
- gridLines: {
- circular: true
- },
- pointLabels: {
- display: false
+ scales:... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | src/controllers/controller.radar.js | @@ -9,8 +9,10 @@ var valueOrDefault = helpers.valueOrDefault;
defaults._set('radar', {
spanGaps: false,
- scale: {
- type: 'radialLinear'
+ scales: {
+ r: {
+ type: 'radialLinear',
+ }
},
elements: {
line: {
@@ -67,14 +69,14 @@ module.exports = DatasetController.extend({
* @private
*/
_getIndex... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | src/controllers/controller.scatter.js | @@ -5,16 +5,14 @@ var defaults = require('../core/core.defaults');
defaults._set('scatter', {
scales: {
- xAxes: [{
- id: 'x-axis-1', // need an ID so datasets can reference the scale
- type: 'linear', // scatter should not use a category axis
+ x: {
+ type: 'linear',
position: 'bottom'
- }],
- ... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | src/core/core.controller.js | @@ -35,44 +35,46 @@ defaults._set('global', {
responsiveAnimationDuration: 0
});
-/**
- * Recursively merge the given config objects representing the `scales` option
- * by incorporating scale defaults in `xAxes` and `yAxes` array items, then
- * returns a deep copy of the result, thus doesn't alter inputs.
- */
-... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | src/core/core.datasetController.js | @@ -175,15 +175,6 @@ function getStackKey(indexScale, valueScale, meta) {
return indexScale.id + '.' + valueScale.id + '.' + meta.stack + '.' + meta.type;
}
-function getFirstScaleId(chart, axis) {
- var scalesOpts = chart.options.scales;
- var scale = chart.options.scale;
- var scaleId = scale && scale.id;
- var ... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | src/core/core.scale.js | @@ -1388,13 +1388,6 @@ class Scale extends Element {
}];
}
- /**
- * @private
- */
- _getAxis() {
- return this.isHorizontal() ? 'x' : 'y';
- }
-
/**
* Returns visible dataset metas that are attached to this scale
* @param {string} [type] - if specified, also filter by dataset type
@@ -1403,7 +1396,7 ... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | src/plugins/plugin.filler.js | @@ -428,7 +428,7 @@ module.exports = {
visible: chart.isDatasetVisible(i),
fill: decodeFill(el, i, count),
chart: chart,
- scale: meta.controller.getScaleForId(meta.yAxisID) || chart.scale,
+ scale: meta.yScale || meta.rScale,
el: el
};
} | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bar/backgroundColor/indexable.js | @@ -38,8 +38,8 @@ module.exports = {
}
},
scales: {
- xAxes: [{display: false}],
- yAxes: [{display: false}]
+ x: {display: false},
+ y: {display: false}
}
}
}, | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bar/backgroundColor/scriptable.js | @@ -36,13 +36,11 @@ module.exports = {
}
},
scales: {
- xAxes: [{display: false}],
- yAxes: [
- {
- display: false,
- beginAtZero: true
- }
- ]
+ x: {display: false},
+ y: {
+ display: false,
+ beginAtZero: true
+ }
}
}
}, | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bar/backgroundColor/value.js | @@ -24,8 +24,8 @@ module.exports = {
}
},
scales: {
- xAxes: [{display: false}],
- yAxes: [{display: false}]
+ x: {display: false},
+ y: {display: false}
}
}
}, | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bar/bar-thickness-absolute.json | @@ -16,7 +16,7 @@
"legend": false,
"title": false,
"scales": {
- "xAxes": [{
+ "x": {
"type": "time",
"offset": true,
"display": false,
@@ -26,11 +26,11 @@
"ticks": {
... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bar/bar-thickness-flex-offset.json | @@ -16,7 +16,7 @@
"legend": false,
"title": false,
"scales": {
- "xAxes": [{
+ "x": {
"type": "time",
"offset": true,
"display": false,
@@ -26,11 +26,11 @@
"ticks": {
... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bar/bar-thickness-flex-single-reverse.json | @@ -16,21 +16,22 @@
"legend": false,
"title": false,
"scales": {
- "xAxes": [{
+ "x": {
"type": "time",
"display": false,
+ "offset": false,
"time": {
... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bar/bar-thickness-flex-single.json | @@ -16,20 +16,21 @@
"legend": false,
"title": false,
"scales": {
- "xAxes": [{
+ "x": {
"type": "time",
"display": false,
+ "offset": false,
"time": {
... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bar/bar-thickness-flex.json | @@ -16,20 +16,21 @@
"legend": false,
"title": false,
"scales": {
- "xAxes": [{
+ "x": {
"type": "time",
"display": false,
+ "offset": false,
"time": {
... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bar/bar-thickness-max.json | @@ -16,20 +16,21 @@
"legend": false,
"title": false,
"scales": {
- "xAxes": [{
+ "x": {
"type": "time",
"display": false,
+ "offset": false,
"time": {
... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bar/bar-thickness-min-interval.json | @@ -15,20 +15,21 @@
"legend": false,
"title": false,
"scales": {
- "xAxes": [{
+ "x": {
"type": "time",
"display": false,
+ "offset": false,
"time": {
... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bar/bar-thickness-multiple.json | @@ -25,20 +25,21 @@
}
},
"scales": {
- "xAxes": [{
+ "x": {
"type": "time",
"display": false,
+ "offset": false,
"time": {
"parser": "YYYY"
... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bar/bar-thickness-no-overlap.json | @@ -25,20 +25,21 @@
}
},
"scales": {
- "xAxes": [{
+ "x": {
"type": "time",
"display": false,
+ "offset": false,
"time": {
"parser": "YYYY-M... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bar/bar-thickness-offset.json | @@ -25,7 +25,7 @@
}
},
"scales": {
- "xAxes": [{
+ "x": {
"type": "time",
"offset": true,
"display": false,
@@ -35,11 +35,11 @@
"ticks": {
... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bar/bar-thickness-per-dataset-stacked.json | @@ -24,7 +24,7 @@
"legend": false,
"title": false,
"scales": {
- "xAxes": [{
+ "x": {
"type": "time",
"offset": true,
"stacked": true,
@@ -35,12 +35,12 @@
"ticks": {
... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bar/bar-thickness-per-dataset.json | @@ -19,7 +19,7 @@
"legend": false,
"title": false,
"scales": {
- "xAxes": [{
+ "x": {
"type": "time",
"offset": true,
"display": false,
@@ -29,11 +29,11 @@
"ticks": {
... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bar/bar-thickness-reverse.json | @@ -25,21 +25,22 @@
}
},
"scales": {
- "xAxes": [{
+ "x": {
"type": "time",
"display": false,
+ "offset": false,
"time": {
"parser": "YYYY"
... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bar/bar-thickness-single-xy.json | @@ -15,20 +15,21 @@
"legend": false,
"title": false,
"scales": {
- "xAxes": [{
+ "x": {
"type": "time",
"display": false,
+ "offset": false,
"time": {
... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bar/bar-thickness-single.json | @@ -15,21 +15,22 @@
"legend": false,
"title": false,
"scales": {
- "xAxes": [{
+ "x": {
"type": "time",
"display": false,
+ "offset": false,
"time": {
... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bar/bar-thickness-stacked.json | @@ -25,22 +25,23 @@
}
},
"scales": {
- "xAxes": [{
+ "x": {
"type": "time",
"stacked": true,
"display": false,
+ "offset": false,
"time": {
... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bar/borderColor/indexable.js | @@ -40,8 +40,8 @@ module.exports = {
}
},
scales: {
- xAxes: [{display: false}],
- yAxes: [{display: false}]
+ x: {display: false},
+ y: {display: false}
}
}
}, | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bar/borderColor/scriptable.js | @@ -38,13 +38,11 @@ module.exports = {
}
},
scales: {
- xAxes: [{display: false}],
- yAxes: [
- {
- display: false,
- beginAtZero: true
- }
- ]
+ x: {display: false},
+ y: {
+ display: false,
+ beginAtZero: true
+ }
}
}
}, | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bar/borderColor/value.js | @@ -26,8 +26,8 @@ module.exports = {
}
},
scales: {
- xAxes: [{display: false}],
- yAxes: [{display: false}]
+ x: {display: false},
+ y: {display: false}
}
}
}, | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bar/borderSkipped/indexable.js | @@ -41,8 +41,8 @@ module.exports = {
}
},
scales: {
- xAxes: [{display: false}],
- yAxes: [{display: false}]
+ x: {display: false},
+ y: {display: false}
}
}
}, | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bar/borderSkipped/scriptable.js | @@ -39,13 +39,11 @@ module.exports = {
}
},
scales: {
- xAxes: [{display: false}],
- yAxes: [
- {
- display: false,
- beginAtZero: true
- }
- ]
+ x: {display: false},
+ y: {
+ display: false,
+ beginAtZero: true
+ }
}
}
}, | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bar/borderSkipped/value.js | @@ -42,8 +42,8 @@ module.exports = {
}
},
scales: {
- xAxes: [{display: false}],
- yAxes: [{display: false}]
+ x: {display: false},
+ y: {display: false}
}
}
}, | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bar/borderWidth/indexable-object.js | @@ -42,8 +42,8 @@ module.exports = {
}
},
scales: {
- xAxes: [{display: false}],
- yAxes: [{display: false}]
+ x: {display: false},
+ y: {display: false}
}
}
}, | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bar/borderWidth/indexable.js | @@ -40,8 +40,8 @@ module.exports = {
}
},
scales: {
- xAxes: [{display: false}],
- yAxes: [{display: false}]
+ x: {display: false},
+ y: {display: false}
}
}
}, | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bar/borderWidth/negative.js | @@ -35,8 +35,8 @@ module.exports = {
}
},
scales: {
- xAxes: [{display: false}],
- yAxes: [{display: false}]
+ x: {display: false},
+ y: {display: false}
}
}
}, | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bar/borderWidth/object.js | @@ -28,8 +28,8 @@ module.exports = {
}
},
scales: {
- xAxes: [{display: false}],
- yAxes: [{display: false}]
+ x: {display: false},
+ y: {display: false}
}
}
}, | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bar/borderWidth/scriptable-object.js | @@ -33,13 +33,11 @@ module.exports = {
}
},
scales: {
- xAxes: [{display: false}],
- yAxes: [
- {
- display: false,
- beginAtZero: true
- }
- ]
+ x: {display: false},
+ y: {
+ display: false,
+ beginAtZero: true
+ }
}
}
}, | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bar/borderWidth/scriptable.js | @@ -31,13 +31,11 @@ module.exports = {
}
},
scales: {
- xAxes: [{display: false}],
- yAxes: [
- {
- display: false,
- beginAtZero: true
- }
- ]
+ x: {display: false},
+ y: {
+ display: false,
+ beginAtZero: true
+ }
}
}
}, | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bar/borderWidth/value.js | @@ -26,8 +26,8 @@ module.exports = {
}
},
scales: {
- xAxes: [{display: false}],
- yAxes: [{display: false}]
+ x: {display: false},
+ y: {display: false}
}
}
}, | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bar/chart-area-clip.js | @@ -28,8 +28,8 @@ module.exports = {
}
},
scales: {
- xAxes: [{display: false}],
- yAxes: [{display: false, min: -10, max: 10}]
+ x: {display: false},
+ y: {display: false, min: -10, max: 10}
}
}
}, | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bar/data/object.js | @@ -18,8 +18,8 @@ module.exports = {
legend: false,
title: false,
scales: {
- xAxes: [{display: false}],
- yAxes: [{display: false}]
+ x: {display: false},
+ y: {display: false}
}
}
}, | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bar/floatBar/data-as-objects-horizontal.js | @@ -18,8 +18,8 @@ module.exports = {
legend: false,
title: false,
scales: {
- xAxes: [{display: false, min: 0}],
- yAxes: [{display: false, stacked: true}]
+ x: {display: false, min: 0},
+ y: {display: false, stacked: true}
}
}
}, | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bar/floatBar/data-as-objects.js | @@ -18,8 +18,8 @@ module.exports = {
legend: false,
title: false,
scales: {
- xAxes: [{display: false, stacked: true}],
- yAxes: [{display: false, min: 0}]
+ x: {display: false, stacked: true},
+ y: {display: false, min: 0}
}
}
}, | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bar/floatBar/float-bar-horizontal.json | @@ -18,14 +18,14 @@
"title": false,
"legend": false,
"scales": {
- "xAxes": [{
+ "x": {
"display": false,
"min": -8,
"max": 12
- }],
- "yAxes": [{
+ ... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bar/floatBar/float-bar-stacked-horizontal.json | @@ -18,16 +18,16 @@
"title": false,
"legend": false,
"scales": {
- "xAxes": [{
+ "x": {
"display": false,
"stacked": true
- }],
- "yAxes": [{
+ },
+ ... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bar/floatBar/float-bar-stacked.json | @@ -18,16 +18,16 @@
"title": false,
"legend": false,
"scales": {
- "xAxes": [{
+ "x": {
"display": false,
"stacked": true,
"min": -8,
"max": 12
- }],
- ... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bar/floatBar/float-bar.json | @@ -18,14 +18,14 @@
"title": false,
"legend": false,
"scales": {
- "xAxes": [{
+ "x": {
"display": false,
"min": -8,
"max": 12
- }],
- "yAxes": [{
+ ... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bar/horizontal-borders.js | @@ -28,8 +28,8 @@ module.exports = {
}
},
scales: {
- xAxes: [{display: false}],
- yAxes: [{display: false}]
+ x: {display: false},
+ y: {display: false}
}
}
}, | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bar/stacking/order-default.json | @@ -19,15 +19,15 @@
"legend": false,
"title": false,
"scales": {
- "xAxes": [{
+ "x": {
"display": false,
"stacked": true
- }],
- "yAxes": [{
+ },
+ ... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bar/stacking/order-specified.json | @@ -22,15 +22,15 @@
"legend": false,
"title": false,
"scales": {
- "xAxes": [{
+ "x": {
"display": false,
"stacked": true
- }],
- "yAxes": [{
+ },
+ ... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bubble/clip.js | @@ -14,15 +14,15 @@ module.exports = {
options: {
legend: false,
scales: {
- xAxes: [{ticks: {display: false}}],
- yAxes: [{
+ x: {ticks: {display: false}},
+ y: {
min: 8,
max: 25,
beginAtZero: true,
ticks: {
display: false
}
- }]
+ }
}
}
}, | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bubble/point-style.json | @@ -93,12 +93,12 @@
"legend": false,
"title": false,
"scales": {
- "xAxes": [{"display": false}],
- "yAxes": [{
+ "x": {"display": false},
+ "y": {
"display": false,
"min": 0,
... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bubble/radius-data.js | @@ -21,8 +21,8 @@ module.exports = {
legend: false,
title: false,
scales: {
- xAxes: [{display: false}],
- yAxes: [{display: false}]
+ x: {display: false},
+ y: {display: false}
},
elements: {
point: { | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.bubble/radius-scriptable.js | @@ -20,8 +20,8 @@ module.exports = {
legend: false,
title: false,
scales: {
- xAxes: [{display: false}],
- yAxes: [{display: false}]
+ x: {display: false},
+ y: {display: false}
},
elements: {
point: { | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.line/backgroundColor/scriptable.js | @@ -41,13 +41,11 @@ module.exports = {
padding: 32
},
scales: {
- xAxes: [{display: false}],
- yAxes: [
- {
- display: false,
- beginAtZero: true
- }
- ]
+ x: {display: false},
+ y: {
+ display: false,
+ beginAtZero: true
+ }
}
}
}, | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.line/backgroundColor/value.js | @@ -30,8 +30,8 @@ module.exports = {
padding: 32
},
scales: {
- xAxes: [{display: false}],
- yAxes: [{display: false}]
+ x: {display: false},
+ y: {display: false}
}
}
}, | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.line/borderCapStyle/scriptable.js | @@ -47,13 +47,11 @@ module.exports = {
padding: 32
},
scales: {
- xAxes: [{display: false}],
- yAxes: [
- {
- display: false,
- beginAtZero: true
- }
- ]
+ x: {display: false},
+ y: {
+ display: false,
+ beginAtZero: true
+ }
}
}
}, | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.line/borderCapStyle/value.js | @@ -38,8 +38,8 @@ module.exports = {
padding: 32
},
scales: {
- xAxes: [{display: false}],
- yAxes: [{display: false}]
+ x: {display: false},
+ y: {display: false}
}
}
}, | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.line/borderColor/scriptable.js | @@ -44,13 +44,11 @@ module.exports = {
padding: 32
},
scales: {
- xAxes: [{display: false}],
- yAxes: [
- {
- display: false,
- beginAtZero: true
- }
- ]
+ x: {display: false},
+ y: {
+ display: false,
+ beginAtZero: true
+ }
}
}
}, | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.line/borderColor/value.js | @@ -32,8 +32,8 @@ module.exports = {
padding: 32
},
scales: {
- xAxes: [{display: false}],
- yAxes: [{display: false}]
+ x: {display: false},
+ y: {display: false}
}
}
}, | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.line/borderDash/scriptable.js | @@ -35,13 +35,11 @@ module.exports = {
padding: 32
},
scales: {
- xAxes: [{display: false}],
- yAxes: [
- {
- display: false,
- beginAtZero: true
- }
- ]
+ x: {display: false},
+ y: {
+ display: false,
+ beginAtZero: true
+ }
}
}
}, | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.line/borderDash/value.js | @@ -33,8 +33,8 @@ module.exports = {
padding: 32
},
scales: {
- xAxes: [{display: false}],
- yAxes: [{display: false}]
+ x: {display: false},
+ y: {display: false}
}
}
}, | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.line/borderDashOffset/scriptable.js | @@ -39,8 +39,8 @@ module.exports = {
padding: 32
},
scales: {
- xAxes: [{display: false}],
- yAxes: [{display: false}]
+ x: {display: false},
+ y: {display: false}
}
}
}, | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.line/borderDashOffset/value.js | @@ -35,8 +35,8 @@ module.exports = {
padding: 32
},
scales: {
- xAxes: [{display: false}],
- yAxes: [{display: false}]
+ x: {display: false},
+ y: {display: false}
}
}
}, | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.line/borderJoinStyle/scriptable.js | @@ -47,8 +47,8 @@ module.exports = {
padding: 32
},
scales: {
- xAxes: [{display: false}],
- yAxes: [{display: false}]
+ x: {display: false},
+ y: {display: false}
}
}
}, | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.line/borderJoinStyle/value.js | @@ -38,8 +38,8 @@ module.exports = {
padding: 32
},
scales: {
- xAxes: [{display: false}],
- yAxes: [{display: false}]
+ x: {display: false},
+ y: {display: false}
}
}
}, | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.line/borderWidth/scriptable.js | @@ -42,13 +42,11 @@ module.exports = {
padding: 32
},
scales: {
- xAxes: [{display: false}],
- yAxes: [
- {
- display: false,
- beginAtZero: true
- }
- ]
+ x: {display: false},
+ y: {
+ display: false,
+ beginAtZero: true
+ }
}
}
}, | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.line/borderWidth/value.js | @@ -33,8 +33,8 @@ module.exports = {
padding: 32
},
scales: {
- xAxes: [{display: false}],
- yAxes: [{display: false}]
+ x: {display: false},
+ y: {display: false}
}
}
}, | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.line/clip/default-x-max.json | @@ -16,13 +16,13 @@
"legend": false,
"title": false,
"scales": {
- "xAxes": [{
+ "x": {
"max": 3,
"ticks": {
"display": false
}
- }],
- ... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.line/clip/default-x-min.json | @@ -16,13 +16,13 @@
"legend": false,
"title": false,
"scales": {
- "xAxes": [{
+ "x": {
"min": -2,
"ticks": {
"display": false
}
- }],
- ... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.line/clip/default-x.json | @@ -16,14 +16,14 @@
"legend": false,
"title": false,
"scales": {
- "xAxes": [{
+ "x": {
"min": -2,
"max": 3,
"ticks": {
"display": false
}
- ... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.line/clip/default-y-max.json | @@ -16,13 +16,13 @@
"legend": false,
"title": false,
"scales": {
- "xAxes": [{"ticks": {"display": false}}],
- "yAxes": [{
+ "x": {"ticks": {"display": false}},
+ "y": {
"max": 6,
... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.line/clip/default-y-min.json | @@ -16,13 +16,13 @@
"legend": false,
"title": false,
"scales": {
- "xAxes": [{"ticks": {"display": false}}],
- "yAxes": [{
+ "x": {"ticks": {"display": false}},
+ "y": {
"min": 2,
... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.line/clip/default-y.json | @@ -16,14 +16,14 @@
"legend": false,
"title": false,
"scales": {
- "xAxes": [{"ticks": {"display": false}}],
- "yAxes": [{
+ "x": {"ticks": {"display": false}},
+ "y": {
"min": 2,
... | true |
Other | chartjs | Chart.js | ce74eb76a1ad29c0ccaeb8cf3e606d82e38f2ac7.json | 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 defau... | test/fixtures/controller.line/clip/specified.json | @@ -39,20 +39,20 @@
"legend": false,
"title": false,
"scales": {
- "xAxes": [{
+ "x": {
"min": -2,
"max": 2,
"ticks": {
"display": false
}
- ... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.