javascript - Accessing hAxis ticks on Google Timeline Chart -


i'm trying set custom date formatting on google timeline chart. have working examples other chart types , documentation, not seem work timelines.

                        (var = 0, len = container.clientwidth / 90; <= len; i++) {                             var realdate = start + (end - start) * / len;                             ticks.push({                                 v: new date(realdate * 1000),                                 f: moment.unix(realdate).format(formatstr)                             });                         }                          chart.draw(datatable, {                             haxis: {                                 minvalue: st,                                 maxvalue: en,                                 ticks: ticks                             },                         }); 

the not working part seems

                            ticks.push({                                 v: new date(realdate * 1000),                                 f: moment.unix(realdate).format(formatstr)                             }); 


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -