I’ve been using JSROOT to develop my own web interface, that basically sends TH1F jsons with only one value with their timestamp. Do you know how to create a TGraph (or TMultiGraph) with time series on its axis?
I tried with:
let time_list = [];
let value_list = [];
for (let n=0;n<all_files.length;n++) {
let time_secs = timestamps[n];
let the_value = all_files[n].fArray[0]
time_list.push(time_secs);
value_list.push(the_value );
}
let graph1 = JSROOT.CreateTGraph(all_files.length, time_list, value_list);
graph1 .fHistogram.fXaxis.fTimeDisplay = true
but the fHistogram appears to be null.
Do you have any insight?
Amazing! It worked!
But I had to change fMin to fXmin, and the second fMin to fXmax, otherwise the data would not appear.
I guess I have to deal with the TimeOffset “by hand” right?