mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-09 05:39:06 +02:00
35 lines
454 B
JavaScript
35 lines
454 B
JavaScript
|
module.exports = {
|
||
|
config: {
|
||
|
type: 'bar',
|
||
|
data: {
|
||
|
labels: [0, 1, 2, 3, 4],
|
||
|
datasets: [
|
||
|
{
|
||
|
data: [0, -0.01, 0.01, 30, -30],
|
||
|
backgroundColor: '#00ff00',
|
||
|
borderWidth: 0,
|
||
|
minBarLength: 20
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
options: {
|
||
|
legend: false,
|
||
|
title: false,
|
||
|
scales: {
|
||
|
x: {display: false},
|
||
|
y: {
|
||
|
ticks: {
|
||
|
display: false
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
options: {
|
||
|
canvas: {
|
||
|
height: 512,
|
||
|
width: 512
|
||
|
}
|
||
|
}
|
||
|
};
|