How can I center the chart?
palmy-investing opened this issue · 0 comments
palmy-investing commented
May sound stupid, but I am not sure how I can display the chart in a more centered way, because it is near the top, which looks confusing:
[https://imgur.com/a/7oVPA9G](imgur pic)
Here are my options:
options: {
plugins: {
legend: {
display: false,
},
title: {
display: true,
text: 'OHLC for {{ stock }}',
}
},
scales: {
x: {
type: 'timeseries',
time: {
unit: 'day',
},
},
y:{
beginAtZero: true, type: "linear",ticks: { count: 11, }
},
right: {
beginAtZero: true, position: 'right',
ticks: { count: 11, callback: ((value, index, ticks) => { return value * 100 + "%"; }),}
}
},
}