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
Post a Comment