You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It doesn't show any chart and doesn't show any error log either in the Firefox Console. Everything is just blank.
It works on Chrome. I've noticed this after switching to Firefox as my primary browser. I'm using the latest Firefox (firefox-126.0-5.fc39.src.rpm)
Expected behavior:
For it to work I have to specify a fixed height (or document.body.clientHeight) together with autoSize, even specifying width along with autoSize doesn't work, it just requires height.
If I initialize the chart as below it works: var chart = LightweightCharts.createChart(document.body, { autoSize: true, height: 300 });
The text was updated successfully, but these errors were encountered:
It is likely that the default styles defined by the Firefox browser are different for the body element such that it is not filling the screen as you expect.
The autosize option in Lightweight Charts attempts to fill the size of the containing element, which in your example is the body element. So to fix this issue, you can define some css for the body element to be size you expect.
Lightweight Charts™ Version: 4.1.4
Steps/code to reproduce:
Actual behavior:
It doesn't show any chart and doesn't show any error log either in the Firefox Console. Everything is just blank.
It works on Chrome. I've noticed this after switching to Firefox as my primary browser. I'm using the latest Firefox (firefox-126.0-5.fc39.src.rpm)
Expected behavior:
For it to work I have to specify a fixed
height
(ordocument.body.clientHeight
) together withautoSize
, even specifyingwidth
along withautoSize
doesn't work, it just requiresheight
.If I initialize the chart as below it works:
var chart = LightweightCharts.createChart(document.body, { autoSize: true, height: 300 });
The text was updated successfully, but these errors were encountered: