repo stringlengths 5 106 | file_url stringlengths 78 301 | file_path stringlengths 4 211 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 14:56:49 2026-01-05 02:23:25 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/build/release/cdn.js | build/release/cdn.js | import { mkdir, readFile, writeFile } from "node:fs/promises";
import path from "node:path";
import { argv } from "node:process";
import util from "node:util";
import { exec as nodeExec } from "node:child_process";
import { rimraf } from "rimraf";
import archive from "./archive.js";
const exec = util.promisify( nodeEx... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/build/release/verify.js | build/release/verify.js | /**
* Verify the latest release is reproducible
*/
import { exec as nodeExec } from "node:child_process";
import crypto from "node:crypto";
import { createWriteStream } from "node:fs";
import { mkdir, readdir, readFile } from "node:fs/promises";
import path from "node:path";
import { Readable } from "node:stream";
im... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/build/release/dist.js | build/release/dist.js | import { readFile, writeFile } from "node:fs/promises";
import util from "node:util";
import { argv } from "node:process";
import { exec as nodeExec } from "node:child_process";
import { rimraf } from "rimraf";
const pkg = JSON.parse( await readFile( "./package.json", "utf8" ) );
const exec = util.promisify( nodeExec... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/build/release/changelog.js | build/release/changelog.js | import { writeFile } from "node:fs/promises";
import { argv } from "node:process";
import { exec as nodeExec } from "node:child_process";
import util from "node:util";
import { marked } from "marked";
const exec = util.promisify( nodeExec );
const rbeforeHash = /.#$/;
const rendsWithHash = /#$/;
const rcherry = / \(c... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/dist/wrappers/jquery.bundler-require-wrapper.js | dist/wrappers/jquery.bundler-require-wrapper.js | "use strict";
// Bundlers are able to synchronously require an ESM module from a CommonJS one.
const { jQuery } = require( "../../dist-module/jquery.module.js" );
module.exports = jQuery;
| javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/dist/wrappers/jquery.bundler-require-wrapper.slim.js | dist/wrappers/jquery.bundler-require-wrapper.slim.js | "use strict";
// Bundlers are able to synchronously require an ESM module from a CommonJS one.
const { jQuery } = require( "../../dist-module/jquery.slim.module.js" );
module.exports = jQuery;
| javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/dist-module/wrappers/jquery.node-module-wrapper.slim.js | dist-module/wrappers/jquery.node-module-wrapper.slim.js | // Node.js is able to import from a CommonJS module in an ESM one.
import jQuery from "../../dist/jquery.slim.js";
export { jQuery, jQuery as $ };
export default jQuery;
| javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/dist-module/wrappers/jquery.node-module-wrapper.js | dist-module/wrappers/jquery.node-module-wrapper.js | // Node.js is able to import from a CommonJS module in an ESM one.
import jQuery from "../../dist/jquery.js";
export { jQuery, jQuery as $ };
export default jQuery;
| javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
h5bp/html5-boilerplate | https://github.com/h5bp/html5-boilerplate/blob/091a35738202b6dd03947368a95491af87e71dc8/src/webpack.config.prod.js | src/webpack.config.prod.js | const { merge } = require('webpack-merge');
const common = require('./webpack.common.js');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CopyPlugin = require('copy-webpack-plugin');
module.exports = merge(common, {
mode: 'production',
plugins: [
new HtmlWebpackPlugin({
template: './inde... | javascript | MIT | 091a35738202b6dd03947368a95491af87e71dc8 | 2026-01-04T14:56:59.311162Z | false |
h5bp/html5-boilerplate | https://github.com/h5bp/html5-boilerplate/blob/091a35738202b6dd03947368a95491af87e71dc8/src/webpack.config.dev.js | src/webpack.config.dev.js | const { merge } = require('webpack-merge');
const common = require('./webpack.common.js');
module.exports = merge(common, {
mode: 'development',
devtool: 'inline-source-map',
devServer: {
liveReload: true,
hot: true,
open: true,
static: ['./'],
},
});
| javascript | MIT | 091a35738202b6dd03947368a95491af87e71dc8 | 2026-01-04T14:56:59.311162Z | false |
h5bp/html5-boilerplate | https://github.com/h5bp/html5-boilerplate/blob/091a35738202b6dd03947368a95491af87e71dc8/src/webpack.common.js | src/webpack.common.js | const path = require('path');
module.exports = {
entry: {
app: './js/app.js',
},
output: {
path: path.resolve(__dirname, 'dist'),
clean: true,
filename: './js/app.js',
},
};
| javascript | MIT | 091a35738202b6dd03947368a95491af87e71dc8 | 2026-01-04T14:56:59.311162Z | false |
h5bp/html5-boilerplate | https://github.com/h5bp/html5-boilerplate/blob/091a35738202b6dd03947368a95491af87e71dc8/src/js/app.js | src/js/app.js | javascript | MIT | 091a35738202b6dd03947368a95491af87e71dc8 | 2026-01-04T14:56:59.311162Z | false | |
h5bp/html5-boilerplate | https://github.com/h5bp/html5-boilerplate/blob/091a35738202b6dd03947368a95491af87e71dc8/dist/webpack.config.prod.js | dist/webpack.config.prod.js | const { merge } = require('webpack-merge');
const common = require('./webpack.common.js');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CopyPlugin = require('copy-webpack-plugin');
module.exports = merge(common, {
mode: 'production',
plugins: [
new HtmlWebpackPlugin({
template: './inde... | javascript | MIT | 091a35738202b6dd03947368a95491af87e71dc8 | 2026-01-04T14:56:59.311162Z | false |
h5bp/html5-boilerplate | https://github.com/h5bp/html5-boilerplate/blob/091a35738202b6dd03947368a95491af87e71dc8/dist/webpack.config.dev.js | dist/webpack.config.dev.js | const { merge } = require('webpack-merge');
const common = require('./webpack.common.js');
module.exports = merge(common, {
mode: 'development',
devtool: 'inline-source-map',
devServer: {
liveReload: true,
hot: true,
open: true,
static: ['./'],
},
});
| javascript | MIT | 091a35738202b6dd03947368a95491af87e71dc8 | 2026-01-04T14:56:59.311162Z | false |
h5bp/html5-boilerplate | https://github.com/h5bp/html5-boilerplate/blob/091a35738202b6dd03947368a95491af87e71dc8/dist/webpack.common.js | dist/webpack.common.js | const path = require('path');
module.exports = {
entry: {
app: './js/app.js',
},
output: {
path: path.resolve(__dirname, 'dist'),
clean: true,
filename: './js/app.js',
},
};
| javascript | MIT | 091a35738202b6dd03947368a95491af87e71dc8 | 2026-01-04T14:56:59.311162Z | false |
h5bp/html5-boilerplate | https://github.com/h5bp/html5-boilerplate/blob/091a35738202b6dd03947368a95491af87e71dc8/dist/js/app.js | dist/js/app.js | javascript | MIT | 091a35738202b6dd03947368a95491af87e71dc8 | 2026-01-04T14:56:59.311162Z | false | |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/rollup.config.js | rollup.config.js | import cleanup from 'rollup-plugin-cleanup';
import json from '@rollup/plugin-json';
import resolve from '@rollup/plugin-node-resolve';
import {swc} from 'rollup-plugin-swc3';
import {terser} from 'rollup-plugin-terser';
import {readFileSync} from 'fs';
const {version, homepage} = JSON.parse(readFileSync('./package.js... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/helpers/helpers.js | helpers/helpers.js | export * from '../dist/helpers.js';
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/scales/scale.time.js | src/scales/scale.time.js | import adapters from '../core/core.adapters.js';
import {callback as call, isFinite, isNullOrUndef, mergeIf, valueOrDefault} from '../helpers/helpers.core.js';
import {toRadians, isNumber, _limitValue} from '../helpers/helpers.math.js';
import Scale from '../core/core.scale.js';
import {_arrayUnique, _filterBetween, _l... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/scales/index.js | src/scales/index.js | export {default as CategoryScale} from './scale.category.js';
export {default as LinearScale} from './scale.linear.js';
export {default as LogarithmicScale} from './scale.logarithmic.js';
export {default as RadialLinearScale} from './scale.radialLinear.js';
export {default as TimeScale} from './scale.time.js';
export {... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/scales/scale.radialLinear.js | src/scales/scale.radialLinear.js | import defaults from '../core/core.defaults.js';
import {_longestText, addRoundedRectPath, renderText, _isPointInArea} from '../helpers/helpers.canvas.js';
import {HALF_PI, TAU, toDegrees, toRadians, _normalizeAngle, PI} from '../helpers/helpers.math.js';
import LinearScaleBase from './scale.linearbase.js';
import Tick... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/scales/scale.logarithmic.js | src/scales/scale.logarithmic.js | import {finiteOrDefault, isFinite} from '../helpers/helpers.core.js';
import {formatNumber} from '../helpers/helpers.intl.js';
import {_setMinAndMaxByKey, log10} from '../helpers/helpers.math.js';
import Scale from '../core/core.scale.js';
import LinearScaleBase from './scale.linearbase.js';
import Ticks from '../core/... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/scales/scale.timeseries.js | src/scales/scale.timeseries.js | import TimeScale from './scale.time.js';
import {_lookupByKey} from '../helpers/helpers.collection.js';
/**
* Linearly interpolates the given source `val` using the table. If value is out of bounds, values
* at edges are used for the interpolation.
* @param {object} table
* @param {number} val
* @param {boolean} ... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/scales/scale.category.js | src/scales/scale.category.js | import Scale from '../core/core.scale.js';
import {isNullOrUndef, valueOrDefault, _limitValue} from '../helpers/index.js';
const addIfString = (labels, raw, index, addedLabels) => {
if (typeof raw === 'string') {
index = labels.push(raw) - 1;
addedLabels.unshift({index, label: raw});
} else if (isNaN(raw))... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/scales/scale.linearbase.js | src/scales/scale.linearbase.js | import {isNullOrUndef} from '../helpers/helpers.core.js';
import {almostEquals, almostWhole, niceNum, _decimalPlaces, _setMinAndMaxByKey, sign, toRadians} from '../helpers/helpers.math.js';
import Scale from '../core/core.scale.js';
import {formatNumber} from '../helpers/helpers.intl.js';
/**
* Generate a set of line... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/scales/scale.linear.js | src/scales/scale.linear.js | import {isFinite} from '../helpers/helpers.core.js';
import LinearScaleBase from './scale.linearbase.js';
import Ticks from '../core/core.ticks.js';
import {toRadians} from '../helpers/index.js';
export default class LinearScale extends LinearScaleBase {
static id = 'linear';
/**
* @type {any}
*/
static ... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/helpers/helpers.segment.js | src/helpers/helpers.segment.js | import {_angleBetween, _angleDiff, _isBetween, _normalizeAngle} from './helpers.math.js';
import {createContext} from './helpers.options.js';
import {isPatternOrGradient} from './helpers.color.js';
/**
* @typedef { import('../elements/element.line.js').default } LineElement
* @typedef { import('../elements/element.p... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/controllers/controller.bubble.js | src/controllers/controller.bubble.js | import DatasetController from '../core/core.datasetController.js';
import {valueOrDefault} from '../helpers/helpers.core.js';
export default class BubbleController extends DatasetController {
static id = 'bubble';
/**
* @type {any}
*/
static defaults = {
datasetElementType: false,
dataElementType... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/controllers/controller.radar.js | src/controllers/controller.radar.js | import DatasetController from '../core/core.datasetController.js';
import {_parseObjectDataRadialScale} from '../helpers/index.js';
export default class RadarController extends DatasetController {
static id = 'radar';
/**
* @type {any}
*/
static defaults = {
datasetElementType: 'line',
dataElemen... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/controllers/controller.doughnut.js | src/controllers/controller.doughnut.js | import DatasetController from '../core/core.datasetController.js';
import {isObject, resolveObjectKey, toPercentage, toDimension, valueOrDefault} from '../helpers/helpers.core.js';
import {formatNumber} from '../helpers/helpers.intl.js';
import {toRadians, PI, TAU, HALF_PI, _angleBetween} from '../helpers/helpers.math.... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/controllers/controller.polarArea.js | src/controllers/controller.polarArea.js | import DatasetController from '../core/core.datasetController.js';
import {toRadians, PI, formatNumber, _parseObjectDataRadialScale} from '../helpers/index.js';
export default class PolarAreaController extends DatasetController {
static id = 'polarArea';
/**
* @type {any}
*/
static defaults = {
dataE... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/controllers/index.js | src/controllers/index.js | export {default as BarController} from './controller.bar.js';
export {default as BubbleController} from './controller.bubble.js';
export {default as DoughnutController} from './controller.doughnut.js';
export {default as LineController} from './controller.line.js';
export {default as PolarAreaController} from './contro... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/controllers/controller.line.js | src/controllers/controller.line.js | import DatasetController from '../core/core.datasetController.js';
import {isNullOrUndef} from '../helpers/index.js';
import {isNumber} from '../helpers/helpers.math.js';
import {_getStartAndCountOfVisiblePoints, _scaleRangesChanged} from '../helpers/helpers.extras.js';
export default class LineController extends Data... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/controllers/controller.scatter.js | src/controllers/controller.scatter.js | import DatasetController from '../core/core.datasetController.js';
import {isNullOrUndef} from '../helpers/index.js';
import {isNumber} from '../helpers/helpers.math.js';
import {_getStartAndCountOfVisiblePoints, _scaleRangesChanged} from '../helpers/helpers.extras.js';
export default class ScatterController extends D... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/controllers/controller.bar.js | src/controllers/controller.bar.js | import DatasetController from '../core/core.datasetController.js';
import {
_arrayUnique, isArray, isNullOrUndef,
valueOrDefault, resolveObjectKey, sign, defined
} from '../helpers/index.js';
function getAllScaleValues(scale, type) {
if (!scale._cache.$bar) {
const visibleMetas = scale.getMatchingVisibleMeta... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/controllers/controller.pie.js | src/controllers/controller.pie.js | import DoughnutController from './controller.doughnut.js';
// Pie charts are Doughnut chart with different defaults
export default class PieController extends DoughnutController {
static id = 'pie';
/**
* @type {any}
*/
static defaults = {
// The percentage of the chart that we cut out of the middle.... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/elements/element.bar.js | src/elements/element.bar.js | import Element from '../core/core.element.js';
import {isObject, _isBetween, _limitValue} from '../helpers/index.js';
import {addRoundedRectPath} from '../helpers/helpers.canvas.js';
import {toTRBL, toTRBLCorners} from '../helpers/helpers.options.js';
/** @typedef {{ x: number, y: number, base: number, horizontal: boo... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/elements/index.js | src/elements/index.js | export {default as ArcElement} from './element.arc.js';
export {default as LineElement} from './element.line.js';
export {default as PointElement} from './element.point.js';
export {default as BarElement} from './element.bar.js';
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/elements/element.line.js | src/elements/element.line.js | import Element from '../core/core.element.js';
import {_bezierInterpolation, _pointInLine, _steppedInterpolation} from '../helpers/helpers.interpolation.js';
import {_computeSegments, _boundSegments} from '../helpers/helpers.segment.js';
import {_steppedLineTo, _bezierCurveTo} from '../helpers/helpers.canvas.js';
impor... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/plugins/plugin.title.js | src/plugins/plugin.title.js | import Element from '../core/core.element.js';
import layouts from '../core/core.layouts.js';
import {PI, isArray, toPadding, toFont} from '../helpers/index.js';
import {_toLeftRightCenter, _alignStartEnd} from '../helpers/helpers.extras.js';
import {renderText} from '../helpers/helpers.canvas.js';
export class Title ... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/plugins/plugin.tooltip.js | src/plugins/plugin.tooltip.js | import Animations from '../core/core.animations.js';
import Element from '../core/core.element.js';
import {addRoundedRectPath} from '../helpers/helpers.canvas.js';
import {each, noop, isNullOrUndef, isArray, _elementsEqual, isObject} from '../helpers/helpers.core.js';
import {toFont, toPadding, toTRBLCorners} from '..... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | true |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/plugins/plugin.decimation.js | src/plugins/plugin.decimation.js | import {_limitValue, _lookupByKey, isNullOrUndef, resolve} from '../helpers/index.js';
function lttbDecimation(data, start, count, availableWidth, options) {
/**
* Implementation of the Largest Triangle Three Buckets algorithm.
*
* This implementation is based on the original implementation by Sveinn Steina... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/plugins/index.js | src/plugins/index.js | export {default as Colors} from './plugin.colors.js';
export {default as Decimation} from './plugin.decimation.js';
export {default as Filler} from './plugin.filler/index.js';
export {default as Legend} from './plugin.legend.js';
export {default as SubTitle} from './plugin.subtitle.js';
export {default as Title} from '... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/plugins/plugin.subtitle.js | src/plugins/plugin.subtitle.js | import {Title} from './plugin.title.js';
import layouts from '../core/core.layouts.js';
const map = new WeakMap();
export default {
id: 'subtitle',
start(chart, _args, options) {
const title = new Title({
ctx: chart.ctx,
options,
chart
});
layouts.configure(chart, title, options);
... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/plugins/plugin.legend.js | src/plugins/plugin.legend.js | import defaults from '../core/core.defaults.js';
import Element from '../core/core.element.js';
import layouts from '../core/core.layouts.js';
import {addRoundedRectPath, drawPointLegend, renderText} from '../helpers/helpers.canvas.js';
import {
_isBetween,
callback as call,
clipArea,
getRtlAdapter,
overrideT... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/plugins/plugin.filler/index.js | src/plugins/plugin.filler/index.js | /**
* Plugin based on discussion from the following Chart.js issues:
* @see https://github.com/chartjs/Chart.js/issues/2380#issuecomment-279961569
* @see https://github.com/chartjs/Chart.js/issues/2440#issuecomment-256461897
*/
import LineElement from '../../elements/element.line.js';
import {_drawfill} from './fi... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/plugins/plugin.filler/simpleArc.js | src/plugins/plugin.filler/simpleArc.js | import {TAU} from '../../helpers/index.js';
// TODO: use elements.ArcElement instead
export class simpleArc {
constructor(opts) {
this.x = opts.x;
this.y = opts.y;
this.radius = opts.radius;
}
pathSegment(ctx, bounds, opts) {
const {x, y, radius} = this;
bounds = bounds || {start: 0, end: TA... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/plugins/plugin.filler/filler.drawing.js | src/plugins/plugin.filler/filler.drawing.js | import {clipArea, unclipArea, getDatasetClipArea} from '../../helpers/index.js';
import {_findSegmentEnd, _getBounds, _segments} from './filler.segment.js';
import {_getTarget} from './filler.target.js';
export function _drawfill(ctx, source, area) {
const target = _getTarget(source);
const {chart, index, line, sc... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/plugins/plugin.filler/filler.options.js | src/plugins/plugin.filler/filler.options.js | import {isObject, isFinite, valueOrDefault} from '../../helpers/helpers.core.js';
/**
* @typedef { import('../../core/core.scale.js').default } Scale
* @typedef { import('../../elements/element.line.js').default } LineElement
* @typedef { import('../../types/index.js').FillTarget } FillTarget
* @typedef { import('... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/plugins/plugin.filler/filler.target.js | src/plugins/plugin.filler/filler.target.js | import {isFinite} from '../../helpers/index.js';
import {_createBoundaryLine} from './filler.helper.js';
import {_getTargetPixel, _getTargetValue} from './filler.options.js';
import {_buildStackLine} from './filler.target.stack.js';
import {simpleArc} from './simpleArc.js';
/**
* @typedef { import('../../core/core.co... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/plugins/plugin.filler/filler.helper.js | src/plugins/plugin.filler/filler.helper.js | /**
* @typedef { import('../../core/core.controller.js').default } Chart
* @typedef { import('../../core/core.scale.js').default } Scale
* @typedef { import('../../elements/element.point.js').default } PointElement
*/
import {LineElement} from '../../elements/index.js';
import {isArray} from '../../helpers/index.j... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/plugins/plugin.filler/filler.segment.js | src/plugins/plugin.filler/filler.segment.js | import {_boundSegment, _boundSegments, _normalizeAngle} from '../../helpers/index.js';
export function _segments(line, target, property) {
const segments = line.segments;
const points = line.points;
const tpoints = target.points;
const parts = [];
for (const segment of segments) {
let {start, end} = seg... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/plugins/plugin.filler/filler.target.stack.js | src/plugins/plugin.filler/filler.target.stack.js | /**
* @typedef { import('../../core/core.controller.js').default } Chart
* @typedef { import('../../core/core.scale.js').default } Scale
* @typedef { import('../../elements/element.point.js').default } PointElement
*/
import {LineElement} from '../../elements/index.js';
import {_isBetween} from '../../helpers/inde... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/core/core.defaults.js | src/core/core.defaults.js | import {getHoverColor} from '../helpers/helpers.color.js';
import {isObject, merge, valueOrDefault} from '../helpers/helpers.core.js';
import {applyAnimationsDefaults} from './core.animations.defaults.js';
import {applyLayoutsDefaults} from './core.layouts.defaults.js';
import {applyScaleDefaults} from './core.scale.de... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/core/core.scale.js | src/core/core.scale.js | import Element from './core.element.js';
import {_alignPixel, _measureText, renderText, clipArea, unclipArea} from '../helpers/helpers.canvas.js';
import {callback as call, each, finiteOrDefault, isArray, isFinite, isNullOrUndef, isObject, valueOrDefault} from '../helpers/helpers.core.js';
import {toDegrees, toRadians,... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | true |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/core/core.layouts.js | src/core/core.layouts.js | import {defined, each, isObject} from '../helpers/helpers.core.js';
import {toPadding} from '../helpers/helpers.options.js';
/**
* @typedef { import('./core.controller.js').default } Chart
*/
const STATIC_POSITIONS = ['left', 'top', 'right', 'bottom'];
function filterByPosition(array, position) {
return array.fi... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/core/core.controller.js | src/core/core.controller.js | import animator from './core.animator.js';
import defaults, {overrides} from './core.defaults.js';
import Interaction from './core.interaction.js';
import layouts from './core.layouts.js';
import {_detectPlatform} from '../platform/index.js';
import PluginService from './core.plugins.js';
import registry from './core.r... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | true |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/core/core.scale.autoskip.js | src/core/core.scale.autoskip.js | import {isNullOrUndef, valueOrDefault} from '../helpers/helpers.core.js';
import {_factorize} from '../helpers/helpers.math.js';
/**
* @typedef { import('./core.controller.js').default } Chart
* @typedef {{value:number | string, label?:string, major?:boolean, $context?:any}} Tick
*/
/**
* Returns a subset of tic... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/core/core.ticks.js | src/core/core.ticks.js | import {isArray} from '../helpers/helpers.core.js';
import {formatNumber} from '../helpers/helpers.intl.js';
import {log10} from '../helpers/helpers.math.js';
/**
* Namespace to hold formatters for different types of ticks
* @namespace Chart.Ticks.formatters
*/
const formatters = {
/**
* Formatter for value la... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/core/core.scale.defaults.js | src/core/core.scale.defaults.js | import Ticks from './core.ticks.js';
export function applyScaleDefaults(defaults) {
defaults.set('scale', {
display: true,
offset: false,
reverse: false,
beginAtZero: false,
/**
* Scale boundary strategy (bypassed by min/max time options)
* - `data`: make sure data are fully visible, t... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/core/core.config.js | src/core/core.config.js | import defaults, {overrides, descriptors} from './core.defaults.js';
import {mergeIf, resolveObjectKey, isArray, isFunction, valueOrDefault, isObject} from '../helpers/helpers.core.js';
import {_attachContext, _createResolver, _descriptors} from '../helpers/helpers.config.js';
export function getIndexAxis(type, option... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/core/core.registry.js | src/core/core.registry.js | import DatasetController from './core.datasetController.js';
import Element from './core.element.js';
import Scale from './core.scale.js';
import TypedRegistry from './core.typedRegistry.js';
import {each, callback as call, _capitalize} from '../helpers/helpers.core.js';
/**
* Please use the module's default export w... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/core/core.interaction.js | src/core/core.interaction.js | import {_lookupByKey, _rlookupByKey} from '../helpers/helpers.collection.js';
import {getRelativePosition} from '../helpers/helpers.dom.js';
import {_angleBetween, getAngleFromPoint} from '../helpers/helpers.math.js';
import {_isPointInArea, isNullOrUndef} from '../helpers/index.js';
/**
* @typedef { import('./core.c... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/core/core.plugins.js | src/core/core.plugins.js | import registry from './core.registry.js';
import {callback as callCallback, isNullOrUndef, valueOrDefault} from '../helpers/helpers.core.js';
/**
* @typedef { import('./core.controller.js').default } Chart
* @typedef { import('../types/index.js').ChartEvent } ChartEvent
* @typedef { import('../plugins/plugin.toolt... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/core/core.typedRegistry.js | src/core/core.typedRegistry.js | import {merge} from '../helpers/index.js';
import defaults, {overrides} from './core.defaults.js';
/**
* @typedef {{id: string, defaults: any, overrides?: any, defaultRoutes: any}} IChartComponent
*/
export default class TypedRegistry {
constructor(type, scope, override) {
this.type = type;
this.scope = s... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/core/core.animations.defaults.js | src/core/core.animations.defaults.js | const numbers = ['x', 'y', 'borderWidth', 'radius', 'tension'];
const colors = ['color', 'borderColor', 'backgroundColor'];
export function applyAnimationsDefaults(defaults) {
defaults.set('animation', {
delay: undefined,
duration: 1000,
easing: 'easeOutQuart',
fn: undefined,
from: undefined,
... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/core/core.animator.js | src/core/core.animator.js | import {requestAnimFrame} from '../helpers/helpers.extras.js';
/**
* @typedef { import('./core.animation.js').default } Animation
* @typedef { import('./core.controller.js').default } Chart
*/
/**
* Please use the module's default export which provides a singleton instance
* Note: class is export for typedoc
*/... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/core/core.layouts.defaults.js | src/core/core.layouts.defaults.js | export function applyLayoutsDefaults(defaults) {
defaults.set('layout', {
autoPadding: true,
padding: {
top: 0,
right: 0,
bottom: 0,
left: 0
}
});
}
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/core/core.datasetController.js | src/core/core.datasetController.js | import Animations from './core.animations.js';
import defaults from './core.defaults.js';
import {isArray, isFinite, isObject, valueOrDefault, resolveObjectKey, defined} from '../helpers/helpers.core.js';
import {listenArrayEvents, unlistenArrayEvents} from '../helpers/helpers.collection.js';
import {createContext, sig... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/core/core.animation.js | src/core/core.animation.js | import effects from '../helpers/helpers.easing.js';
import {resolve} from '../helpers/helpers.options.js';
import {color as helpersColor} from '../helpers/helpers.color.js';
const transparent = 'transparent';
const interpolators = {
boolean(from, to, factor) {
return factor > 0.5 ? to : from;
},
/**
* @pa... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/core/core.animations.js | src/core/core.animations.js | import animator from './core.animator.js';
import Animation from './core.animation.js';
import defaults from './core.defaults.js';
import {isArray, isObject} from '../helpers/helpers.core.js';
export default class Animations {
constructor(chart, config) {
this._chart = chart;
this._properties = new Map();
... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/platform/platform.dom.js | src/platform/platform.dom.js | /**
* Chart.Platform implementation for targeting a web browser
*/
import BasePlatform from './platform.base.js';
import {_getParentNode, getRelativePosition, supportsEventListenerOptions, readUsedSize, getMaximumSize} from '../helpers/helpers.dom.js';
import {throttled} from '../helpers/helpers.extras.js';
import {... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/platform/platform.basic.js | src/platform/platform.basic.js | /**
* Platform fallback implementation (minimal).
* @see https://github.com/chartjs/Chart.js/pull/4591#issuecomment-319575939
*/
import BasePlatform from './platform.base.js';
/**
* Platform class for charts without access to the DOM or to many element properties
* This platform is used by default for any chart ... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/platform/index.js | src/platform/index.js | import {_isDomSupported} from '../helpers/index.js';
import BasePlatform from './platform.base.js';
import BasicPlatform from './platform.basic.js';
import DomPlatform from './platform.dom.js';
export function _detectPlatform(canvas) {
if (!_isDomSupported() || (typeof OffscreenCanvas !== 'undefined' && canvas insta... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/src/platform/platform.base.js | src/platform/platform.base.js |
/**
* @typedef { import('../core/core.controller.js').default } Chart
*/
/**
* Abstract class that allows abstracting platform dependencies away from the chart.
*/
export default class BasePlatform {
/**
* Called at chart construction time, returns a context2d instance implementing
* the [W3C Canvas 2D Cont... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/BasicChartWebWorker.js | test/BasicChartWebWorker.js | // This file is a basic example of using a chart inside a web worker.
// All it creates a new chart from a transferred OffscreenCanvas and then assert that the correct platform type was
// used.
// Receives messages with data of type: { type: 'initialize', canvas: OffscreenCanvas }
// Sends messages with data of types... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/index.js | test/index.js | import {acquireChart, releaseChart, createMockContext, afterEvent, waitForResize, injectWrapperCSS, specsFromFixtures, triggerMouseEvent, addMatchers, releaseCharts} from 'chartjs-test-utils';
// force ratio=1 for tests on high-res/retina devices
// fixes https://github.com/chartjs/Chart.js/issues/4515
window.devicePi... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/integration/node/test.js | test/integration/node/test.js | import {Chart} from 'chart.js';
import {valueOrDefault} from 'chart.js/helpers';
Chart.register({
id: 'TEST_PLUGIN',
dummyValue: valueOrDefault(0, 1)
});
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/integration/node-commonjs/test.js | test/integration/node-commonjs/test.js | const {Chart} = require('chart.js');
const {valueOrDefault} = require('chart.js/helpers');
Chart.register({
id: 'TEST_PLUGIN',
dummyValue: valueOrDefault(0, 1)
});
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/integration/node-commonjs/test-auto.js | test/integration/node-commonjs/test-auto.js | const Chart = require('chart.js/auto');
const {valueOrDefault} = require('chart.js/helpers');
Chart.register({
id: 'TEST_PLUGIN',
dummyValue: valueOrDefault(0, 1)
});
| javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.line/issue-8902.js | test/fixtures/controller.line/issue-8902.js | module.exports = {
description: 'https://github.com/chartjs/Chart.js/issues/8902',
config: {
type: 'line',
data: {
labels: [1, 2, 3, 4, 5, 6, 7, 8],
datasets: [{
data: [65, 59, NaN, 48, 56, 57, 40],
borderColor: 'rgb(75, 192, 192)',
}]
},
options: {
plugins: f... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.line/borderDash/value.js | test/fixtures/controller.line/borderDash/value.js | module.exports = {
config: {
type: 'line',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 5, 10, null, -10, -5],
borderColor: '#ff0000',
borderDash: [5]
},
{
// option in element (fallback)
... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.line/borderDash/scriptable.js | test/fixtures/controller.line/borderDash/scriptable.js | module.exports = {
config: {
type: 'line',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [4, 5, 10, null, -10, -5],
borderDash: function(ctx) {
return ctx.datasetIndex === 0 ? [5] : [10];
}
},
... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.line/radius/value.js | test/fixtures/controller.line/radius/value.js | module.exports = {
config: {
type: 'line',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 5, 10, null, -10, -5],
pointBackgroundColor: '#0000ff',
pointRadius: 6
},
{
// option in element (fa... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.line/radius/indexable.js | test/fixtures/controller.line/radius/indexable.js | module.exports = {
config: {
type: 'line',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 5, 10, null, -10, -5],
pointBackgroundColor: '#00ff00',
pointRadius: [
1, 2, 3, 4, 5, 6
]
},
... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.line/radius/scriptable.js | test/fixtures/controller.line/radius/scriptable.js | module.exports = {
config: {
type: 'line',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 5, 10, null, -10, -5],
pointBackgroundColor: '#0000ff',
pointRadius: function(ctx) {
var value = ctx.dataset.data[... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.line/radius/scriptable-to-value.js | test/fixtures/controller.line/radius/scriptable-to-value.js | module.exports = {
config: {
type: 'line',
data: {
labels: ['A', 'B', 'C'],
datasets: [{
data: [12, 19, 3]
}]
},
options: {
animation: {
duration: 0
},
backgroundColor: 'red',
radius: () => 20,
scales: {
x: {display: false},
... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.line/borderDashOffset/value.js | test/fixtures/controller.line/borderDashOffset/value.js | module.exports = {
config: {
type: 'line',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [1, 1, 1, 1, 1, 1],
borderColor: '#ff0000',
borderDash: [20],
borderDashOffset: 5.0
},
{
// op... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.line/borderDashOffset/scriptable.js | test/fixtures/controller.line/borderDashOffset/scriptable.js | module.exports = {
config: {
type: 'line',
data: {
labels: [0, 1, 2, 3],
datasets: [
{
// option in dataset
data: [1, 1, 1, 1],
borderColor: '#ff0000',
borderDash: [20],
borderDashOffset: function(ctx) {
return ctx.datasetIndex ... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.line/borderColor/value.js | test/fixtures/controller.line/borderColor/value.js | module.exports = {
config: {
type: 'line',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 5, 10, null, -10, -5],
borderColor: '#ff0000'
},
{
// option in element (fallback)
data: [4, -5, -10... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.line/borderColor/scriptable.js | test/fixtures/controller.line/borderColor/scriptable.js | module.exports = {
config: {
type: 'line',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [4, 5, 10, null, -10, -5],
borderColor: function(ctx) {
var index = ctx.index;
return index === 0 ? '#ff0000'
... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.line/pointBackgroundColor/value.js | test/fixtures/controller.line/pointBackgroundColor/value.js | module.exports = {
config: {
type: 'line',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 5, 10, null, -10, -5],
pointBackgroundColor: '#ff0000'
},
{
// option in element (fallback)
data: [4... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.line/pointBackgroundColor/indexable.js | test/fixtures/controller.line/pointBackgroundColor/indexable.js | module.exports = {
config: {
type: 'line',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 5, 10, null, -10, -5],
pointBackgroundColor: [
'#ff0000',
'#00ff00',
'#0000ff',
'#ffff00... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.line/pointBackgroundColor/scriptable.js | test/fixtures/controller.line/pointBackgroundColor/scriptable.js | module.exports = {
config: {
type: 'line',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 5, 10, null, -10, -5],
pointBackgroundColor: function(ctx) {
var value = ctx.dataset.data[ctx.dataIndex] || 0;
r... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.line/pointStyle/value.js | test/fixtures/controller.line/pointStyle/value.js | module.exports = {
config: {
type: 'line',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 5, 10, null, -10, -5],
pointBorderColor: '#ff0000',
pointStyle: 'star',
},
{
// option in element (f... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.line/pointStyle/indexable.js | test/fixtures/controller.line/pointStyle/indexable.js | module.exports = {
config: {
type: 'line',
data: {
labels: [0, 1, 2, 3, 4, 5, 6],
datasets: [
{
// option in dataset
data: [0, 5, 10, null, -10, -5, 0],
pointBackgroundColor: '#ff0000',
pointBorderColor: '#ff0000',
pointStyle: [
... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.line/pointStyle/scriptable.js | test/fixtures/controller.line/pointStyle/scriptable.js | module.exports = {
config: {
type: 'line',
data: {
labels: [0, 1, 2, 3, 4, 5],
datasets: [
{
// option in dataset
data: [0, 5, 10, null, -10, -5],
pointBackgroundColor: '#ff0000',
pointBorderColor: '#ff0000',
pointStyle: function(ctx) {
... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.line/clip/false.js | test/fixtures/controller.line/clip/false.js | const data = [];
for (let x = 0.95; x < 1.15; x += 0.002) {
data.push({x, y: x});
}
for (let x = 0.95; x < 1.15; x += 0.001) {
data.push({x, y: 2.1 - x});
}
module.exports = {
config: {
type: 'scatter',
data: {
datasets: [{
clip: false,
radius: 8,
borderWidth: 0,
ba... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.line/segments/range.js | test/fixtures/controller.line/segments/range.js | function x(ctx, {min = -Infinity, max = Infinity}) {
return (ctx.p0.parsed.x >= min || ctx.p1.parsed.x >= min) && (ctx.p0.parsed.x < max && ctx.p1.parsed.x < max);
}
function y(ctx, {min = -Infinity, max = Infinity}) {
return (ctx.p0.parsed.y >= min || ctx.p1.parsed.y >= min) && (ctx.p0.parsed.y < max || ctx.p1.pa... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
chartjs/Chart.js | https://github.com/chartjs/Chart.js/blob/a153556861074e827358446ec937555ac58c3d11/test/fixtures/controller.line/segments/spanGaps.js | test/fixtures/controller.line/segments/spanGaps.js | module.exports = {
config: {
type: 'line',
data: {
labels: ['a', 'b', 'c', 'd', 'e', 'f'],
datasets: [{
data: [1, 3, null, null, 2, 1],
segment: {
borderColor: ctx => ctx.p1.parsed.x > 2 ? 'red' : undefined,
borderDash: ctx => ctx.p1.parsed.x > 3 ? [6, 6] : unde... | javascript | MIT | a153556861074e827358446ec937555ac58c3d11 | 2026-01-04T14:56:49.667758Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.