有没有办法让谷歌的带注释的时间线图表归零日期不在它的数据表中?
https://developers.google.com/chart/interactive/docs/gallery/annotatedtimeline
我想要
var data = new google.visualization.DataTable();
data.addColumn('date', 'Date');
data.addColumn('number', 'My Number');
data.addRows([
[new Date(2008, 1 ,1), 1,
[new Date(2008, 1 ,2), 2],
[new Date(2008, 1 ,4), 4],
[new Date(2008, 1 ,5), 5],
]);
要和一样
var data = new google.visualization.DataTable();
data.addColumn('date', 'Date');
data.addColumn('number', 'My Number');
data.addRows([
[new Date(2008, 1 ,1), 1,
[new Date(2008, 1 ,2), 2],
[new Date(2008, 1 ,3), 0],
[new Date(2008, 1 ,4), 4],
[new Date(2008, 1 ,5), 5],
]);