```html
canvas {
mozuserselect: none;
webkituserselect: none;
msuserselect: none;
}
const ctx = document.getElementById('bitcoinChart').getContext('2d');
const bitcoinChart = new Chart(ctx, {
type: 'candlestick',
data: {
datasets: [{
label: '比特币日K线图',
data: [
{ t: '20210101', o: 29000, h: 33000, l: 28000, c: 32000 },
{ t: '20210102', o: 32000, h: 34000, l: 31000, c: 33000 },
{ t: '20210103', o: 33000, h: 35000, l: 32000, c: 34000 },
// 更多K线数据...
],
}]
},
options: {
scales: {
x: {
type: 'time',
time: {
unit: 'day'
}
}
}
}
});