I noticed that some TGraph canvases are failing to draw properly when I updated my JSROOT version. The x axis limits are not automatically set to the correct range. If I do "unzoom" on the frame it fixes the drawing.
Drawn:

Expected:

I did a git bisect and it looks like the behaviour was changed in commit 435c3aea629f5912830eeffe57c8935638b67804. The reason seems to be that createHistogram() used to always be called with set_x and set_y as True, which is no longer the case.
It seems like when the TGraph object is loaded, it creates the fHistogram object, but it doesn't set the correct axis limits. Since the object exists, jsroot does not try to create a new histogram, or set axis limits.
When I load the object in ROOT, the TH1F associated with the TGraph has the correct limits.
I noticed that some TGraph canvases are failing to draw properly when I updated my JSROOT version. The x axis limits are not automatically set to the correct range. If I do "unzoom" on the frame it fixes the drawing.
Drawn:

Expected:

I did a
git bisectand it looks like the behaviour was changed in commit435c3aea629f5912830eeffe57c8935638b67804. The reason seems to be thatcreateHistogram()used to always be called withset_xandset_yas True, which is no longer the case.It seems like when the
TGraphobject is loaded, it creates thefHistogramobject, but it doesn't set the correct axis limits. Since the object exists, jsroot does not try to create a new histogram, or set axis limits.When I load the object in ROOT, the
TH1Fassociated with theTGraphhas the correct limits.