Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
无论数据系列是否包含 x 轴值,我都希望页面上的所有图表都有一个一致的 x 轴。
我试图在选项中指定刻度,但这似乎不起作用谢谢
var options = {xaxis: { mode: "time", timeformat: "%m/%d/%y" }, ticks: [[1343692800000, "7/31/2012"], [1346371200000, "8/31/2012"], [1375228800000, "7/31/2013"]] };
使用轴最小值和最大值选项。阅读文档的自定义轴部分以获取更多信息。