Javascript chart.js根据日期添加事件注释
我已经创建了一个基本的折线图,使用的是按时间分布的值,我想添加关于在同一天发生的事件的信息 这是使用的数据集:Javascript chart.js根据日期添加事件注释,javascript,chart.js,Javascript,Chart.js,我已经创建了一个基本的折线图,使用的是按时间分布的值,我想添加关于在同一天发生的事件的信息 这是使用的数据集: return { labels: labels, datasets: [ { label: 'Kb', type: 'line', backgroundColor: '#2d627c', data: data, borderColor: '#79a6bc',
return {
labels: labels,
datasets: [
{
label: 'Kb',
type: 'line',
backgroundColor: '#2d627c',
data: data,
borderColor: '#79a6bc',
borderWidth: 1,
pointStyle: 'circle',
pointRadius: 0,
pointBorderColor: 'rgb(0, 0, 0)'
},
{
label: 'Events',
type: 'bar',
pointStyle: 'circle',
pointRadius: 10,
backgroundColor: '#f87979',
data: events,
}
]
}
你有什么建议来增加当天活动的信息吗
非常感谢