mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Revert fix for monotone cubic interpolation (#11432)
This commit is contained in:
parent
ef5fa53946
commit
a102ca515b
@ -57,7 +57,7 @@ export default class LineController extends DatasetController {
|
||||
line._chart = this.chart;
|
||||
line._datasetIndex = this.index;
|
||||
line._decimated = !!_dataset._decimated;
|
||||
line.points = points.slice(Math.max(this._drawStart - 1, 0), this._drawStart + this._drawCount);
|
||||
line.points = points;
|
||||
|
||||
const options = this.resolveDatasetElementOptions(mode);
|
||||
if (!this.options.showLine) {
|
||||
|
||||
@ -1,35 +0,0 @@
|
||||
module.exports = {
|
||||
config: {
|
||||
type: 'line',
|
||||
data: {
|
||||
datasets: [
|
||||
{
|
||||
data: [
|
||||
{x: -10, y: 150},
|
||||
{x: 0, y: 81},
|
||||
{x: 10, y: 49},
|
||||
{x: 20, y: 32},
|
||||
{x: 30, y: 21},
|
||||
{x: 35, y: 1},
|
||||
{x: 40, y: 16},
|
||||
{x: 45, y: 13},
|
||||
],
|
||||
borderColor: '#ff0000',
|
||||
cubicInterpolationMode: 'monotone'
|
||||
}
|
||||
]
|
||||
},
|
||||
options: {
|
||||
scales: {
|
||||
x: {display: false, type: 'linear', min: 5, max: 37},
|
||||
y: {display: false}
|
||||
}
|
||||
}
|
||||
},
|
||||
options: {
|
||||
canvas: {
|
||||
height: 256,
|
||||
width: 512
|
||||
}
|
||||
}
|
||||
};
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 9.0 KiB |
@ -1,35 +0,0 @@
|
||||
module.exports = {
|
||||
config: {
|
||||
type: 'line',
|
||||
data: {
|
||||
datasets: [
|
||||
{
|
||||
data: [
|
||||
{x: -10, y: 150},
|
||||
{x: 0, y: 81},
|
||||
{x: 10, y: 49},
|
||||
{x: 20, y: 32},
|
||||
{x: 30, y: 21},
|
||||
{x: 35, y: 1},
|
||||
{x: 40, y: 16},
|
||||
{x: 45, y: 13},
|
||||
],
|
||||
borderColor: '#ff0000',
|
||||
cubicInterpolationMode: 'monotone'
|
||||
}
|
||||
]
|
||||
},
|
||||
options: {
|
||||
scales: {
|
||||
x: {display: false, type: 'linear', max: 30},
|
||||
y: {display: false}
|
||||
}
|
||||
}
|
||||
},
|
||||
options: {
|
||||
canvas: {
|
||||
height: 256,
|
||||
width: 512
|
||||
}
|
||||
}
|
||||
};
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 8.7 KiB |
Loading…
x
Reference in New Issue
Block a user