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
When creating a chart with a slider, the chart is not displayed in a number of cases until the position of the slider is changed. I think this is due to the creation of two objects of Chart class within the same context (lines 3 and 29 of RangeSlider-core.js):
chartProto: newChart(opts.chartCTX),
ranger.chart=newChart(ctx,{
As far as I understand, the first object is created only in order to update width of the corresponding canvas element for the slider element to occupy the corresponding space. If this is the case, then the first Chart is not necessary to create, but instead move line 89 a little back before editing of css:
When creating a chart with a slider, the chart is not displayed in a number of cases until the position of the slider is changed. I think this is due to the creation of two objects of Chart class within the same context (lines 3 and 29 of RangeSlider-core.js):
As far as I understand, the first object is created only in order to update width of the corresponding canvas element for the slider element to occupy the corresponding space. If this is the case, then the first Chart is not necessary to create, but instead move line 89 a little back before editing of css:
In this case width of appropriate canvas element would be properly updated, so the width of the slider element will be the same as it was intended.
![no-chart](https://user-images.githubusercontent.com/7287782/33988537-ae8e2dd2-e0d5-11e7-9aaa-e721d9c9e767.png)
The text was updated successfully, but these errors were encountered: