Skip to content

Commit ef64e20

Browse files
committed
move RangeSelector.draw to just after Legend.draw
1 parent f25213d commit ef64e20

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/plot_api/plot_api.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ Plotly.plot = function(gd, data, layout, config) {
179179
var i, cd, trace;
180180

181181
Legend.draw(gd);
182+
RangeSelector.draw(gd);
182183

183184
for(i = 0; i < calcdata.length; i++) {
184185
cd = calcdata[i];
@@ -243,11 +244,6 @@ Plotly.plot = function(gd, data, layout, config) {
243244
}
244245

245246
function drawAxes() {
246-
247-
// TODO is there a better place for this???
248-
RangeSelector.draw(gd);
249-
250-
251247
// draw ticks, titles, and calculate axis scaling (._b, ._m)
252248
RangeSlider.draw(gd);
253249
return Plotly.Axes.doTicks(gd, 'redraw');
@@ -313,6 +309,7 @@ Plotly.plot = function(gd, data, layout, config) {
313309
Shapes.drawAll(gd);
314310
Plotly.Annotations.drawAll(gd);
315311
Legend.draw(gd);
312+
RangeSelector.draw(gd);
316313
}
317314

318315
function cleanUp() {

0 commit comments

Comments
 (0)