How to use dates in X-axis with Google chart API?

前端 未结 5 1677
不思量自难忘°
不思量自难忘° 2021-01-31 02:52

Is there a way to plot a chart with Google chart API so that the X-axis values are days in a month?

I have data points that are not provided with the same frequency. For

5条回答
  •  忘了有多久
    2021-01-31 03:28

    This can be done with Google charts quite easily, but your application must calculate the labels

    The chxl chart x label parameter is the one you need. The following example labels a y-axis with numbers in 50 steps, and the bottom with dates

    chxl=0:|0|50|100|150|200|250|300|350|400|450|500|1:|16/01/2009|26/01/2009|6/02/2009
    

提交回复
热议问题