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
65a601476c9877701ef0f4543059e1711b776bfc.json
Remove debug option from animation (#8512) * Remove debug option from animation * Add converage for visible animation * Update visible animation fn
docs/docs/configuration/animations.mdx
@@ -136,7 +136,6 @@ Namespace: `options.animation` | ---- | ---- | ------- | ----------- | `duration` | `number` | `1000` | The number of milliseconds an animation takes. | `easing` | `string` | `'easeOutQuart'` | Easing function to use. [more...](#easing) -| `debug` | `boolean` | `undefined` | Running animation cou...
true
Other
chartjs
Chart.js
65a601476c9877701ef0f4543059e1711b776bfc.json
Remove debug option from animation (#8512) * Remove debug option from animation * Add converage for visible animation * Update visible animation fn
src/core/core.animations.js
@@ -69,7 +69,7 @@ defaults.set('transitions', { }, visible: { type: 'boolean', - fn: v => v < 1 ? 0 : 1 // for keeping the dataset visible all the way through the animation + fn: v => v | 0 // for keeping the dataset visible all the way through the animation }, } }
true
Other
chartjs
Chart.js
65a601476c9877701ef0f4543059e1711b776bfc.json
Remove debug option from animation (#8512) * Remove debug option from animation * Add converage for visible animation * Update visible animation fn
src/core/core.animator.js
@@ -5,20 +5,6 @@ import {requestAnimFrame} from '../helpers/helpers.extras'; * @typedef { import("./core.controller").default } Chart */ -function drawFPS(chart, count, date, lastDate) { - const fps = (1000 / (date - lastDate)) | 0; - const ctx = chart.ctx; - ctx.save(); - ctx.clearRect(0, 0, 50, 24); - ctx....
true
Other
chartjs
Chart.js
65a601476c9877701ef0f4543059e1711b776bfc.json
Remove debug option from animation (#8512) * Remove debug option from animation * Add converage for visible animation * Update visible animation fn
test/specs/core.animations.tests.js
@@ -64,11 +64,7 @@ describe('Chart.animations', function() { it('should assign shared options to target after animations complete', function(done) { const chart = { draw: function() {}, - options: { - animation: { - debug: false - } - } + options: {} }; con...
true
Other
chartjs
Chart.js
ee74dd646a60e605308b90a5147fc7121ac9c0ee.json
Add resizeDelay option (#8509) * Add resizeDelay option * Extract helper
docs/docs/configuration/responsive.md
@@ -21,6 +21,7 @@ Namespace: `options` | `maintainAspectRatio` | `boolean` | `true` | Maintain the original canvas aspect ratio `(width / height)` when resizing. | `aspectRatio` | `number` | `2` | Canvas aspect ratio (i.e. `width / height`, a value of 1 representing a square canvas). Note that this option is ignored ...
true
Other
chartjs
Chart.js
ee74dd646a60e605308b90a5147fc7121ac9c0ee.json
Add resizeDelay option (#8509) * Add resizeDelay option * Extract helper
src/core/core.controller.js
@@ -11,6 +11,7 @@ import {each, callback as callCallback, uid, valueOrDefault, _elementsEqual} fro import {clearCanvas, clipArea, unclipArea, _isPointInArea} from '../helpers/helpers.canvas'; // @ts-ignore import {version} from '../../package.json'; +import {debounce} from '../helpers/helpers.extras'; /** * @ty...
true
Other
chartjs
Chart.js
ee74dd646a60e605308b90a5147fc7121ac9c0ee.json
Add resizeDelay option (#8509) * Add resizeDelay option * Extract helper
src/helpers/helpers.extras.js
@@ -40,6 +40,25 @@ export function throttled(fn, thisArg, updateFn) { }; } +/** + * Debounces calling `fn` for `delay` ms + * @param {function} fn - Function to call. No arguments are passed. + * @param {number} delay - Delay in ms. 0 = immediate invocation. + * @returns {function} + */ +export function debounce(...
true
Other
chartjs
Chart.js
e55a12ce87162463bcfe28afc98eb5053382b375.json
Add linting of type tests (.ts) + fix errors (#8505)
package.json
@@ -40,7 +40,7 @@ "lint-js": "eslint \"samples/**/*.html\" \"samples/**/*.js\" \"src/**/*.js\" \"test/**/*.js\"", "lint-md": "markdownlint-cli2 \"**/*.md\" \"**/*.mdx\" \"#**/node_modules\"", "lint-tsc": "tsc", - "lint-types": "eslint \"types/**/*.d.ts\" && tsc -p types/tests/", + "lint-types": "es...
true
Other
chartjs
Chart.js
e55a12ce87162463bcfe28afc98eb5053382b375.json
Add linting of type tests (.ts) + fix errors (#8505)
types/tests/plugins/plugin.tooltip/tooltip_parsed_data_chart_defaults.ts
@@ -1,9 +1,9 @@ import { Chart } from '../../../index.esm'; Chart.defaults.controllers.bubble.plugins.tooltip.callbacks.label = (item) => { - const {x, y, _custom: r} = item.parsed; - return `${item.label}: (${x}, ${y}, ${r})`; -} + const { x, y, _custom: r } = item.parsed; + return `${item.label}: (${x}, $...
true
Other
chartjs
Chart.js
36966a46c793c4a4c77b9c56ab620006c13aa6bb.json
update borderskipped typing (#8503)
types/index.esm.d.ts
@@ -1839,10 +1839,10 @@ export interface BarOptions extends CommonElementOptions { base: number; /** - * Skipped (excluded) border: 'start', 'end', 'bottom', 'left', 'top' or 'right'. + * Skipped (excluded) border: 'start', 'end', 'left', 'right', 'bottom', 'top' or false (none). * @default 'start' */ ...
false
Other
chartjs
Chart.js
311292da7e818ccb1758679618d91d34254f1880.json
Add linting of .mdx files + fix errors (#8496)
docs/docs/axes/cartesian/linear.mdx
@@ -24,9 +24,9 @@ Namespace: `options.scales[scaleId]` ## Tick Configuration -### Linear Axis specific options +### Linear Axis specific tick options -Namespace: `options.scales[scaleId]` +Namespace: `options.scales[scaleId].ticks` | Name | Type | Default | Description | ---- | ---- | ------- | -----------
true
Other
chartjs
Chart.js
311292da7e818ccb1758679618d91d34254f1880.json
Add linting of .mdx files + fix errors (#8496)
docs/docs/axes/radial/linear.mdx
@@ -26,7 +26,7 @@ Namespace: `options.scales[scaleId]` ## Tick Configuration -### Linear Radial Axis specific options +### Linear Radial Axis specific tick options Namespace: `options.scales[scaleId].ticks`
true
Other
chartjs
Chart.js
311292da7e818ccb1758679618d91d34254f1880.json
Add linting of .mdx files + fix errors (#8496)
docs/docs/charts/bar.mdx
@@ -176,7 +176,7 @@ The bar chart accepts the following configuration from the associated dataset op | `maxBarThickness` | `number` | | Set this to ensure that bars are not sized thicker than this. | `minBarLength` | `number` | | Set this to ensure that bars have a minimum length in pixels. -### Example Usage +### ...
true
Other
chartjs
Chart.js
311292da7e818ccb1758679618d91d34254f1880.json
Add linting of .mdx files + fix errors (#8496)
docs/docs/charts/doughnut.mdx
@@ -121,7 +121,6 @@ The doughnut/pie chart allows a number of properties to be specified for each da | `clip` | How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. `0` = clip at chartArea. Clipping can also be configured per side: `clip: {left: 5, ...
true
Other
chartjs
Chart.js
311292da7e818ccb1758679618d91d34254f1880.json
Add linting of .mdx files + fix errors (#8496)
docs/docs/charts/line.mdx
@@ -224,50 +224,50 @@ To achieve this you will have to set the `indexAxis` property in the options obj The default for this property is `'x'` and thus will show horizontal lines. export const ExampleChart1 = () => { - useEffect(() => { - const cfg = { - type: 'line', - data: { - labels: ['January', 'Februar...
true
Other
chartjs
Chart.js
311292da7e818ccb1758679618d91d34254f1880.json
Add linting of .mdx files + fix errors (#8496)
package.json
@@ -38,7 +38,7 @@ "dev": "karma start --auto-watch --no-single-run --browsers chrome --grep", "docs": "cd docs && npm install && npm run build", "lint-js": "eslint \"samples/**/*.html\" \"samples/**/*.js\" \"src/**/*.js\" \"test/**/*.js\"", - "lint-md": "markdownlint-cli2 \"**/*.md\" \"#**/node_module...
true
Other
chartjs
Chart.js
5d5e48d01b0aed1279c60c5ea0c97d5328de346e.json
Isolate properties / modes from animation options (#8332) * Isolate properties / modes from animation options * tabs, something wrong with the linter * Update misleading variable name
docs/docs/configuration/animations.mdx
@@ -33,21 +33,21 @@ function example() { }] }, options: { - animation: { - tension: { - duration: 1000, - easing: 'linear', - from: 1, - to: 0, - loop: true - } - }, - ...
true
Other
chartjs
Chart.js
5d5e48d01b0aed1279c60c5ea0c97d5328de346e.json
Isolate properties / modes from animation options (#8332) * Isolate properties / modes from animation options * tabs, something wrong with the linter * Update misleading variable name
docs/docs/developers/api.md
@@ -28,7 +28,7 @@ myLineChart.data.datasets[0].data[2] = 50; // Would update the first dataset's v myLineChart.update(); // Calling update now animates the position of March from 90 to 50. ``` -A `mode` string can be provided to indicate what should be updated and what animation configuration should be used. Core c...
true
Other
chartjs
Chart.js
5d5e48d01b0aed1279c60c5ea0c97d5328de346e.json
Isolate properties / modes from animation options (#8332) * Isolate properties / modes from animation options * tabs, something wrong with the linter * Update misleading variable name
samples/animations/drop.html
@@ -33,13 +33,13 @@ labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'], datasets: [{ label: 'My First dataset', - animation: { + animations: { y: { duration: 2000, - delay: 100 + delay: 500 } }, - backgroundColor: window.chartColo...
true
Other
chartjs
Chart.js
5d5e48d01b0aed1279c60c5ea0c97d5328de346e.json
Isolate properties / modes from animation options (#8332) * Isolate properties / modes from animation options * tabs, something wrong with the linter * Update misleading variable name
samples/animations/loop.html
@@ -62,7 +62,7 @@ }] }, options: { - animation: { + animations: { radius: { duration: 400, easing: 'linear', @@ -74,23 +74,18 @@ hoverRadius: 6 } }, - responsive: true, + interaction: { + mode: 'nearest', + axis: 'x', + intersect: false + }, ...
true
Other
chartjs
Chart.js
5d5e48d01b0aed1279c60c5ea0c97d5328de346e.json
Isolate properties / modes from animation options (#8332) * Isolate properties / modes from animation options * tabs, something wrong with the linter * Update misleading variable name
src/controllers/controller.bar.js
@@ -520,7 +520,7 @@ BarController.defaults = { datasets: { categoryPercentage: 0.8, barPercentage: 0.9, - animation: { + animations: { numbers: { type: 'number', properties: ['x', 'y', 'base', 'width', 'height']
true
Other
chartjs
Chart.js
5d5e48d01b0aed1279c60c5ea0c97d5328de346e.json
Isolate properties / modes from animation options (#8332) * Isolate properties / modes from animation options * tabs, something wrong with the linter * Update misleading variable name
src/controllers/controller.bubble.js
@@ -133,8 +133,9 @@ BubbleController.id = 'bubble'; BubbleController.defaults = { datasetElementType: false, dataElementType: 'point', - animation: { + animations: { numbers: { + type: 'number', properties: ['x', 'y', 'borderWidth', 'radius'] } },
true
Other
chartjs
Chart.js
5d5e48d01b0aed1279c60c5ea0c97d5328de346e.json
Isolate properties / modes from animation options (#8332) * Isolate properties / modes from animation options * tabs, something wrong with the linter * Update misleading variable name
src/controllers/controller.doughnut.js
@@ -329,15 +329,17 @@ DoughnutController.defaults = { datasetElementType: false, dataElementType: 'arc', animation: { - numbers: { - type: 'number', - properties: ['circumference', 'endAngle', 'innerRadius', 'outerRadius', 'startAngle', 'x', 'y', 'offset', 'borderWidth'] - }, // Boolean - ...
true
Other
chartjs
Chart.js
5d5e48d01b0aed1279c60c5ea0c97d5328de346e.json
Isolate properties / modes from animation options (#8332) * Isolate properties / modes from animation options * tabs, something wrong with the linter * Update misleading variable name
src/controllers/controller.polarArea.js
@@ -122,12 +122,14 @@ PolarAreaController.id = 'polarArea'; PolarAreaController.defaults = { dataElementType: 'arc', animation: { + animateRotate: true, + animateScale: true + }, + animations: { numbers: { type: 'number', properties: ['x', 'y', 'startAngle', 'endAngle', 'innerRadius', ...
true
Other
chartjs
Chart.js
5d5e48d01b0aed1279c60c5ea0c97d5328de346e.json
Isolate properties / modes from animation options (#8332) * Isolate properties / modes from animation options * tabs, something wrong with the linter * Update misleading variable name
src/core/core.animation.js
@@ -28,7 +28,7 @@ export default class Animation { this._active = true; this._fn = cfg.fn || interpolators[cfg.type || typeof from]; - this._easing = effects[cfg.easing || 'linear']; + this._easing = effects[cfg.easing] || effects.linear; this._start = Math.floor(Date.now() + (cfg.delay || 0)); ...
true
Other
chartjs
Chart.js
5d5e48d01b0aed1279c60c5ea0c97d5328de346e.json
Isolate properties / modes from animation options (#8332) * Isolate properties / modes from animation options * tabs, something wrong with the linter * Update misleading variable name
src/core/core.animations.js
@@ -1,20 +1,31 @@ import animator from './core.animator'; import Animation from './core.animation'; import defaults from './core.defaults'; -import {isObject} from '../helpers/helpers.core'; +import {isArray, isObject} from '../helpers/helpers.core'; const numbers = ['x', 'y', 'borderWidth', 'radius', 'tension'];...
true
Other
chartjs
Chart.js
5d5e48d01b0aed1279c60c5ea0c97d5328de346e.json
Isolate properties / modes from animation options (#8332) * Isolate properties / modes from animation options * tabs, something wrong with the linter * Update misleading variable name
src/core/core.config.js
@@ -166,11 +166,11 @@ export default class Config { } /** - * Returns the option scope keys for resolving dataset options. - * These keys do not include the dataset itself, because it is not under options. - * @param {string} datasetType - * @return {string[]} - */ + * Returns the option scope keys for r...
true
Other
chartjs
Chart.js
5d5e48d01b0aed1279c60c5ea0c97d5328de346e.json
Isolate properties / modes from animation options (#8332) * Isolate properties / modes from animation options * tabs, something wrong with the linter * Update misleading variable name
src/core/core.datasetController.js
@@ -763,23 +763,23 @@ export default class DatasetController { /** * @private */ - _resolveAnimations(index, mode, active) { + _resolveAnimations(index, transition, active) { const me = this; const chart = me.chart; const cache = me._cachedDataOpts; - const cacheKey = 'animation-' + mode; +...
true
Other
chartjs
Chart.js
5d5e48d01b0aed1279c60c5ea0c97d5328de346e.json
Isolate properties / modes from animation options (#8332) * Isolate properties / modes from animation options * tabs, something wrong with the linter * Update misleading variable name
src/core/core.scale.js
@@ -83,12 +83,16 @@ defaults.route('scale.ticks', 'color', '', 'color'); defaults.route('scale.gridLines', 'color', '', 'borderColor'); defaults.route('scale.scaleLabel', 'color', '', 'color'); -defaults.describe('scales', { - _fallback: 'scale', +defaults.describe('scale', { + _fallback: false, _scriptable: (...
true
Other
chartjs
Chart.js
5d5e48d01b0aed1279c60c5ea0c97d5328de346e.json
Isolate properties / modes from animation options (#8332) * Isolate properties / modes from animation options * tabs, something wrong with the linter * Update misleading variable name
src/helpers/helpers.config.js
@@ -1,26 +1,33 @@ -import {defined, isArray, isFunction, isObject, resolveObjectKey, valueOrDefault, _capitalize} from './helpers.core'; +import {defined, isArray, isFunction, isObject, resolveObjectKey, _capitalize} from './helpers.core'; /** * Creates a Proxy for resolving raw values for options. * @param {obj...
true
Other
chartjs
Chart.js
5d5e48d01b0aed1279c60c5ea0c97d5328de346e.json
Isolate properties / modes from animation options (#8332) * Isolate properties / modes from animation options * tabs, something wrong with the linter * Update misleading variable name
src/plugins/plugin.tooltip.js
@@ -385,9 +385,11 @@ export class Tooltip extends Element { const chart = me._chart; const options = me.options; - const opts = options.enabled && chart.options.animation && options.animation; + const opts = options.enabled && chart.options.animation && options.animations; const animations = new ...
true
Other
chartjs
Chart.js
5d5e48d01b0aed1279c60c5ea0c97d5328de346e.json
Isolate properties / modes from animation options (#8332) * Isolate properties / modes from animation options * tabs, something wrong with the linter * Update misleading variable name
test/specs/core.datasetController.tests.js
@@ -742,6 +742,18 @@ describe('Chart.DatasetController', function() { }); describe('_resolveAnimations', function() { + function animationsExpectations(anims, props) { + for (const [prop, opts] of Object.entries(props)) { + const anim = anims._properties.get(prop); + expect(anim).withConte...
true
Other
chartjs
Chart.js
5d5e48d01b0aed1279c60c5ea0c97d5328de346e.json
Isolate properties / modes from animation options (#8332) * Isolate properties / modes from animation options * tabs, something wrong with the linter * Update misleading variable name
test/specs/helpers.config.tests.js
@@ -17,7 +17,10 @@ describe('Chart.helpers.config', function() { expect(resolver.hoverColor).toEqual(defaults.hoverColor); }); - it('should resolve to parent scopes', function() { + it('should resolve to parent scopes, when _fallback is true', function() { + const descriptors = { + _fall...
true
Other
chartjs
Chart.js
5d5e48d01b0aed1279c60c5ea0c97d5328de346e.json
Isolate properties / modes from animation options (#8332) * Isolate properties / modes from animation options * tabs, something wrong with the linter * Update misleading variable name
types/index.esm.d.ts
@@ -1335,12 +1335,9 @@ export interface HoverInteractionOptions extends CoreInteractionOptions { onHover(event: ChartEvent, elements: ActiveElement[], chart: Chart): void; } -export interface CoreChartOptions extends ParsingOptions { - animation: Scriptable<AnimationOptions | false, ScriptableContext>; +export int...
true
Other
chartjs
Chart.js
284e357fd371ff6447313cfbb479b92c1d1b2040.json
Fix broken links (#8463)
docs/docs/developers/plugins.md
@@ -118,4 +118,4 @@ var chart = new Chart(ctx, { ## Plugin Core API -Read more about the [existing plugin extension hooks](../jsdoc/IPlugin.html). +Read more about the [existing plugin extension hooks](https://github.com/chartjs/Chart.js/blob/master/types/index.esm.d.ts#L733).
true
Other
chartjs
Chart.js
284e357fd371ff6447313cfbb479b92c1d1b2040.json
Fix broken links (#8463)
docs/docs/developers/updates.md
@@ -97,7 +97,7 @@ function updateScale(chart) { } ``` -Code sample for updating options can be found in [toggle-scale-type.html](./../../../samples/latest/scales/toggle-scale-type.html). +Code sample for updating options can be found in [toggle-scale-type.html](https://www.chartjs.org/samples/latest/scales/toggle-s...
true
Other
chartjs
Chart.js
284e357fd371ff6447313cfbb479b92c1d1b2040.json
Fix broken links (#8463)
docs/docs/getting-started/index.mdx
@@ -4,7 +4,7 @@ title: Getting Started Let's get started using Chart.js! -First, we need to have a canvas in our page. It's recommended to give the chart its own container for [responsiveness](../general/responsive.md). +First, we need to have a canvas in our page. It's recommended to give the chart its own contai...
true
Other
chartjs
Chart.js
ce0f7ff903e42ea39677429644fb4f6cb38b4dda.json
Update polar animation tests to less error prone (#8461)
test/fixtures/controller.polarArea/polar-area-animation-rotate.js
@@ -31,7 +31,7 @@ module.exports = { animation: { animateRotate: true, animateScale: false, - duration: 800, + duration: 8000, easing: 'linear' }, responsive: false, @@ -57,19 +57,29 @@ module.exports = { }, run: function(chart) { const anim...
true
Other
chartjs
Chart.js
ce0f7ff903e42ea39677429644fb4f6cb38b4dda.json
Update polar animation tests to less error prone (#8461)
test/fixtures/controller.polarArea/polar-area-animation-scale.js
@@ -31,7 +31,7 @@ module.exports = { animation: { animateRotate: false, animateScale: true, - duration: 800, + duration: 8000, easing: 'linear' }, responsive: false, @@ -57,19 +57,28 @@ module.exports = { }, run: function(chart) { const anim...
true
Other
chartjs
Chart.js
0770e8096649b89e17ea02b58ac87d477239234f.json
add clarification about object data structure (#8447) * add clarification about object data structure * improved description with feedback * fix push of wrong file
docs/docs/general/data-structures.md
@@ -32,6 +32,8 @@ data: [{x:'Sales', y:20}, {x:'Revenue', y:10}] This is also the internal format used for parsed data. In this mode, parsing can be disabled by specifying `parsing: false` at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales...
false
Other
chartjs
Chart.js
e8f954249a165718dff56ab9204d1af3e4449da2.json
Update doughnut animation fixture (#8457)
test/fixtures/controller.doughnut/doughnut-animation.js
@@ -29,7 +29,7 @@ module.exports = { }, options: { animation: { - duration: 800, + duration: 8000, easing: 'linear' }, responsive: false, @@ -54,19 +54,28 @@ module.exports = { }, run: function(chart) { const animator = Chart.animator; - const ...
false
Other
chartjs
Chart.js
5411be10a02e09189a3db9feadd277ce9e014003.json
Add support for common object methods to Proxies (#8452)
src/helpers/helpers.config.js
@@ -15,19 +15,46 @@ export function _createResolver(scopes, prefixes = ['']) { override: (scope) => _createResolver([scope].concat(scopes), prefixes), }; return new Proxy(cache, { + /** + * A trap for getting property values. + */ get(target, prop) { return _cached(target, prop, ...
true
Other
chartjs
Chart.js
5411be10a02e09189a3db9feadd277ce9e014003.json
Add support for common object methods to Proxies (#8452)
test/specs/helpers.config.tests.js
@@ -88,6 +88,41 @@ describe('Chart.helpers.config', function() { option3: 'defaults3' }); }); + + it('should support common object methods', function() { + const defaults = { + option1: 'defaults' + }; + class Options { + constructor() { + this.option2 = 'op...
true
Other
chartjs
Chart.js
d8ecf8bae5cb88f94c9efad26a91a916a3192fa1.json
Fix controller specific animations (#8444)
src/core/core.config.js
@@ -173,7 +173,12 @@ export default class Config { */ datasetScopeKeys(datasetType) { return cachedKeys(datasetType, - () => [`datasets.${datasetType}`, `controllers.${datasetType}.datasets`, '']); + () => [ + `datasets.${datasetType}`, + `controllers.${datasetType}`, + `contro...
false
Other
chartjs
Chart.js
c96c167074d5c6e1f420d4be03baa484dafda726.json
Update .editorconfig and fix conf indents (#8442)
.editorconfig
@@ -8,3 +8,7 @@ end_of_line = lf charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true + +[*.html] +indent_style = tab +indent_size = 4
true
Other
chartjs
Chart.js
c96c167074d5c6e1f420d4be03baa484dafda726.json
Update .editorconfig and fix conf indents (#8442)
docs/docusaurus.config.js
@@ -1,98 +1,97 @@ -/* eslint-disable import/no-commonjs */ // VERSION replaced by deploy script module.exports = { - title: 'Chart.js', - tagline: 'Open source HTML5 Charts for your website', - url: 'https://chartjs.org', - baseUrl: '/docs/VERSION/', - favicon: 'img/favicon.ico', - organizationName: 'chartjs', // Usu...
true
Other
chartjs
Chart.js
c96c167074d5c6e1f420d4be03baa484dafda726.json
Update .editorconfig and fix conf indents (#8442)
docs/sidebars.js
@@ -2,88 +2,88 @@ const pkg = require('../package.json'); const docsVersion = pkg.version.indexOf('-') > -1 ? 'next' : 'latest'; module.exports = { - someSidebar: { - Introduction: ['index'], - 'Getting Started': [ - 'getting-started/index', - 'getting-started/installation', - 'getting-started/integration',...
true
Other
chartjs
Chart.js
c96c167074d5c6e1f420d4be03baa484dafda726.json
Update .editorconfig and fix conf indents (#8442)
karma.conf.js
@@ -6,118 +6,118 @@ const builds = require('./rollup.config'); const yargs = require('yargs'); module.exports = function(karma) { - const args = yargs - .option('verbose', {default: false}) - .argv; + const args = yargs + .option('verbose', {default: false}) + .argv; - const grep = args.grep === true ? '...
true
Other
chartjs
Chart.js
c96c167074d5c6e1f420d4be03baa484dafda726.json
Update .editorconfig and fix conf indents (#8442)
rollup.config.js
@@ -1,6 +1,3 @@ -/* eslint-disable import/no-commonjs */ -/* eslint-env es6 */ - const cleanup = require('rollup-plugin-cleanup'); const dts = require('rollup-plugin-dts').default; const json = require('@rollup/plugin-json'); @@ -10,12 +7,12 @@ const pkg = require('./package.json'); const input = 'src/index.js'; ...
true
Other
chartjs
Chart.js
a73a8c4a5ec83b1fd55fdfbbffcaf0e3b4787025.json
Fix couple of animation bugs (#8439)
src/core/core.animations.js
@@ -5,7 +5,7 @@ import {isObject} from '../helpers/helpers.core'; const numbers = ['x', 'y', 'borderWidth', 'radius', 'tension']; const colors = ['borderColor', 'backgroundColor']; -const animationOptions = ['duration', 'easing', 'from', 'to', 'type', 'easing', 'loop', 'fn']; +const animationOptions = ['delay', 'du...
true
Other
chartjs
Chart.js
a73a8c4a5ec83b1fd55fdfbbffcaf0e3b4787025.json
Fix couple of animation bugs (#8439)
src/core/core.config.js
@@ -1,5 +1,5 @@ import defaults from './core.defaults'; -import {mergeIf, resolveObjectKey, isArray, isFunction, valueOrDefault} from '../helpers/helpers.core'; +import {mergeIf, resolveObjectKey, isArray, isFunction, valueOrDefault, isObject} from '../helpers/helpers.core'; import {_attachContext, _createResolver, _...
true
Other
chartjs
Chart.js
a73a8c4a5ec83b1fd55fdfbbffcaf0e3b4787025.json
Fix couple of animation bugs (#8439)
src/core/core.datasetController.js
@@ -777,8 +777,7 @@ export default class DatasetController { const config = me.chart.config; const scopeKeys = config.datasetAnimationScopeKeys(me._type); const scopes = config.getOptionScopes(me.getDataset().animation, scopeKeys); - const context = () => me.getContext(index, active, mode); - ...
true
Other
chartjs
Chart.js
ca50287a76af74c7f25015f704809f49ca425725.json
Add `initial` property to animation callbacks (#8926)
docs/configuration/animations.md
@@ -252,14 +252,17 @@ The callback is passed the following object: ```javascript { - // Chart object - chart: Chart, + // Chart object + chart: Chart, - // Number of animations still in progress - currentStep: number, + // Number of animations still in progress + currentStep: number, - // Tot...
true
Other
chartjs
Chart.js
ca50287a76af74c7f25015f704809f49ca425725.json
Add `initial` property to animation callbacks (#8926)
docs/samples/.eslintrc.yml
@@ -0,0 +1,2 @@ +rules: + no-console: "off"
true
Other
chartjs
Chart.js
ca50287a76af74c7f25015f704809f49ca425725.json
Add `initial` property to animation callbacks (#8926)
docs/samples/advanced/progress-bar.md
@@ -1,5 +1,11 @@ # Animation Progress Bar +## Initial animation + +<progress id="initialProgress" max="1" value="0" style="width: 100%"></progress> + +## Other animations + <progress id="animationProgress" max="1" value="0" style="width: 100%"></progress> ```js chart-editor @@ -67,6 +73,7 @@ const actions = [ /...
true
Other
chartjs
Chart.js
ca50287a76af74c7f25015f704809f49ca425725.json
Add `initial` property to animation callbacks (#8926)
src/core/core.animator.js
@@ -26,6 +26,7 @@ export class Animator { callbacks.forEach(fn => fn({ chart, + initial: anims.initial, numSteps, currentStep: Math.min(date - anims.start, numSteps) })); @@ -95,6 +96,7 @@ export class Animator { if (!items.length) { anims.running = false; ...
true
Other
chartjs
Chart.js
9e06f90d14365e7a313acfa57042daf000989853.json
Fix: Initialize data object when replaced (#8918)
src/core/core.config.js
@@ -85,12 +85,16 @@ function initOptions(config) { options.scales = mergeScaleConfig(config, options); } -function initConfig(config) { - config = config || {}; - - const data = config.data = config.data || {datasets: [], labels: []}; +function initData(data) { + data = data || {}; data.datasets = data.data...
true
Other
chartjs
Chart.js
9e06f90d14365e7a313acfa57042daf000989853.json
Fix: Initialize data object when replaced (#8918)
test/specs/core.controller.tests.js
@@ -230,6 +230,17 @@ describe('Chart', function() { expect(createChart).toThrow(new Error('"area" is not a registered controller.')); }); + it('should initialize the data object', function() { + const chart = acquireChart({type: 'bar'}); + expect(chart.data).toEqual(jasmine.objectContaining({...
true
Other
chartjs
Chart.js
d5f4a82e74dfe8be63a5d56f0d7d08c52b824a17.json
Fix minor issues in docs (#8910)
docs/.vuepress/config.js
@@ -113,7 +113,6 @@ module.exports = { nav: [ {text: 'Home', link: '/'}, {text: 'API', link: '/api/'}, - // TODO: Make local when samples moved to vuepress {text: 'Samples', link: `/samples/`}, { text: 'Ecosystem',
true
Other
chartjs
Chart.js
d5f4a82e74dfe8be63a5d56f0d7d08c52b824a17.json
Fix minor issues in docs (#8910)
docs/axes/cartesian/_common_ticks.md
@@ -5,7 +5,7 @@ Namespace: `options.scales[scaleId].ticks` | Name | Type | Default | Description | ---- | ---- | ------- | ----------- | `align` | `string` | `'center'` | The tick alignment along the axis. Can be `'start'`, `'center'`, or `'end'`. -| `crossAlign` | `string` | `'near'` | The tick alignment perpendicu...
true
Other
chartjs
Chart.js
d5f4a82e74dfe8be63a5d56f0d7d08c52b824a17.json
Fix minor issues in docs (#8910)
docs/axes/cartesian/index.md
@@ -2,11 +2,11 @@ Axes that follow a cartesian grid are known as 'Cartesian Axes'. Cartesian axes are used for line, bar, and bubble charts. Four cartesian axes are included in Chart.js by default. -* [linear](./linear) -* [logarithmic](./logarithmic) -* [category](./category) -* [time](./time) -* [timeseries](./t...
true
Other
chartjs
Chart.js
d5f4a82e74dfe8be63a5d56f0d7d08c52b824a17.json
Fix minor issues in docs (#8910)
docs/axes/index.md
@@ -1,8 +1,8 @@ # Axes -Axes are an integral part of a chart. They are used to determine how data maps to a pixel value on the chart. In a cartesian chart, there is 1 or more X-axis and 1 or more Y-axis to map points onto the 2-dimensional canvas. These axes are known as ['cartesian axes'](./cartesian/index#cartesia...
true
Other
chartjs
Chart.js
d5f4a82e74dfe8be63a5d56f0d7d08c52b824a17.json
Fix minor issues in docs (#8910)
docs/configuration/elements.md
@@ -54,16 +54,16 @@ Namespace: `options.elements.line`, global line options: `Chart.defaults.element | Name | Type | Default | Description | ---- | ---- | ------- | ----------- | `tension` | `number` | `0` | Bézier curve tension (`0` for no Bézier curves). -| `backgroundColor` | [`Color`](../general/colors.md) | `Ch...
true
Other
chartjs
Chart.js
d5f4a82e74dfe8be63a5d56f0d7d08c52b824a17.json
Fix minor issues in docs (#8910)
docs/configuration/tooltip.md
@@ -332,7 +332,7 @@ var myPieChart = new Chart(ctx, { }); ``` -See [samples](https://www.chartjs.org/samples/) for examples on how to get started with external tooltips. +See [samples](/samples/tooltip/html) for examples on how to get started with external tooltips. ## Tooltip Model
true
Other
chartjs
Chart.js
d5f4a82e74dfe8be63a5d56f0d7d08c52b824a17.json
Fix minor issues in docs (#8910)
docs/general/padding.md
@@ -45,7 +45,7 @@ let chart = new Chart(ctx, { This is a shorthand for defining left/right and top/bottom to same values. -For example, 10px left / right and 4px top / bottom padding on a Radial Linear Axis [tick backdropPadding](../axes/radial/linear#tick-configuration): +For example, 10px left / right and 4px to...
true
Other
chartjs
Chart.js
d5f4a82e74dfe8be63a5d56f0d7d08c52b824a17.json
Fix minor issues in docs (#8910)
docs/general/performance.md
@@ -16,19 +16,19 @@ Chart.js is fastest if you provide data with indices that are unique, sorted, an Decimating your data will achieve the best results. When there is a lot of data to display on the graph, it doesn't make sense to show tens of thousands of data points on a graph that is only a few hundred pixels wid...
true
Other
chartjs
Chart.js
d5f4a82e74dfe8be63a5d56f0d7d08c52b824a17.json
Fix minor issues in docs (#8910)
docs/getting-started/index.md
@@ -55,10 +55,10 @@ module.exports = { Finally, render the chart using our configuration: -```html +```html <script> // === include 'setup' then 'config' above === - + var myChart = new Chart( document.getElementById('myChart'), config @@ -68,4 +68,4 @@ Finally, render the chart using our conf...
true
Other
chartjs
Chart.js
d5f4a82e74dfe8be63a5d56f0d7d08c52b824a17.json
Fix minor issues in docs (#8910)
docs/getting-started/v3-migration.md
@@ -63,8 +63,8 @@ A number of changes were made to the configuration options passed to the `Chart` * The input properties of object data can now be freely specified, see [data structures](../general/data-structures.md) for details. * Most options are resolved utilizing proxies, instead of merging with defaults. In ad...
true
Other
chartjs
Chart.js
aee45c611ed43cd7040b1942b54a21088eb5c055.json
Fix tooltip positioners and scriptable signature (#8909)
types/index.esm.d.ts
@@ -31,7 +31,7 @@ export interface ScriptableLineSegmentContext { p1: PointElement } -export type Scriptable<T, TContext> = T | ((ctx: TContext) => T); +export type Scriptable<T, TContext> = T | ((ctx: TContext, options: AnyObject) => T); export type ScriptableOptions<T, TContext> = { [P in keyof T]: Scriptable<...
false
Other
chartjs
Chart.js
0ae0fd4b2a659f1ac3fde4ffd46608c3f747ca22.json
Limit onHover to chartArea (#8794)
docs/configuration/interactions.md
@@ -18,8 +18,8 @@ Namespace: `options` | Name | Type | Default | Description | ---- | ---- | ------- | ----------- | `events` | `string[]` | `['mousemove', 'mouseout', 'click', 'touchstart', 'touchmove']` | The `events` option defines the browser events that the chart should listen to for. Each of these events trigg...
true
Other
chartjs
Chart.js
0ae0fd4b2a659f1ac3fde4ffd46608c3f747ca22.json
Limit onHover to chartArea (#8794)
src/core/core.controller.js
@@ -1108,11 +1108,11 @@ class Chart { // This prevents recursion if the handler calls chart.update() me._lastEvent = null; - // Invoke onHover hook - callCallback(options.onHover, [e, active, me], me); + if (_isPointInArea(e, me.chartArea, me._minPadding)) { + // Invoke onHover hook + cal...
true
Other
chartjs
Chart.js
05ba2eedffecfd5631d59b21648bdf160869c449.json
Add version menu in documentation (#8866) * Add version menu in documentation * Use filters for tags * Use limit * Update * Use released plugin * use published version
docs/.vuepress/config.js
@@ -41,6 +41,43 @@ module.exports = { }, }, ], + ['@simonbrunel/vuepress-plugin-versions', { + filters: { + suffix: (v) => v ? ` (${v})` : '' + }, + menu: { + items: [ + { + text: 'Documentation', + items: [ + { + ...
true
Other
chartjs
Chart.js
05ba2eedffecfd5631d59b21648bdf160869c449.json
Add version menu in documentation (#8866) * Add version menu in documentation * Use filters for tags * Use limit * Update * Use released plugin * use published version
package-lock.json
@@ -2944,6 +2944,17 @@ } } }, + "@simonbrunel/vuepress-plugin-versions": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/@simonbrunel/vuepress-plugin-versions/-/vuepress-plugin-versions-0.1.0.tgz", + "integrity": "sha512-C1J3u9060+hNY/DTz4Ksos/ksDBt2wc83OoWJw3Vmy...
true
Other
chartjs
Chart.js
05ba2eedffecfd5631d59b21648bdf160869c449.json
Add version menu in documentation (#8866) * Add version menu in documentation * Use filters for tags * Use limit * Update * Use released plugin * use published version
package.json
@@ -54,6 +54,7 @@ "@rollup/plugin-inject": "^4.0.2", "@rollup/plugin-json": "^4.1.0", "@rollup/plugin-node-resolve": "^11.2.1", + "@simonbrunel/vuepress-plugin-versions": "^0.1.0", "@typescript-eslint/eslint-plugin": "^4.21.0", "@typescript-eslint/parser": "^4.21.0", "@vuepress/plugin-g...
true
Other
chartjs
Chart.js
82d42bd799f5c47f1d69299db29039d97cb49329.json
Fix typos in canvas-background.md (#8837)
docs/configuration/canvas-background.md
@@ -1,8 +1,8 @@ # Canvas background -In some use cases you would want a background image or color over the whole canvas. There is no build in support for this, the way you can achieve this is by writing a custom plugin. +In some use cases you would want a background image or color over the whole canvas. There is no ...
false
Other
chartjs
Chart.js
873223fc784bd761fb9b18159b7c99856003e7d7.json
Fix typo in migration guide (#8836)
docs/getting-started/v3-migration.md
@@ -61,7 +61,7 @@ A number of changes were made to the configuration options passed to the `Chart` * Indexable options are now looping. `backgroundColor: ['red', 'green']` will result in alternating `'red'` / `'green'` if there are more than 2 data points. * The input properties of object data can now be freely spe...
false
Other
chartjs
Chart.js
7d08bab45d57060af5ca84b464b2281da22c8938.json
Time: Use callback helper on ticks.callback (#8822)
src/scales/scale.time.js
@@ -1,5 +1,5 @@ import adapters from '../core/core.adapters'; -import {isFinite, isNullOrUndef, mergeIf, valueOrDefault} from '../helpers/helpers.core'; +import {callback as call, isFinite, isNullOrUndef, mergeIf, valueOrDefault} from '../helpers/helpers.core'; import {toRadians, isNumber, _limitValue} from '../helpe...
false
Other
chartjs
Chart.js
da9d12ee45821389d0b5e10a5f5e05391f3ae87e.json
Fix utils.sh location (#8819)
scripts/deploy-docs.sh
@@ -2,7 +2,7 @@ set -e -source utils.sh +source ./scripts/utils.sh TARGET_DIR='gh-pages' TARGET_BRANCH='master'
true
Other
chartjs
Chart.js
da9d12ee45821389d0b5e10a5f5e05391f3ae87e.json
Fix utils.sh location (#8819)
scripts/docs-config.sh
@@ -2,7 +2,7 @@ set -e -source utils.sh +source ./scripts/utils.sh VERSION=$1 MODE=$2
true
Other
chartjs
Chart.js
77cdadb1dcb8296e43751ed2d1ea999d26ba3149.json
Update codepen url in bug template (#8816)
.github/ISSUE_TEMPLATE/BUG.md
@@ -9,7 +9,7 @@ labels: 'type: bug' Head to https://stackoverflow.com/questions/tagged/chart.js Bug reports MUST be submitted with an interactive example: - https://codepen.io/pen?template=JXVYzq + https://codepen.io/pen?template=BapRepQ Chart.js versions lower then 3.x are NOT supported anymore, new iss...
false
Other
chartjs
Chart.js
33df3a6d73b97a342221ab239aad71bc75f189cc.json
Update chart type documentation (#8805) * Update chart type documentation * Self-review
docs/charts/bar.md
@@ -53,52 +53,77 @@ module.exports = { }; ``` -## Example Usage +## Dataset Properties -```javascript -var myBarChart = new Chart(ctx, { - type: 'bar', - data: data, - options: options -}); -``` +Namespaces: -## Dataset Properties +* `data.datasets[index]` - options for this dataset only +* `options.da...
true
Other
chartjs
Chart.js
33df3a6d73b97a342221ab239aad71bc75f189cc.json
Update chart type documentation (#8805) * Update chart type documentation * Self-review
docs/charts/bubble.md
@@ -25,6 +25,7 @@ const data = { const config = { type: 'bubble', data: data, + options: {} }; // </block:config> @@ -34,18 +35,14 @@ module.exports = { }; ``` -## Example Usage +## Dataset Properties -```javascript -// For a bubble chart -var myBubbleChart = new Chart(ctx, { - type: 'bubble', - ...
true
Other
chartjs
Chart.js
33df3a6d73b97a342221ab239aad71bc75f189cc.json
Update chart type documentation (#8805) * Update chart type documentation * Self-review
docs/charts/doughnut.md
@@ -90,6 +90,14 @@ module.exports = { ## Dataset Properties +Namespaces: + +* `data.datasets[index]` - options for this dataset only +* `options.datasets.doughnut` - options for all doughnut datasets +* `options.datasets.pie` - options for all pie datasets +* `options.elements.arc` - options for all [arc elements]...
true
Other
chartjs
Chart.js
33df3a6d73b97a342221ab239aad71bc75f189cc.json
Update chart type documentation (#8805) * Update chart type documentation * Self-review
docs/charts/line.md
@@ -30,17 +30,15 @@ module.exports = { }; ``` -## Example Usage +## Dataset Properties -```javascript -var myLineChart = new Chart(ctx, { - type: 'line', - data: data, - options: options -}); -``` +Namespaces: -## Dataset Properties +* `data.datasets[index]` - options for this dataset only +* `options....
true
Other
chartjs
Chart.js
33df3a6d73b97a342221ab239aad71bc75f189cc.json
Update chart type documentation (#8805) * Update chart type documentation * Self-review
docs/charts/polar.md
@@ -32,6 +32,7 @@ const data = { const config = { type: 'polarArea', data: data, + options: {} }; // </block:config> @@ -41,17 +42,14 @@ module.exports = { }; ``` -## Example Usage +## Dataset Properties -```javascript -new Chart(ctx, { - data: data, - type: 'polarArea', - options: options -}...
true
Other
chartjs
Chart.js
33df3a6d73b97a342221ab239aad71bc75f189cc.json
Update chart type documentation (#8805) * Update chart type documentation * Self-review
docs/charts/radar.md
@@ -60,19 +60,15 @@ module.exports = { }; ``` -<ExampleChart/> +## Dataset Properties -## Example Usage +Namespaces: -```javascript -var myRadarChart = new Chart(ctx, { - type: 'radar', - data: data, - options: options -}); -``` - -## Dataset Properties +* `data.datasets[index]` - options for this data...
true
Other
chartjs
Chart.js
33df3a6d73b97a342221ab239aad71bc75f189cc.json
Update chart type documentation (#8805) * Update chart type documentation * Self-review
docs/charts/scatter.md
@@ -48,6 +48,14 @@ module.exports = { ## Dataset Properties +Namespaces: + +* `data.datasets[index]` - options for this dataset only +* `options.datasets.scatter` - options for all scatter datasets +* `options.elements.line` - options for all [line elements](../configuration/elements.md#line-configuration) +* `opt...
true
Other
chartjs
Chart.js
a4cc21f9a919ab9f80fc133a309820b6f6c4f599.json
Update ticks.callback documentation (#8798)
docs/axes/labelling.md
@@ -17,11 +17,25 @@ Namespace: `options.scales[scaleId].title`, it defines options for the scale tit ## Creating Custom Tick Formats -It is also common to want to change the tick marks to include information about the data type. For example, adding a dollar sign ('$'). To do this, you need to override the `ticks.c...
false
Other
chartjs
Chart.js
8780e15c73c96db58034466e47174eb21b724857.json
v3.0.0 version bump (#8781) * v3.0.0 version bump * Update urls for next -> latest * Remove TS urls
.github/release-drafter.yml
@@ -43,10 +43,10 @@ template: | # Essential Links * [npm](https://www.npmjs.com/package/chart.js) - * [Migration guide](https://www.chartjs.org/docs/next/getting-started/v3-migration) - * [Docs](https://www.chartjs.org/docs/next/) - * [API](https://www.chartjs.org/docs/next/api/) - * [Samples](https://www.c...
true
Other
chartjs
Chart.js
8780e15c73c96db58034466e47174eb21b724857.json
v3.0.0 version bump (#8781) * v3.0.0 version bump * Update urls for next -> latest * Remove TS urls
package-lock.json
@@ -1,6 +1,6 @@ { "name": "chart.js", - "version": "3.0.0-rc.7", + "version": "3.0.0", "lockfileVersion": 1, "requires": true, "dependencies": {
true
Other
chartjs
Chart.js
8780e15c73c96db58034466e47174eb21b724857.json
v3.0.0 version bump (#8781) * v3.0.0 version bump * Update urls for next -> latest * Remove TS urls
package.json
@@ -2,7 +2,7 @@ "name": "chart.js", "homepage": "https://www.chartjs.org", "description": "Simple HTML5 charts using the canvas element.", - "version": "3.0.0-rc.7", + "version": "3.0.0", "license": "MIT", "jsdelivr": "dist/chart.min.js", "unpkg": "dist/chart.min.js",
true
Other
chartjs
Chart.js
8780e15c73c96db58034466e47174eb21b724857.json
v3.0.0 version bump (#8781) * v3.0.0 version bump * Update urls for next -> latest * Remove TS urls
types/index.esm.d.ts
@@ -2796,12 +2796,10 @@ export type LinearScaleOptions = CartesianScaleOptions & { /** * Adjustment used when calculating the maximum data value. - * @see https://www.chartjs.org/docs/next/axes/cartesian/linear#axis-range-settings */ suggestedMin?: number; /** * Adjustment used when calculating...
true
Other
chartjs
Chart.js
1749e5791874eec524500dddfbb5db5bcc592c58.json
Remove scriptability from defaults.font types (#9794) * Remove scriptability from defaults.font types * Remove failing test
types/index.esm.d.ts
@@ -1417,7 +1417,7 @@ export interface CoreChartOptions<TType extends ChartType> extends ParsingOption * base font * @see Defaults.font */ - font: Scriptable<Partial<FontSpec>, ScriptableContext<TType>>; + font: Partial<FontSpec>; /** * Resizes the chart canvas when its container does (important no...
true
Other
chartjs
Chart.js
1749e5791874eec524500dddfbb5db5bcc592c58.json
Remove scriptability from defaults.font types (#9794) * Remove scriptability from defaults.font types * Remove failing test
types/tests/defaults.ts
@@ -7,3 +7,16 @@ Chart.defaults.plugins.title.display = false; Chart.defaults.datasets.bar.backgroundColor = 'red'; Chart.defaults.animation = { duration: 500 }; + +Chart.defaults.font.size = 8; + +// @ts-expect-error should be number +Chart.defaults.font.size = '8'; + +// @ts-expect-error should be number +Chart.d...
true
Other
chartjs
Chart.js
1749e5791874eec524500dddfbb5db5bcc592c58.json
Remove scriptability from defaults.font types (#9794) * Remove scriptability from defaults.font types * Remove failing test
types/tests/scriptable_core_chart_options.ts
@@ -8,7 +8,6 @@ const getConfig = (): ChartConfiguration<'bar'> => { }, options: { backgroundColor: (context) => context.active ? '#fff' : undefined, - font: (context) => context.datasetIndex === 1 ? { size: 10 } : { size: 12, family: 'arial' } } }; };
true
Other
chartjs
Chart.js
12d5e4c7e7f048c6b8a6724d5c152d46a8464f70.json
ci(workflow): add cache to workflows using actions/setup-node (#9757) * ci(workflow): add 'npm' cache for actions/setup-node in .github/workflows * style(workflows): restore single quotes and remove unnecessary 'null'
.github/workflows/ci.yml
@@ -10,7 +10,6 @@ on: - master - "2.9" workflow_dispatch: - jobs: build: runs-on: ${{ matrix.os }} @@ -24,80 +23,80 @@ jobs: fail-fast: false steps: - - uses: actions/checkout@v2 - - name: Use Node.js - uses: actions/setup-node@v1 - with: - node-version: '1...
true
Other
chartjs
Chart.js
12d5e4c7e7f048c6b8a6724d5c152d46a8464f70.json
ci(workflow): add cache to workflows using actions/setup-node (#9757) * ci(workflow): add 'npm' cache for actions/setup-node in .github/workflows * style(workflows): restore single quotes and remove unnecessary 'null'
.github/workflows/deploy-docs.yml
@@ -10,27 +10,28 @@ jobs: correct_repository: runs-on: ubuntu-latest steps: - - name: fail on fork - if: github.repository_owner != 'chartjs' - run: exit 1 + - name: fail on fork + if: github.repository_owner != 'chartjs' + run: exit 1 build: needs: correct_reposit...
true
Other
chartjs
Chart.js
12d5e4c7e7f048c6b8a6724d5c152d46a8464f70.json
ci(workflow): add cache to workflows using actions/setup-node (#9757) * ci(workflow): add 'npm' cache for actions/setup-node in .github/workflows * style(workflows): restore single quotes and remove unnecessary 'null'
.github/workflows/release.yml
@@ -20,10 +20,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v2 with: node-version: '14.x' registry-url: https://registry.npmjs.org/ + cache: npm - name: Setup an...
true
Other
chartjs
Chart.js
6a250de81dd0ebcd66014911460d3076d41e8737.json
Add chart, p0.raw, p1.raw to segment context (#9761) * Add chart, p0.raw, p1.raw to segment context * Types
src/controllers/controller.line.js
@@ -26,6 +26,7 @@ export default class LineController extends DatasetController { } // Update Line + line._chart = this.chart; line._datasetIndex = this.index; line._decimated = !!_dataset._decimated; line.points = points; @@ -46,13 +47,13 @@ export default class LineController extends Dat...
true
Other
chartjs
Chart.js
6a250de81dd0ebcd66014911460d3076d41e8737.json
Add chart, p0.raw, p1.raw to segment context (#9761) * Add chart, p0.raw, p1.raw to segment context * Types
src/core/core.controller.js
@@ -8,7 +8,7 @@ import registry from './core.registry'; import Config, {determineAxis, getIndexAxis} from './core.config'; import {retinaScale, _isDomSupported} from '../helpers/helpers.dom'; import {each, callback as callCallback, uid, valueOrDefault, _elementsEqual, isNullOrUndef, setsEqual, defined, isFunction} f...
true