sending JSON dates to google charts API from Perl

前端 未结 3 2103
一生所求
一生所求 2021-01-12 02:59

I have a small dancer application which serves up some HTML (including the javascript to call the google charts API) and for other URLs queries a database and returns the da

3条回答
  •  情深已故
    2021-01-12 03:35

    just to clarify: you should write the cell value as a string that looks like that: Date(year, month). for your example:

    {"rows":[{"c":[{"v":"Date(year, month)"},{"v":"2095"}]}],"cols":[{"type":"datetime","label":"DTU"},{"type":"number","label":"COUNT"}]}
    

    hope that helps, and correct for you as i'm using it in php and not perl

提交回复
热议问题