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 | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/advanced/derived-chart-type.md | @@ -44,3 +44,7 @@ module.exports = {
## DerivedBubble Implementation
<<< @/docs/scripts/derived-bubble.js
+
+## Docs
+* [Bubble Chart](../../charts/bubble.html)
+* [New Charts](../../developers/charts.html) | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/advanced/linear-gradient.md | @@ -108,3 +108,11 @@ module.exports = {
config: config,
};
```
+
+## Docs
+* [Colors](../../general/colors.html)
+ * [Patterns and Gradients](../../general/colors.html#patterns-and-gradients)
+* [Data structures (`labels`)](../../general/data-structures.html)
+* [Options](../../general/options.html)
+ * [Scriptable Options](../../general/options.html#scriptable-options)
+* [Line](../../charts/line.html) | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/advanced/programmatic-events.md | @@ -101,3 +101,15 @@ module.exports = {
config: config,
};
```
+
+## API
+* [Chart](../../api/classes/Chart.md)
+ * [`setActiveElements`](../../api/classes/Chart.md#setactiveelements)
+* [TooltipModel](../../api/interfaces/TooltipModel.html)
+ * [`setActiveElements`](../../api/interfaces/TooltipModel.html#setactiveelements)
+
+## Docs
+* [Bar](../../charts/bar.html)
+ * [Interactions (`hoverBorderColor`)](../../charts/bar.html#interactions)
+* [Interactions](../../configuration/interactions.html)
+* [Tooltip](../../configuration/tooltip.html) | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/advanced/progress-bar.md | @@ -142,3 +142,11 @@ module.exports = {
output: 'console.log output is displayed here'
};
```
+
+## Docs
+* [Animations](../../configuration/animations.html)
+ * [Animation Callbacks](../../configuration/animations.html#animation-callbacks)
+* [Data structures (`labels`)](../../general/data-structures.html)
+* [Line](../../charts/line.html)
+* [Options](../../general/options.html)
+ * [Scriptable Options](../../general/options.html#scriptable-options) | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/advanced/radial-gradient.md | @@ -114,3 +114,9 @@ module.exports = {
config,
};
```
+
+## Docs
+* [Polar Area Chart](../../charts/polar.md)
+ * [Styling](../../charts/polar.md#styling)
+* [Options](../../general/options.html)
+ * [Scriptable Options](../../general/options.html#scriptable-options)
\ No newline at end of file | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/animations/delay.md | @@ -77,3 +77,11 @@ module.exports = {
config: config,
};
```
+## Docs
+* [Animations](../../configuration/animations.html)
+ * [animation (`delay`)](../../configuration/animations.html#animation)
+ * [Animation Callbacks](../../configuration/animations.html#animation-callbacks)
+* [Bar](../../charts/bar.html)
+ * [Stacked Bar Chart](../../charts/bar.html#stacked-bar-chart)
+* [Options](../../general/options.html)
+ * [Scriptable Options](../../general/options.html#scriptable-options) | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/animations/drop.md | @@ -123,3 +123,14 @@ module.exports = {
config: config,
};
```
+## Docs
+* [Area](../../charts/area.html)
+* [Animations](../../configuration/animations.html)
+ * [animation (`easing`)](../../configuration/animations.html#animation)
+ * [animations (`from`)](../../configuration/animations.html#animations-2)
+* [Line](../../charts/line.html)
+ * [Line Styling](../../charts/line.html#line-styling)
+ * `fill`
+ * `tension`
+* [Options](../../general/options.html)
+ * [Scriptable Options](../../general/options.html#scriptable-options) | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/animations/loop.md | @@ -123,3 +123,19 @@ module.exports = {
config: config,
};
```
+## Docs
+* [Animations](../../configuration/animations.html)
+ * [animation](../../configuration/animations.html#animation)
+ * `duration`
+ * `easing`
+ * **`loop`**
+ * [Default animations (`radius`)](../../configuration/animations.html#default-animations)
+* [Data structures (`labels`)](../../general/data-structures.html)
+* [Elements](../../configuration/elements.html)
+ * [Point Configuration](../../configuration/elements.html#point-configuration)
+ * `hoverRadius`
+ * `hoverBackgroundColor`
+* [Line](../../charts/line.html)
+* [Options](../../general/options.html)
+ * [Scriptable Options](../../general/options.html#scriptable-options)
+* [Tooltip (`enabled`)](../../configuration/tooltip.html) | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/animations/progressive-line-easing.md | @@ -170,3 +170,20 @@ module.exports = {
};
```
+## Api
+* [Chart](../../api/classes/Chart.md)
+ * [`getDatasetMeta`](../../api/classes/Chart.md#getdatasetmeta)
+* [Scale](../../api/classes/Scale.html)
+ * [`getPixelForValue`](../../api/classes/Scale.html#getpixelforvalue)
+## Docs
+* [Animations](../../configuration/animations.html)
+ * [animation](../../configuration/animations.html#animation)
+ * `delay`
+ * `duration`
+ * `easing`
+ * `loop`
+ * [Easing](../../configuration/animations.html#easing)
+* [Line](../../charts/line.html)
+* [Options](../../general/options.html)
+ * [Scriptable Options](../../general/options.html#scriptable-options)
+ * [Data Context](../../general/options.html#data) | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/animations/progressive-line.md | @@ -88,3 +88,20 @@ module.exports = {
};
```
+
+## Api
+* [Chart](../../api/classes/Chart.md)
+ * [`getDatasetMeta`](../../api/classes/Chart.md#getdatasetmeta)
+* [Scale](../../api/classes/Scale.html)
+ * [`getPixelForValue`](../../api/classes/Scale.html#getpixelforvalue)
+## Docs
+* [Animations](../../configuration/animations.html)
+ * [animation](../../configuration/animations.html#animation)
+ * `delay`
+ * `duration`
+ * `easing`
+ * `loop`
+* [Line](../../charts/line.html)
+* [Options](../../general/options.html)
+ * [Scriptable Options](../../general/options.html#scriptable-options)
+ * [Data Context](../../general/options.html#data) | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/area/line-boundaries.md | @@ -118,3 +118,10 @@ module.exports = {
config: config,
};
```
+
+## Docs
+* [Area](../../charts/area.html)
+ * [Filling modes](../../charts/area.htmll#filling-modes)
+ * Boundary: `'start'`, `'end'`, `'origin'`
+* [Line](../../charts/line.html)
+* [Data structures (`labels`)](../../general/data-structures.html) | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/area/line-datasets.md | @@ -164,3 +164,11 @@ module.exports = {
```
<div id="chart-analyser" class="analyser"></div>
+
+## Docs
+* [Area](../../charts/area.html)
+ * [Filling modes](../../charts/area.htmll#filling-modes)
+* [Line](../../charts/line.html)
+* [Data structures (`labels`)](../../general/data-structures.html)
+* [Axes scales](../../axes/)
+ * [Common options to all axes (`stacked`)](../../axes/#common-options-to-all-axes) | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/area/line-drawtime.md | @@ -113,3 +113,9 @@ module.exports = {
config: config,
};
```
+## Docs
+* [Area](../../charts/area.html)
+ * [Configuration (`drawTime`)](../../charts/area.html#configuration)
+* [Line](../../charts/line.html)
+ * [Line Styling (`tension`)](../../charts/line.html#line-styling)
+* [Data structures (`labels`)](../../general/data-structures.html) | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/area/line-stacked.md | @@ -170,3 +170,11 @@ module.exports = {
config: config
};
```
+
+## Docs
+* [Area](../../charts/area.html)
+ * [Filling modes](../../charts/area.htmll#filling-modes)
+* [Line](../../charts/line.html)
+* [Data structures (`labels`)](../../general/data-structures.html)
+* [Axes scales](../../axes/)
+ * [Common options to all axes (`stacked`)](../../axes/#common-options-to-all-axes) | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/area/radar.md | @@ -139,3 +139,10 @@ module.exports = {
```
<div id="chart-analyser" class="analyser"></div>
+
+## Docs
+* [Area](../../charts/area.html)
+ * [Filling modes](../../charts/area.htmll#filling-modes)
+ * [`propagate`](../../charts/area.html#propagate)
+* [Radar](../../charts/radar.html)
+* [Data structures (`labels`)](../../general/data-structures.html) | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/bar/border-radius.md | @@ -69,3 +69,8 @@ module.exports = {
config: config,
};
```
+
+## Docs
+* [Bar](../../charts/bar.html)
+ * [`borderRadius`](../../charts/bar.html#borderradius)
+* [Data structures (`labels`)](../../general/data-structures.html) | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/bar/floating.md | @@ -1,5 +1,7 @@
# Floating Bars
+Using `[number, number][]` as the type for `data` to define the beginning and end value for each bar. This is instead of having every bar start at 0.
+
```js chart-editor
// <block:actions:2>
const actions = [
@@ -67,3 +69,6 @@ module.exports = {
config: config,
};
```
+## Docs
+* [Bar](../../charts/bar.html)
+* [Data structures (`labels`)](../../general/data-structures.html) | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/bar/horizontal.md | @@ -121,3 +121,8 @@ module.exports = {
config: config,
};
```
+
+## Docs
+* [Bar](../../charts/bar.html)
+ * [Horizontal Bar Chart](../../charts/bar.html#horizontal-bar-chart)
+ | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/bar/stacked-groups.md | @@ -1,5 +1,7 @@
# Stacked Bar Chart with Groups
+Using the `stack` property to divide datasets into multiple stacks.
+
```js chart-editor
// <block:actions:2>
const actions = [
@@ -77,3 +79,10 @@ module.exports = {
config: config,
};
```
+
+## Docs
+* [Bar](../../charts/bar.html)
+ * [Stacked Bar Chart](../../charts/bar.html#stacked-bar-chart)
+* [Data structures (`labels`)](../../general/data-structures.html)
+ * [Dataset Configuration (`stack`)](../../general/data-structures.html#dataset-configuration)
+ | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/bar/stacked.md | @@ -71,3 +71,7 @@ module.exports = {
config: config,
};
```
+## Docs
+* [Bar](../../charts/bar.html)
+ * [Stacked Bar Chart](../../charts/bar.html#stacked-bar-chart)
+ | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/bar/vertical.md | @@ -113,3 +113,7 @@ module.exports = {
config: config,
};
```
+
+## Docs
+* [Bar](../../charts/bar.html)
+* [Data structures (`labels`)](../../general/data-structures.html) | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/legend/events.md | @@ -55,3 +55,9 @@ module.exports = {
config
};
```
+
+## Docs
+* [Doughnut and Pie Charts](../../charts/doughnut.html)
+* [Legend](../../configuration/legend.html)
+ * `onHover`
+ * `onLeave`
\ No newline at end of file | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/legend/html.md | @@ -131,3 +131,10 @@ module.exports = {
config: config,
};
```
+
+## Docs
+* [Data structures (`labels`)](../../general/data-structures.html)
+* [Line](../../charts/line.html)
+* [Legend](../../configuration/legend.html)
+ * `display: false`
+* [Plugins](../../developers/plugins.html) | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/legend/point-style.md | @@ -56,4 +56,14 @@ module.exports = {
actions: actions,
config: config,
};
-```
\ No newline at end of file
+```
+
+## Docs
+* [Data structures (`labels`)](../../general/data-structures.html)
+* [Line](../../charts/line.html)
+* [Legend](../../configuration/legend.html)
+ * [Legend Label Configuration](../../configuration/legend.html#legend-label-configuration)
+ * `usePointStyle`
+* [Elements](../../configuration/elements.html)
+ * [Point Configuration](../../configuration/elements.html#point-configuration)
+ * [Point Styles](../../configuration/elements.html#point-styles) | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/legend/position.md | @@ -65,4 +65,10 @@ module.exports = {
actions: actions,
config: config,
};
-```
\ No newline at end of file
+```
+
+## Docs
+* [Data structures (`labels`)](../../general/data-structures.html)
+* [Line](../../charts/line.html)
+* [Legend](../../configuration/legend.html)
+ * [Position](../../configuration/legend.html#position) | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/legend/title.md | @@ -71,4 +71,9 @@ module.exports = {
actions: actions,
config: config,
};
-```
\ No newline at end of file
+```
+
+## Docs
+* [Data structures (`labels`)](../../general/data-structures.html)
+* [Line](../../charts/line.html)
+* [Legend](../../configuration/legend.html)
\ No newline at end of file | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/line/interpolation.md | @@ -75,3 +75,9 @@ module.exports = {
config: config,
};
```
+
+## Docs
+* [Line](../../charts/line.html)
+ * [`cubicInterpolationMode`](../../charts/line.html#cubicinterpolationmode)
+ * [Line Styling (`tension`)](../../charts/line.html#line-styling)
+ | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/line/line.md | @@ -112,3 +112,7 @@ module.exports = {
config: config,
};
```
+
+## Docs
+* [Line](../../charts/line.html)
+* [Data structures (`labels`)](../../general/data-structures.html) | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/line/multi-axis.md | @@ -84,3 +84,11 @@ module.exports = {
config: config,
};
```
+
+## Docs
+* [Axes scales](../../axes/)
+* [Cartesian Axes](../../axes/cartesian/)
+ * [Axis Position](../../axes/cartesian/#axis-position)
+* [Data structures (`labels`)](../../general/data-structures.html)
+* [Line](../../charts/line.html)
+ | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/line/point-styling.md | @@ -134,3 +134,8 @@ module.exports = {
config: config,
};
```
+
+## Docs
+* [Data structures (`labels`)](../../general/data-structures.html)
+* [Line](../../charts/line.html)
+ * [Point Styling](../../charts/line.html#point-styling) | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/line/segments.md | @@ -1,4 +1,5 @@
# Line Segment Styling
+Using helper functions to style each segment. Gaps in the data ('skipped') are set to dashed lines and segments with values going 'down' are set to a different color.
```js chart-editor
@@ -42,3 +43,11 @@ module.exports = {
config: config,
};
```
+
+## Docs
+* [Data structures (`labels`)](../../general/data-structures.html)
+* [Line](../../charts/line.html)
+ * [Line Styling](../../charts/line.html#line-styling)
+ * [Segment](../../charts/line.html#segment)
+* [Options](../../general/options.html)
+ * [Scriptable Options](../../general/options.html#scriptable-options)
\ No newline at end of file | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/line/stepped.md | @@ -91,3 +91,8 @@ module.exports = {
config: config,
};
```
+
+## Docs
+* [Data structures (`labels`)](../../general/data-structures.html)
+* [Line](../../charts/line.html)
+ * [Stepped](../../charts/line.html#stepped) | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/line/styling.md | @@ -74,3 +74,8 @@ module.exports = {
config: config,
};
```
+
+## Docs
+* [Data structures (`labels`)](../../general/data-structures.html)
+* [Line](../../charts/line.html)
+ * [Line Styling](../../charts/line.html#line-styling) | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/other-charts/bubble.md | @@ -111,3 +111,6 @@ module.exports = {
config: config,
};
```
+
+## Docs
+* [Bubble](../../charts/bubble.html)
\ No newline at end of file | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/other-charts/combo-bar-line.md | @@ -116,3 +116,8 @@ module.exports = {
config: config,
};
```
+
+## Docs
+* [Bar](../../charts/bar.html)
+* [Line](../../charts/line.html)
+* [Data structures (`labels`)](../../general/data-structures.html) | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/other-charts/doughnut.md | @@ -134,3 +134,6 @@ module.exports = {
config: config,
};
```
+
+## Docs
+* [Doughnut and Pie Charts](../../charts/doughnut.html) | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/other-charts/multi-series-pie.md | @@ -89,3 +89,8 @@ module.exports = {
config: config,
};
```
+
+## Docs
+* [Doughnut and Pie Charts](../../charts/doughnut.html)
+* [Options](../../general/options.html)
+ * [Scriptable Options](../../general/options.html#scriptable-options)
\ No newline at end of file | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/other-charts/pie.md | @@ -110,3 +110,5 @@ module.exports = {
config: config,
};
```
+## Docs
+* [Doughnut and Pie Charts](../../charts/doughnut.html) | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/other-charts/polar-area-center-labels.md | @@ -100,3 +100,8 @@ module.exports = {
config: config,
};
```
+
+## Docs
+* [Polar Area Chart](../../charts/polar.md)
+* [Linear Radial Axis](../../axes/radial/linear.html)
+ * [Point Label Options (`centerPointLabels`)](../../axes/radial/linear.html#point-label-options)
\ No newline at end of file | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/other-charts/polar-area.md | @@ -89,3 +89,6 @@ module.exports = {
config: config,
};
```
+
+## Docs
+* [Polar Area Chart](../../charts/polar.md) | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/other-charts/radar-skip-points.md | @@ -85,3 +85,6 @@ module.exports = {
};
```
+## Docs
+* [Radar](../../charts/radar.html)
+* [Data structures (`labels`)](../../general/data-structures.html) | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/other-charts/radar.md | @@ -109,3 +109,7 @@ module.exports = {
config: config,
};
```
+
+## Docs
+* [Radar](../../charts/radar.html)
+* [Data structures (`labels`)](../../general/data-structures.html) | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/other-charts/scatter-multi-axis.md | @@ -133,3 +133,8 @@ module.exports = {
config: config,
};
```
+
+## Docs
+* [Scatter](../../charts/scatter.html)
+* [Cartesian Axes](../../axes/cartesian/)
+ * [Axis Position](../../axes/cartesian/#axis-position)
\ No newline at end of file | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/other-charts/scatter.md | @@ -111,3 +111,6 @@ module.exports = {
config: config,
};
```
+
+## Docs
+* [Scatter](../../charts/scatter.html)
\ No newline at end of file | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/other-charts/stacked-bar-line.md | @@ -118,3 +118,13 @@ module.exports = {
config: config,
};
```
+
+## Docs
+* [Axes scales](../../axes/)
+ * [Common options to all axes (`stacked`)](../../axes/#common-options-to-all-axes)
+ * [Stacking](../../axes/#stacking)
+* [Bar](../../charts/bar.html)
+* [Line](../../charts/line.html)
+* [Data structures (`labels`)](../../general/data-structures.html)
+ * [Dataset Configuration (`stack`)](../../general/data-structures.html#dataset-configuration)
+ | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/plugins/chart-area-border.md | @@ -61,3 +61,9 @@ const config = {
module.exports = {
config: config,
};
+```
+
+## Docs
+* [Line](../../charts/line.html)
+* [Data structures (`labels`)](../../general/data-structures.html)
+* [Plugins](../../developers/plugins.html) | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/plugins/doughnut-empty-state.md | @@ -75,3 +75,9 @@ module.exports = {
actions,
config,
};
+```
+
+## Docs
+* [Data structures (`labels`)](../../general/data-structures.html)
+* [Plugins](../../developers/plugins.html)
+* [Doughnut and Pie Charts](../../charts/doughnut.html) | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/plugins/quadrants.md | @@ -77,3 +77,9 @@ module.exports = {
actions,
config,
};
+```
+
+## Docs
+* [Data structures (`labels`)](../../general/data-structures.html)
+* [Plugins](../../developers/plugins.html)
+* [Scatter](../../charts/scatter.html) | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/scale-options/center.md | @@ -86,4 +86,9 @@ module.exports = {
actions: actions,
config: config,
};
-```
\ No newline at end of file
+```
+
+## Docs
+* [Scatter](../../charts/scatter.html)
+* [Cartesian Axes](../../axes/cartesian/)
+ * [Axis Position](../../axes/cartesian/#axis-position)
\ No newline at end of file | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/scale-options/grid.md | @@ -92,3 +92,12 @@ module.exports = {
config: config,
};
```
+
+## Docs
+* [Line](../../charts/line.html)
+* [Options](../../general/options.html)
+ * [Scriptable Options](../../general/options.html#scriptable-options)
+ * [Tick Context](../../general/options.html#tick)
+* [Data structures (`labels`)](../../general/data-structures.html)
+* [Axes Styling](../../axes/styling.html)
+ * [Grid Line Configuration](../../axes/styling.html#grid-line-configuration)
\ No newline at end of file | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/scale-options/ticks.md | @@ -92,3 +92,12 @@ module.exports = {
config: config,
};
```
+
+## Docs
+* [Line](../../charts/line.html)
+* [Options](../../general/options.html)
+ * [Scriptable Options](../../general/options.html#scriptable-options)
+ * [Tick Context](../../general/options.html#tick)
+* [Data structures (`labels`)](../../general/data-structures.html)
+* [Axes Styling](../../axes/styling.html)
+ * [Tick Configuration](../../axes/styling.html#tick-configuration)
\ No newline at end of file | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/scale-options/titles.md | @@ -74,3 +74,12 @@ module.exports = {
config: config,
};
```
+
+## Docs
+* [Line](../../charts/line.html)
+* [Data structures (`labels`)](../../general/data-structures.html)
+* [Axes Styling](../../axes/styling.html)
+* [Cartesian Axes](../../axes/cartesian/)
+ * [Common options to all cartesian axes](../../axes/cartesian/#common-options-to-all-cartesian-axes)
+* [Labeling Axes](../../axes/labelling.html)
+ * [Scale Title Configuration](../../axes/labelling.html#scale-title-configuration)
\ No newline at end of file | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/scales/linear-min-max-suggested.md | @@ -54,3 +54,10 @@ module.exports = {
config: config,
};
```
+
+## Docs
+* [Line](../../charts/line.html)
+* [Data structures (`labels`)](../../general/data-structures.html)
+* [Axes scales](../../axes/)
+ * [Common options to all axes](../../axes/#common-options-to-all-axes)
+ * [Axis Range Settings](../../axes/#axis-range-settings) | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/scales/linear-min-max.md | @@ -51,3 +51,10 @@ module.exports = {
config: config,
};
```
+
+## Docs
+* [Line](../../charts/line.html)
+* [Data structures (`labels`)](../../general/data-structures.html)
+* [Axes scales](../../axes/)
+ * [Common options to all axes (`min`,`max`)](../../axes/#common-options-to-all-axes)
+
\ No newline at end of file | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/scales/linear-step-size.md | @@ -137,3 +137,12 @@ module.exports = {
config: config,
};
```
+
+## Docs
+* [Line](../../charts/line.html)
+* [Data structures (`labels`)](../../general/data-structures.html)
+* [Axes scales](../../axes/)
+ * [Common options to all axes (`min`,`max`)](../../axes/#common-options-to-all-axes)
+* [Linear Axis](../../axes/cartesian/linear.html)
+ * [Linear Axis specific tick options (`stepSize`)](../../axes/cartesian/linear.html#linear-axis-specific-tick-options)
+ * [Step Size](../../axes/cartesian/linear.html#step-size) | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/scales/log.md | @@ -74,3 +74,9 @@ module.exports = {
config: config,
};
```
+
+## Docs
+* [Line](../../charts/line.html)
+* [Logarithmic Axis](../../axes/cartesian/logarithmic.html)
+* [Data structures (`labels`)](../../general/data-structures.html)
+ | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/scales/stacked.md | @@ -69,3 +69,9 @@ module.exports = {
config: config,
};
```
+
+## Docs
+* [Line](../../charts/line.html)
+* [Axes scales](../../axes/)
+ * [Stacking](../../axes/#stacking)
+* [Data structures (`labels`)](../../general/data-structures.html) | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/scales/time-combo.md | @@ -80,3 +80,9 @@ module.exports = {
config: config,
};
```
+
+## Docs
+* [Bar](../../charts/bar.html)
+* [Line](../../charts/line.html)
+* [Data structures (`labels`)](../../general/data-structures.html)
+* [Time Scale](../../axes/cartesian/time.html) | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/scales/time-line.md | @@ -110,3 +110,7 @@ module.exports = {
config: config,
};
```
+
+## Docs
+* [Line](../../charts/line.html)
+* [Time Cartesian Axis](../../axes/cartesian/time.html)
\ No newline at end of file | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/scales/time-max-span.md | @@ -124,3 +124,8 @@ module.exports = {
config: config,
};
```
+
+## Docs
+* [Line](../../charts/line.html)
+ * [`spanGaps`](../../charts/line.html#line-styling)
+* [Time Scale](../../axes/cartesian/time.html) | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/scriptable/bar.md | @@ -1,4 +1,5 @@
# Bar Chart
+Demo selecting bar color based on the bar's y value.
```js chart-editor
// <block:setup:2>
@@ -71,3 +72,10 @@ module.exports = {
config,
};
```
+
+## Docs
+* [Bar](../../charts/bar.html)
+* [Data structures (`labels`)](../../general/data-structures.html)
+ * [Dataset Configuration (`stack`)](../../general/data-structures.html#dataset-configuration)
+* [Options](../../general/options.html)
+ * [Scriptable Options](../../general/options.html#scriptable-options) | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/scriptable/bubble.md | @@ -107,3 +107,8 @@ module.exports = {
config,
};
```
+
+## Docs
+* [Bubble](../../charts/bubble.html)
+* [Options](../../general/options.html)
+ * [Scriptable Options](../../general/options.html#scriptable-options)
\ No newline at end of file | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/scriptable/line.md | @@ -89,3 +89,11 @@ module.exports = {
config,
};
```
+
+## Docs
+* [Line](../../charts/line.html)
+ * [Point Styling](../../charts/line.html#point-styling)
+* [Options](../../general/options.html)
+ * [Scriptable Options](../../general/options.html#scriptable-options)
+* [Data structures (`labels`)](../../general/data-structures.html)
+ | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/scriptable/pie.md | @@ -85,3 +85,8 @@ module.exports = {
config,
};
```
+
+## Docs
+* [Options](../../general/options.html)
+ * [Scriptable Options](../../general/options.html#scriptable-options)
+* [Doughnut and Pie Charts](../../charts/doughnut.html)
\ No newline at end of file | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/scriptable/polar.md | @@ -75,3 +75,8 @@ module.exports = {
config,
};
```
+
+## Docs
+* [Options](../../general/options.html)
+ * [Scriptable Options](../../general/options.html#scriptable-options)
+* [Polar Area Chart](../../charts/polar.md) | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/scriptable/radar.md | @@ -92,3 +92,8 @@ module.exports = {
config,
};
```
+
+## Docs
+* [Options](../../general/options.html)
+ * [Scriptable Options](../../general/options.html#scriptable-options)
+* [Radar](../../charts/radar.html) | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/subtitle/basic.md | @@ -53,3 +53,9 @@ module.exports = {
config: config,
};
```
+
+## Docs
+* [Data structures (`labels`)](../../general/data-structures.html)
+* [Line](../../charts/line.html)
+* [Title](../../configuration/title.html)
+* [Subtitle](../../configuration/subtitle.html) | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/title/alignment.md | @@ -66,4 +66,9 @@ module.exports = {
actions: actions,
config: config,
};
-```
\ No newline at end of file
+```
+
+## Docs
+* [Data structures (`labels`)](../../general/data-structures.html)
+* [Line](../../charts/line.html)
+* [Title](../../configuration/title.html)
\ No newline at end of file | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/tooltip/content.md | @@ -63,4 +63,10 @@ module.exports = {
actions: [],
config: config,
};
-```
\ No newline at end of file
+```
+
+## Docs
+* [Data structures (`labels`)](../../general/data-structures.html)
+* [Line](../../charts/line.html)
+* [Tooltip](../../configuration/tooltip.html)
+ * [Tooltip Callbacks](../../configuration/tooltip.html#tooltip-callbacks) | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/tooltip/html.md | @@ -163,3 +163,10 @@ module.exports = {
config: config,
};
```
+
+## Docs
+* [Data structures (`labels`)](../../general/data-structures.html)
+* [Line](../../charts/line.html)
+* [Tooltip](../../configuration/tooltip.html)
+ * [External (Custom) Tooltips](../../configuration/tooltip.html#external-custom-tooltips)
+
\ No newline at end of file | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/tooltip/interactions.md | @@ -128,3 +128,9 @@ module.exports = {
config: config,
};
```
+
+## Docs
+* [Data structures (`labels`)](../../general/data-structures.html)
+* [Line](../../charts/line.html)
+* [Tooltip](../../configuration/tooltip.html)
+* [Interactions](../../configuration/interactions.html) | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/tooltip/point-style.md | @@ -77,4 +77,13 @@ module.exports = {
actions: actions,
config: config,
};
-```
\ No newline at end of file
+```
+
+## Docs
+* [Data structures (`labels`)](../../general/data-structures.html)
+* [Line](../../charts/line.html)
+* [Tooltip](../../configuration/tooltip.html)
+ * `usePointStyle`
+* [Elements](../../configuration/elements.html)
+ * [Point Styles](../../configuration/elements.html#point-styles)
+ | true |
Other | chartjs | Chart.js | 4183b7f04a8f5b1e8336aaa8b93f260ffd66a042.json | Add links to docs in all the samples (#10308) | docs/samples/tooltip/position.md | @@ -98,4 +98,11 @@ module.exports = {
actions: actions,
config: config,
};
-```
\ No newline at end of file
+```
+
+## Docs
+* [Data structures (`labels`)](../../general/data-structures.html)
+* [Line](../../charts/line.html)
+* [Tooltip](../../configuration/tooltip.html)
+ * [Position Modes](../../configuration/tooltip.html#position-modes)
+ * [Custom Position Modes](../../configuration/tooltip.html#custom-position-modes)
\ No newline at end of file | true |
Other | chartjs | Chart.js | 8ac3cc2191ccf826e66ec8aaed7fd17fd0dfc370.json | Remove test job from windows runner (#10345)
* Remove test stop from windows runner
* consistent formatting | .github/workflows/ci.yml | @@ -54,13 +54,12 @@ jobs:
run: npm run build
- name: Test
if: |
- steps.changes.outputs.src == 'true' ||
- steps.changes.outputs.test == 'true'
+ (steps.changes.outputs.src == 'true' ||
+ steps.changes.outputs.test == 'true') &&
+ runner.os != 'Windows'
run: |
npm run build
- if [ "${{ runner.os }}" == "Windows" ]; then
- npm test
- elif [ "${{ runner.os }}" == "macOS" ]; then
+ if [ "${{ runner.os }}" == "macOS" ]; then
npm test --browsers chrome,safari
else
xvfb-run --auto-servernum npm test | false |
Other | chartjs | Chart.js | a9765042f184bb25c97cc0501c9a956d4167c448.json | Use abs() when comparing for spanGaps (#10316)
* Use abs() when comparing for spanGaps
* tests for spanGaps w/ integer (boolean already covered)
* remove redundant default config from spanGaps tests | src/controllers/controller.line.js | @@ -68,7 +68,7 @@ export default class LineController extends DatasetController {
const vPixel = properties[vAxis] = reset || nullData ? vScale.getBasePixel() : vScale.getPixelForValue(_stacked ? this.applyStack(vScale, parsed, _stacked) : parsed[vAxis], i);
properties.skip = isNaN(iPixel) || isNaN(vPixel) || nullData;
- properties.stop = i > 0 && (parsed[iAxis] - prevParsed[iAxis]) > maxGapLength;
+ properties.stop = i > 0 && (Math.abs(parsed[iAxis] - prevParsed[iAxis])) > maxGapLength;
if (segment) {
properties.parsed = parsed;
properties.raw = _dataset.data[i]; | true |
Other | chartjs | Chart.js | a9765042f184bb25c97cc0501c9a956d4167c448.json | Use abs() when comparing for spanGaps (#10316)
* Use abs() when comparing for spanGaps
* tests for spanGaps w/ integer (boolean already covered)
* remove redundant default config from spanGaps tests | test/specs/controller.line.tests.js | @@ -964,4 +964,56 @@ describe('Chart.controllers.line', function() {
expect(isNaN(x)).toBe(false);
expect(isNaN(y)).toBe(false);
});
+
+ it('should honor spangap interval forwards', function() {
+ var chart = window.acquireChart({
+ type: 'line',
+ data: {
+ datasets: [{
+ spanGaps: 10,
+ data: [{x: 10, y: 123}, {x: 15, y: 124}, {x: 26, y: 125}, {x: 30, y: 126}, {x: 35, y: 127}],
+ label: 'dataset1',
+ }],
+ },
+ options: {
+ scales: {
+ x: {
+ type: 'linear',
+ }
+ }
+ }
+ });
+
+ var meta = chart.getDatasetMeta(0);
+ for (var i = 0; i < meta.data.length; ++i) {
+ var point = meta.data[i];
+ expect(point.stop).toBe(i === 2);
+ }
+ });
+
+ it('should honor spangap interval backwards', function() {
+ var chart = window.acquireChart({
+ type: 'line',
+ data: {
+ datasets: [{
+ spanGaps: 10,
+ data: [{x: 35, y: 123}, {x: 30, y: 124}, {x: 26, y: 125}, {x: 15, y: 126}, {x: 10, y: 127}],
+ label: 'dataset1',
+ }],
+ },
+ options: {
+ scales: {
+ x: {
+ type: 'linear',
+ }
+ }
+ }
+ });
+
+ var meta = chart.getDatasetMeta(0);
+ for (var i = 0; i < meta.data.length; ++i) {
+ var point = meta.data[i];
+ expect(point.stop).toBe(i === 3);
+ }
+ });
}); | true |
Other | chartjs | Chart.js | 16f6b8cb413ef59ac8eaf4235e230e5efe8b7c3c.json | Fix a typo in data-structures.md (#10259)
Change `The provides labels can be` to `The provided labels can be`.
Co-authored-by: Akira Aso <44665462+akiorange@users.noreply.github.com> | docs/general/data-structures.md | @@ -3,7 +3,7 @@
The `data` property of a dataset can be passed in various formats. By default, that `data` is parsed using the associated chart type and scales.
If the `labels` property of the main `data` property is used, it has to contain the same amount of elements as the dataset with the most values. These labels are used to label the index axis (default x axes). The values for the labels have to be provided in an array.
-The provides labels can be of the type string or number to be rendered correctly. In case you want multiline labels you can provide an array with each line as one entry in the array.
+The provided labels can be of the type string or number to be rendered correctly. In case you want multiline labels you can provide an array with each line as one entry in the array.
## Primitive[]
| false |
Other | chartjs | Chart.js | 1c1368beadcaeaf8ca82917e5e5eb585353dc9b4.json | add startangle to radial scale opts (#10269) | types/index.esm.d.ts | @@ -3284,6 +3284,8 @@ export const TimeSeriesScale: ChartComponent & {
export type RadialLinearScaleOptions = CoreScaleOptions & {
animate: boolean;
+ startAngle: number;
+
angleLines: {
/**
* if true, angle lines are shown. | false |
Other | chartjs | Chart.js | ec6590027d6f838ce817afd29ae19bba2a8b55b5.json | Add missing fields to the ScriptableContext type (#10254) | types/index.esm.d.ts | @@ -21,6 +21,8 @@ export interface ScriptableContext<TType extends ChartType> {
dataIndex: number;
dataset: UnionToIntersection<ChartDataset<TType>>;
datasetIndex: number;
+ type: string;
+ mode: string;
parsed: UnionToIntersection<ParsedDataType<TType>>;
raw: unknown;
} | false |
Other | chartjs | Chart.js | e9ce6ce60d536f91aa8d269b01829d3a18f37102.json | resolve circulair import (#10247) | src/plugins/plugin.filler/filler.helper.js | @@ -0,0 +1,34 @@
+/**
+ * @typedef { import('../../core/core.controller').default } Chart
+ * @typedef { import('../../core/core.scale').default } Scale
+ * @typedef { import('../../elements/element.point').default } PointElement
+ */
+
+import {LineElement} from '../../elements';
+import {isArray} from '../../helpers';
+import {_pointsFromSegments} from './filler.segment';
+
+/**
+ * @param {PointElement[] | { x: number; y: number; }} boundary
+ * @param {LineElement} line
+ * @return {LineElement?}
+ */
+export function _createBoundaryLine(boundary, line) {
+ let points = [];
+ let _loop = false;
+
+ if (isArray(boundary)) {
+ _loop = true;
+ // @ts-ignore
+ points = boundary;
+ } else {
+ points = _pointsFromSegments(boundary, line);
+ }
+
+ return points.length ? new LineElement({
+ points,
+ options: {tension: 0},
+ _loop,
+ _fullLoop: _loop
+ }) : null;
+} | true |
Other | chartjs | Chart.js | e9ce6ce60d536f91aa8d269b01829d3a18f37102.json | resolve circulair import (#10247) | src/plugins/plugin.filler/filler.target.js | @@ -1,7 +1,6 @@
-import {LineElement} from '../../elements';
-import {isArray, isFinite} from '../../helpers';
+import {isFinite} from '../../helpers';
+import {_createBoundaryLine} from './filler.helper';
import {_getTargetPixel, _getTargetValue} from './filler.options';
-import {_pointsFromSegments} from './filler.segment';
import {_buildStackLine} from './filler.target.stack';
import {simpleArc} from './simpleArc';
@@ -35,31 +34,6 @@ export function _getTarget(source) {
return _createBoundaryLine(boundary, line);
}
-/**
- * @param {PointElement[] | { x: number; y: number; }} boundary
- * @param {LineElement} line
- * @return {LineElement?}
- */
-export function _createBoundaryLine(boundary, line) {
- let points = [];
- let _loop = false;
-
- if (isArray(boundary)) {
- _loop = true;
- // @ts-ignore
- points = boundary;
- } else {
- points = _pointsFromSegments(boundary, line);
- }
-
- return points.length ? new LineElement({
- points,
- options: {tension: 0},
- _loop,
- _fullLoop: _loop
- }) : null;
-}
-
/**
* @param {Chart} chart
* @param {number} index | true |
Other | chartjs | Chart.js | e9ce6ce60d536f91aa8d269b01829d3a18f37102.json | resolve circulair import (#10247) | src/plugins/plugin.filler/filler.target.stack.js | @@ -6,7 +6,7 @@
import {LineElement} from '../../elements';
import {_isBetween} from '../../helpers';
-import {_createBoundaryLine} from './filler.target';
+import {_createBoundaryLine} from './filler.helper';
/**
* @param {{ chart: Chart; scale: Scale; index: number; line: LineElement; }} source | true |
Other | chartjs | Chart.js | 16e6acc6b94fd02acd72535e0face94aedfcf5d0.json | Allow array for line opts in dataset (#10179)
* fix line as array ts error
* added test
* implement only for the border,background color and radius | types/index.esm.d.ts | @@ -177,8 +177,10 @@ export interface LineControllerDatasetOptions
extends ControllerDatasetOptions,
ScriptableAndArrayOptions<PointPrefixedOptions, ScriptableContext<'line'>>,
ScriptableAndArrayOptions<PointPrefixedHoverOptions, ScriptableContext<'line'>>,
- ScriptableOptions<LineOptions, ScriptableContext<'line'>>,
- ScriptableOptions<LineHoverOptions, ScriptableContext<'line'>>,
+ ScriptableOptions<Omit<LineOptions, keyof CommonElementOptions>, ScriptableContext<'line'>>,
+ ScriptableAndArrayOptions<CommonElementOptions, ScriptableContext<'line'>>,
+ ScriptableOptions<Omit<LineHoverOptions, keyof CommonHoverOptions>, ScriptableContext<'line'>>,
+ ScriptableAndArrayOptions<CommonHoverOptions, ScriptableContext<'line'>>,
AnimationOptions<'line'> {
/**
* The ID of the x axis to plot this dataset on. | true |
Other | chartjs | Chart.js | 16e6acc6b94fd02acd72535e0face94aedfcf5d0.json | Allow array for line opts in dataset (#10179)
* fix line as array ts error
* added test
* implement only for the border,background color and radius | types/tests/controllers/line_styling_array.ts | @@ -0,0 +1,13 @@
+import { Chart } from '../../index.esm';
+
+const chart = new Chart('id', {
+ type: 'line',
+ data: {
+ labels: [],
+ datasets: [{
+ data: [],
+ backgroundColor: ['red', 'blue'],
+ hoverBackgroundColor: ['red', 'blue'],
+ }]
+ },
+}); | true |
Other | chartjs | Chart.js | d7e8b733e36f87e85a5bbccd88cfc74b182ac467.json | Add `reverse` support to time scale (#5927) | src/scales/scale.time.js | @@ -356,34 +356,34 @@ function generate(min, max, capacity, options) {
}
/**
- * Returns the right and left offsets from edges in the form of {left, right}.
+ * Returns the end and start offsets from edges in the form of {start, end}.
* Offsets are added when the `offset` option is true.
*/
function computeOffsets(table, ticks, min, max, options) {
- var left = 0;
- var right = 0;
+ var start = 0;
+ var end = 0;
var upper, lower;
if (options.offset && ticks.length) {
if (!options.time.min) {
upper = ticks.length > 1 ? ticks[1] : max;
lower = ticks[0];
- left = (
+ start = (
interpolate(table, 'time', upper, 'pos') -
interpolate(table, 'time', lower, 'pos')
) / 2;
}
if (!options.time.max) {
upper = ticks[ticks.length - 1];
lower = ticks.length > 1 ? ticks[ticks.length - 2] : min;
- right = (
+ end = (
interpolate(table, 'time', upper, 'pos') -
interpolate(table, 'time', lower, 'pos')
) / 2;
}
}
- return {left: left, right: right};
+ return options.ticks.reverse ? {start: end, end: start} : {start: start, end: end};
}
function ticksFromTimestamps(values, majorUnit) {
@@ -645,6 +645,10 @@ module.exports = function() {
me._offsets = computeOffsets(me._table, ticks, min, max, options);
me._labelFormat = determineLabelFormat(me._timestamps.data, timeOpts);
+ if (options.ticks.reverse) {
+ ticks.reverse();
+ }
+
return ticksFromTimestamps(ticks, me._majorUnit);
},
@@ -706,11 +710,13 @@ module.exports = function() {
*/
getPixelForOffset: function(time) {
var me = this;
+ var isReverse = me.options.ticks.reverse;
var size = me._horizontal ? me.width : me.height;
- var start = me._horizontal ? me.left : me.top;
+ var start = me._horizontal ? isReverse ? me.right : me.left : isReverse ? me.bottom : me.top;
var pos = interpolate(me._table, 'time', time, 'pos');
+ var offset = size * (me._offsets.start + pos) / (me._offsets.start + 1 + me._offsets.end);
- return start + size * (me._offsets.left + pos) / (me._offsets.left + 1 + me._offsets.right);
+ return isReverse ? start - offset : start + offset;
},
getPixelForValue: function(value, index, datasetIndex) {
@@ -741,7 +747,7 @@ module.exports = function() {
var me = this;
var size = me._horizontal ? me.width : me.height;
var start = me._horizontal ? me.left : me.top;
- var pos = (size ? (pixel - start) / size : 0) * (me._offsets.left + 1 + me._offsets.left) - me._offsets.right;
+ var pos = (size ? (pixel - start) / size : 0) * (me._offsets.start + 1 + me._offsets.start) - me._offsets.end;
var time = interpolate(me._table, 'pos', pos, 'time');
return moment(time); | true |
Other | chartjs | Chart.js | d7e8b733e36f87e85a5bbccd88cfc74b182ac467.json | Add `reverse` support to time scale (#5927) | test/specs/scale.time.tests.js | @@ -1317,4 +1317,191 @@ describe('Time scale tests', function() {
});
});
});
+
+ describe('when ticks.reverse', function() {
+ describe('is "true"', function() {
+ it ('should reverse the labels', function() {
+ this.chart = window.acquireChart({
+ type: 'line',
+ data: {
+ labels: ['2017', '2019', '2020', '2025', '2042'],
+ datasets: [{data: [0, 1, 2, 3, 4, 5]}]
+ },
+ options: {
+ scales: {
+ xAxes: [{
+ id: 'x',
+ type: 'time',
+ time: {
+ parser: 'YYYY',
+ },
+ ticks: {
+ source: 'labels',
+ reverse: true
+ }
+ }],
+ yAxes: [{
+ display: false
+ }]
+ }
+ }
+ });
+ var scale = this.chart.scales.x;
+ expect(scale.getPixelForValue('2017')).toBeCloseToPixel(scale.left + scale.width);
+ expect(scale.getPixelForValue('2042')).toBeCloseToPixel(scale.left);
+ });
+ });
+ });
+
+ describe('when ticks.reverse is "true" and distribution', function() {
+ describe('is "series"', function() {
+ beforeEach(function() {
+ this.chart = window.acquireChart({
+ type: 'line',
+ data: {
+ labels: ['2017', '2019', '2020', '2025', '2042'],
+ datasets: [{data: [0, 1, 2, 3, 4, 5]}]
+ },
+ options: {
+ scales: {
+ xAxes: [{
+ id: 'x',
+ type: 'time',
+ time: {
+ parser: 'YYYY'
+ },
+ distribution: 'series',
+ ticks: {
+ source: 'labels',
+ reverse: true
+ }
+ }],
+ yAxes: [{
+ display: false
+ }]
+ }
+ }
+ });
+ });
+
+ it ('should reverse the labels and space data out with the same gap, whatever their time values', function() {
+ var scale = this.chart.scales.x;
+ var start = scale.left;
+ var slice = scale.width / 4;
+
+ expect(scale.getPixelForValue('2017')).toBeCloseToPixel(start + slice * 4);
+ expect(scale.getPixelForValue('2019')).toBeCloseToPixel(start + slice * 3);
+ expect(scale.getPixelForValue('2020')).toBeCloseToPixel(start + slice * 2);
+ expect(scale.getPixelForValue('2025')).toBeCloseToPixel(start + slice);
+ expect(scale.getPixelForValue('2042')).toBeCloseToPixel(start);
+ });
+
+ it ('should reverse the labels and should add a step before if scale.min is before the first data', function() {
+ var chart = this.chart;
+ var scale = chart.scales.x;
+ var options = chart.options.scales.xAxes[0];
+
+ options.time.min = '2012';
+ chart.update();
+
+ var start = scale.left;
+ var slice = scale.width / 5;
+
+ expect(scale.getPixelForValue('2017')).toBeCloseToPixel(start + slice * 4);
+ expect(scale.getPixelForValue('2042')).toBeCloseToPixel(start);
+ });
+
+ it ('should reverse the labels and should add a step after if scale.max is after the last data', function() {
+ var chart = this.chart;
+ var scale = chart.scales.x;
+ var options = chart.options.scales.xAxes[0];
+
+ options.time.max = '2050';
+ chart.update();
+
+ var start = scale.left;
+ var slice = scale.width / 5;
+
+ expect(scale.getPixelForValue('2017')).toBeCloseToPixel(start + slice * 5);
+ expect(scale.getPixelForValue('2042')).toBeCloseToPixel(start + slice);
+ });
+
+ it ('should reverse the labels and should add steps before and after if scale.min/max are outside the data range', function() {
+ var chart = this.chart;
+ var scale = chart.scales.x;
+ var options = chart.options.scales.xAxes[0];
+
+ options.time.min = '2012';
+ options.time.max = '2050';
+ chart.update();
+
+ var start = scale.left;
+ var slice = scale.width / 6;
+
+ expect(scale.getPixelForValue('2017')).toBeCloseToPixel(start + slice * 5);
+ expect(scale.getPixelForValue('2042')).toBeCloseToPixel(start + slice);
+ });
+ });
+ describe('is "linear"', function() {
+ beforeEach(function() {
+ this.chart = window.acquireChart({
+ type: 'line',
+ data: {
+ labels: ['2017', '2019', '2020', '2025', '2042'],
+ datasets: [{data: [0, 1, 2, 3, 4, 5]}]
+ },
+ options: {
+ scales: {
+ xAxes: [{
+ id: 'x',
+ type: 'time',
+ time: {
+ parser: 'YYYY'
+ },
+ distribution: 'linear',
+ ticks: {
+ source: 'labels',
+ reverse: true
+ }
+ }],
+ yAxes: [{
+ display: false
+ }]
+ }
+ }
+ });
+ });
+
+ it ('should reverse the labels and should space data out with a gap relative to their time values', function() {
+ var scale = this.chart.scales.x;
+ var start = scale.left;
+ var slice = scale.width / (2042 - 2017);
+
+ expect(scale.getPixelForValue('2017')).toBeCloseToPixel(start + slice * (2042 - 2017));
+ expect(scale.getPixelForValue('2019')).toBeCloseToPixel(start + slice * (2042 - 2019));
+ expect(scale.getPixelForValue('2020')).toBeCloseToPixel(start + slice * (2042 - 2020));
+ expect(scale.getPixelForValue('2025')).toBeCloseToPixel(start + slice * (2042 - 2025));
+ expect(scale.getPixelForValue('2042')).toBeCloseToPixel(start);
+ });
+
+ it ('should reverse the labels and should take in account scale min and max if outside the ticks range', function() {
+ var chart = this.chart;
+ var scale = chart.scales.x;
+ var options = chart.options.scales.xAxes[0];
+
+ options.time.min = '2012';
+ options.time.max = '2050';
+ chart.update();
+
+ var start = scale.left;
+ var slice = scale.width / (2050 - 2012);
+
+ expect(scale.getPixelForValue('2017')).toBeCloseToPixel(start + slice * (2050 - 2017));
+ expect(scale.getPixelForValue('2019')).toBeCloseToPixel(start + slice * (2050 - 2019));
+ expect(scale.getPixelForValue('2020')).toBeCloseToPixel(start + slice * (2050 - 2020));
+ expect(scale.getPixelForValue('2025')).toBeCloseToPixel(start + slice * (2050 - 2025));
+ expect(scale.getPixelForValue('2042')).toBeCloseToPixel(start + slice * (2050 - 2042));
+ });
+ });
+ });
}); | true |
Other | chartjs | Chart.js | c8ce3d2018244657f18f7bae2fd2fcf1fe825e8f.json | Add support for typed arrays (#5905) | src/helpers/helpers.core.js | @@ -32,13 +32,20 @@ var helpers = {
},
/**
- * Returns true if `value` is an array, else returns false.
+ * Returns true if `value` is an array (including typed arrays), else returns false.
* @param {*} value - The value to test.
* @returns {Boolean}
* @function
*/
- isArray: Array.isArray ? Array.isArray : function(value) {
- return Object.prototype.toString.call(value) === '[object Array]';
+ isArray: function(value) {
+ if (Array.isArray && Array.isArray(value)) {
+ return true;
+ }
+ var type = Object.prototype.toString.call(value);
+ if (type.substr(0, 7) === '[object' && type.substr(-6) === 'Array]') {
+ return true;
+ }
+ return false;
},
/** | true |
Other | chartjs | Chart.js | c8ce3d2018244657f18f7bae2fd2fcf1fe825e8f.json | Add support for typed arrays (#5905) | test/.eslintrc.yml | @@ -1,4 +1,8 @@
+parserOptions:
+ ecmaVersion: 5 # don't rely on default, since its changed by env: es6
+
env:
+ es6: true # also changes default ecmaVersion to 6
jasmine: true
globals: | true |
Other | chartjs | Chart.js | c8ce3d2018244657f18f7bae2fd2fcf1fe825e8f.json | Add support for typed arrays (#5905) | test/specs/helpers.core.tests.js | @@ -21,6 +21,15 @@ describe('Chart.helpers.core', function() {
expect(helpers.isArray([42])).toBeTruthy();
expect(helpers.isArray(new Array())).toBeTruthy();
expect(helpers.isArray(Array.prototype)).toBeTruthy();
+ expect(helpers.isArray(new Int8Array(2))).toBeTruthy();
+ expect(helpers.isArray(new Uint8Array())).toBeTruthy();
+ expect(helpers.isArray(new Uint8ClampedArray([128, 244]))).toBeTruthy();
+ expect(helpers.isArray(new Int16Array())).toBeTruthy();
+ expect(helpers.isArray(new Uint16Array())).toBeTruthy();
+ expect(helpers.isArray(new Int32Array())).toBeTruthy();
+ expect(helpers.isArray(new Uint32Array())).toBeTruthy();
+ expect(helpers.isArray(new Float32Array([1.2]))).toBeTruthy();
+ expect(helpers.isArray(new Float64Array([]))).toBeTruthy();
});
it('should return false if value is not an array', function() {
expect(helpers.isArray()).toBeFalsy(); | true |
Other | chartjs | Chart.js | 52b9793ba0c5155e599b5e03e1d66638ad68de04.json | Use HTTPS instead of HTTP for URLs supporting it | .editorconfig | @@ -1,4 +1,4 @@
-# http://editorconfig.org
+# https://editorconfig.org
root = true
[*] | true |
Other | chartjs | Chart.js | 52b9793ba0c5155e599b5e03e1d66638ad68de04.json | Use HTTPS instead of HTTP for URLs supporting it | .github/ISSUE_TEMPLATE.md | @@ -4,8 +4,8 @@ Please consider the following before submitting an issue:
- Ask questions and get support on StackOverflow: https://stackoverflow.com/questions/tagged/chart.js
- DO NOT create issues for questions or support requests.
- Issues are reserved for BUG reports and FEATURE requests.
-- Most features should start as plugins outside of Chart.js (http://www.chartjs.org/docs/#advanced-usage-creating-plugins).
-- Bug reports MUST be submitted with an interactive example (http://codepen.io/pen?template=JXVYzq).
+- Most features should start as plugins outside of Chart.js (https://www.chartjs.org/docs/#advanced-usage-creating-plugins).
+- Bug reports MUST be submitted with an interactive example (https://codepen.io/pen?template=JXVYzq).
- Chart.js 1.x is NOT supported anymore, new issues will be disregarded.
-->
| true |
Other | chartjs | Chart.js | 52b9793ba0c5155e599b5e03e1d66638ad68de04.json | Use HTTPS instead of HTTP for URLs supporting it | .github/PULL_REQUEST_TEMPLATE.md | @@ -4,8 +4,8 @@ Please consider the following before submitting a pull request:
Guidelines for contributing: https://github.com/chartjs/Chart.js/blob/master/docs/developers/contributing.md
Example of changes on an interactive website such as the following:
-- http://jsbin.com/
-- http://jsfiddle.net/
-- http://codepen.io/pen/
-- Premade template: http://codepen.io/pen?template=JXVYzq
+- https://jsbin.com/
+- https://jsfiddle.net/
+- https://codepen.io/pen/
+- Premade template: https://codepen.io/pen?template=JXVYzq
--> | true |
Other | chartjs | Chart.js | 52b9793ba0c5155e599b5e03e1d66638ad68de04.json | Use HTTPS instead of HTTP for URLs supporting it | MAINTAINING.md | @@ -5,7 +5,7 @@ Chart.js relies on [Travis CI](https://travis-ci.org/) to automate the library [
### Releasing a New Version
1. draft release notes on [GitHub](https://github.com/chartjs/Chart.js/releases/new) for the upcoming tag
-1. update `master` `package.json` version using [semver](http://semver.org/) semantic
+1. update `master` `package.json` version using [semver](https://semver.org/) semantic
1. merge `master` into the `release` branch
1. follow the build process on [Travis CI](https://travis-ci.org/chartjs/Chart.js)
| true |
Other | chartjs | Chart.js | 52b9793ba0c5155e599b5e03e1d66638ad68de04.json | Use HTTPS instead of HTTP for URLs supporting it | README.md | @@ -2,7 +2,7 @@
[](https://travis-ci.org/chartjs/Chart.js) [](https://coveralls.io/github/chartjs/Chart.js?branch=master) [](https://codeclimate.com/github/chartjs/Chart.js) [](https://chartjs-slack.herokuapp.com/)
-*Simple HTML5 Charts using the canvas element* [chartjs.org](http://www.chartjs.org)
+*Simple HTML5 Charts using the canvas element* [chartjs.org](https://www.chartjs.org)
## Installation
@@ -28,7 +28,7 @@ Files:
* `dist/Chart.js`
* `dist/Chart.min.js`
-The stand-alone build includes Chart.js as well as the color parsing library. If this version is used, you are required to include [Moment.js](http://momentjs.com/) before Chart.js for the functionality of the time axis.
+The stand-alone build includes Chart.js as well as the color parsing library. If this version is used, you are required to include [Moment.js](https://momentjs.com/) before Chart.js for the functionality of the time axis.
#### Bundled Build
Files:
@@ -39,11 +39,11 @@ The bundled build includes Moment.js in a single file. You should use this versi
## Documentation
-You can find documentation at [www.chartjs.org/docs](http://www.chartjs.org/docs). The markdown files that build the site are available under `/docs`. Previous version documentation is available at [www.chartjs.org/docs/latest/developers/#previous-versions](http://www.chartjs.org/docs/latest/developers/#previous-versions).
+You can find documentation at [www.chartjs.org/docs](https://www.chartjs.org/docs). The markdown files that build the site are available under `/docs`. Previous version documentation is available at [www.chartjs.org/docs/latest/developers/#previous-versions](https://www.chartjs.org/docs/latest/developers/#previous-versions).
## Contributing
-Before submitting an issue or a pull request, please take a moment to look over the [contributing guidelines](https://github.com/chartjs/Chart.js/blob/master/docs/developers/contributing.md) first. For support using Chart.js, please post questions with the [`chartjs` tag on Stack Overflow](http://stackoverflow.com/questions/tagged/chartjs).
+Before submitting an issue or a pull request, please take a moment to look over the [contributing guidelines](https://github.com/chartjs/Chart.js/blob/master/docs/developers/contributing.md) first. For support using Chart.js, please post questions with the [`chartjs` tag on Stack Overflow](https://stackoverflow.com/questions/tagged/chartjs).
## Building
Instructions on building and testing Chart.js can be found in [the documentation](https://github.com/chartjs/Chart.js/blob/master/docs/developers/contributing.md#building-and-testing).
@@ -54,4 +54,4 @@ Instructions on building and testing Chart.js can be found in [the documentation
## License
-Chart.js is available under the [MIT license](http://opensource.org/licenses/MIT).
+Chart.js is available under the [MIT license](https://opensource.org/licenses/MIT). | true |
Other | chartjs | Chart.js | 52b9793ba0c5155e599b5e03e1d66638ad68de04.json | Use HTTPS instead of HTTP for URLs supporting it | composer.json | @@ -6,7 +6,7 @@
"chart",
"js"
],
- "homepage": "http://www.chartjs.org/",
+ "homepage": "https://www.chartjs.org/",
"license": "MIT",
"authors": [
{ | true |
Other | chartjs | Chart.js | 52b9793ba0c5155e599b5e03e1d66638ad68de04.json | Use HTTPS instead of HTTP for URLs supporting it | docs/developers/README.md | @@ -16,7 +16,7 @@ Latest builds are available for testing at:
- https://www.chartjs.org/dist/master/Chart.min.js
- https://www.chartjs.org/dist/master/Chart.bundle.min.js
-> Note: Development builds are currently only available via HTTP, so in order to include them in [JSFiddle](http://jsfiddle.net) or [CodePen](http://codepen.io), you need to access these tools via HTTP as well.
+> Note: Development builds are currently only available via HTTP, so in order to include them in [JSFiddle](https://jsfiddle.net) or [CodePen](https://codepen.io), you need to access these tools via HTTP as well.
**WARNING: Development builds MUST not be used for production purposes or as replacement for CDN.**
| true |
Other | chartjs | Chart.js | 52b9793ba0c5155e599b5e03e1d66638ad68de04.json | Use HTTPS instead of HTTP for URLs supporting it | samples/charts/scatter/basic.html | @@ -31,7 +31,7 @@
}
return data;
}
-
+
var scatterChartData = {
datasets: [{
label: 'My First dataset', | true |
Other | chartjs | Chart.js | 52b9793ba0c5155e599b5e03e1d66638ad68de04.json | Use HTTPS instead of HTTP for URLs supporting it | samples/index.html | @@ -16,8 +16,8 @@
<div class="chartjs-title">Samples</div>
<div class="chartjs-caption">Simple yet flexible JavaScript charting for designers & developers</div>
<div class="chartjs-links">
- <a class="btn btn-chartjs" href="http://www.chartjs.org">Website</a>
- <a class="btn btn-docs" href="http://www.chartjs.org/docs">Documentation</a>
+ <a class="btn btn-chartjs" href="https://www.chartjs.org">Website</a>
+ <a class="btn btn-docs" href="https://www.chartjs.org/docs">Documentation</a>
<a class="btn btn-gh" href="https://github.com/chartjs/Chart.js">GitHub</a>
</div>
</div> | true |
Other | chartjs | Chart.js | 52b9793ba0c5155e599b5e03e1d66638ad68de04.json | Use HTTPS instead of HTTP for URLs supporting it | src/core/core.helpers.js | @@ -405,7 +405,7 @@ module.exports = function() {
return niceFraction * Math.pow(10, exponent);
};
- // Request animation polyfill - http://www.paulirish.com/2011/requestanimationframe-for-smart-animating/
+ // Request animation polyfill - https://www.paulirish.com/2011/requestanimationframe-for-smart-animating/
helpers.requestAnimFrame = (function() {
if (typeof window === 'undefined') {
return function(callback) {
@@ -440,7 +440,7 @@ module.exports = function() {
// Scale mouse coordinates into canvas coordinates
// by following the pattern laid out by 'jerryj' in the comments of
- // http://www.html5canvastutorials.com/advanced/html5-canvas-mouse-coordinates/
+ // https://www.html5canvastutorials.com/advanced/html5-canvas-mouse-coordinates/
var paddingLeft = parseFloat(helpers.getStyle(canvas, 'padding-left'));
var paddingTop = parseFloat(helpers.getStyle(canvas, 'padding-top'));
var paddingRight = parseFloat(helpers.getStyle(canvas, 'padding-right'));
@@ -489,7 +489,7 @@ module.exports = function() {
// @param domNode : the node to check the constraint on
// @param maxStyle : the style that defines the maximum for the direction we are using (maxWidth / maxHeight)
// @param percentageProperty : property of parent to use when calculating width as a percentage
- // @see http://www.nathanaeljones.com/blog/2013/reading-max-width-cross-browser
+ // @see https://www.nathanaeljones.com/blog/2013/reading-max-width-cross-browser
function getConstraintDimension(domNode, maxStyle, percentageProperty) {
var view = document.defaultView;
var parentNode = helpers._getParentNode(domNode); | true |
Other | chartjs | Chart.js | 52b9793ba0c5155e599b5e03e1d66638ad68de04.json | Use HTTPS instead of HTTP for URLs supporting it | src/helpers/helpers.core.js | @@ -128,7 +128,7 @@ var helpers = {
/**
* Returns true if the `a0` and `a1` arrays have the same content, else returns false.
- * @see http://stackoverflow.com/a/14853974
+ * @see https://stackoverflow.com/a/14853974
* @param {Array} a0 - The array to compare
* @param {Array} a1 - The array to compare
* @returns {Boolean} | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.