Skip to content

Commit 8d4078f

Browse files
committed
Fixed dark theme style and zoom features
1 parent b7a1431 commit 8d4078f

File tree

2 files changed

+204367
-204361
lines changed

2 files changed

+204367
-204361
lines changed

appserver/static/visualizations/ohlc/src/visualization_source.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ define([
195195
paper_bgcolor: isDarkTheme ? "transparent" : "#fff",
196196
plot_bgcolor: isDarkTheme ? "transparent" : "#fff",
197197
font: {
198-
color: isDarkTheme ? '#F0F0F0' : '#000',
198+
color: isDarkTheme ? '#DCDCDC' : '#444',
199199
},
200200
showlegend: dispLegend,
201201
// https://plot.ly/javascript/reference/#layout-legend
@@ -210,10 +210,12 @@ define([
210210
rangeslider: {
211211
visible: rSlider
212212
},
213+
gridcolor: isDarkTheme ? "#A6A6A6" : "#eee",
213214
type: 'date'
214215
},
215216
yaxis: {
216217
autorange: true,
218+
gridcolor: isDarkTheme ? "#A6A6A6" : "#eee",
217219
tickangle: yTickAngle,
218220
title: yAxisLabel
219221
}
@@ -226,7 +228,7 @@ define([
226228
displayModeBar: modeBar,
227229
displaylogo: false,
228230
// https://github.com/plotly/plotly.js/blob/master/src/components/modebar/buttons.js
229-
modeBarButtonsToRemove: ['pan2d', 'select2d', 'lasso2d', 'zoomIn2d', 'zoomOut2d', 'resetScale2d'],
231+
modeBarButtonsToRemove: ['select2d', 'lasso2d'],
230232
});
231233

232234
},

0 commit comments

Comments
 (0)