如何在画布js图表中隐藏自动生成的日期时间x轴标签

时间:2016-07-29 06:26:01

标签: jquery canvas

axisX: {
    title: "History",
    valueFormatString: "MM/DD/YY",
    intervalType: "month",
    gridThickness: GridThickness,
    titleFontSize: 8,
    labelFontSize: 8,
},

1 个答案:

答案 0 :(得分:0)

valueFormatString属性设置为空字符串。 Docs are here

axisX: {
    title: "History",
    valueFormatString: "MM/DD/YY",
    intervalType: "month",
    gridThickness: GridThickness,
    titleFontSize: 8,
    labelFontSize: 8,
    valueFormatString: " ", // x axis label will be empty
},