Hi, I've done some tricks to do this ...
in the query I converted hh: mm: ss to a number (because string does not write points in the graph):
...
| chart max(epoch_time) as max_time by date
| eval max_time = tonumber(strftime(max_time, "%H%M%S"))
into html dashboard, after render() my chartElement (or chartView)
element4.on("rendered", function () {
$($("#element4 tspan")).each(function () {
console.log("element4 : " + $(this).text());
var rex = new RegExp("[0-9]{0,3},[0-9]{3}");
if (rex.test($(this).text())) {
var hhnum = $(this).text().replace(",", "");
var hhzeros = String("000000" + horanumeral).slice(-6);
var hhfinal = (horacomzeros).substr(0, 2) + ":" + (horacomzeros).substr(2, 2)
$(this).text(hhfinal);
} else if ($(this).text() < 1000) {
var hhzeros = String("000000" + horanumeral).slice(-6);
var hhfinal = (horacomzeros).substr(0, 2) + ":" + (horacomzeros).substr(2, 2)
$(this).text(hhfinal);
};
});
});
This code needs some refactoring, but this was my first successful case
... View more