mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-11 01:21:23 +03:30
54 lines
980 B
JavaScript
Vendored
54 lines
980 B
JavaScript
Vendored
import { Scatter } from '../BaseCharts';
|
|
export default {
|
|
extends: Scatter,
|
|
mounted: function mounted() {
|
|
this.renderChart({
|
|
datasets: [{
|
|
label: 'Scatter Dataset 1',
|
|
fill: false,
|
|
borderColor: '#f87979',
|
|
backgroundColor: '#f87979',
|
|
data: [{
|
|
x: -2,
|
|
y: 4
|
|
}, {
|
|
x: -1,
|
|
y: 1
|
|
}, {
|
|
x: 0,
|
|
y: 0
|
|
}, {
|
|
x: 1,
|
|
y: 1
|
|
}, {
|
|
x: 2,
|
|
y: 4
|
|
}]
|
|
}, {
|
|
label: 'Scatter Dataset 2',
|
|
fill: false,
|
|
borderColor: '#7acbf9',
|
|
backgroundColor: '#7acbf9',
|
|
data: [{
|
|
x: -2,
|
|
y: -4
|
|
}, {
|
|
x: -1,
|
|
y: -1
|
|
}, {
|
|
x: 0,
|
|
y: 1
|
|
}, {
|
|
x: 1,
|
|
y: -1
|
|
}, {
|
|
x: 2,
|
|
y: -4
|
|
}]
|
|
}]
|
|
}, {
|
|
responsive: true,
|
|
maintainAspectRatio: false
|
|
});
|
|
}
|
|
}; |