height: 320,
showRangeSelector: true,
rangeSelectorHeight: 30,
- rangeSelectorBGStrokeColor: 'blue',
- rangeSelectorBGLineWidth: 3,
+ rangeSelectorBackgroundStrokeColor: 'blue',
+ rangeSelectorBackgroundLineWidth: 3,
rangeSelectorPlotLineWidth: 0.5,
- rangeSelectorFGStrokeColor: 'red',
- rangeSelectorFGLineWidth: 2,
+ rangeSelectorForegroundStrokeColor: 'red',
+ rangeSelectorForegroundLineWidth: 2,
rangeSelectorAlpha: 0.8,
labels: ['X', 'Y']
};
"type": "string",
"description": "The top color for the range selector mini plot fill color gradient. This can be of the form \"#AABBCC\" or \"rgb(255,100,200)\" or \"rgba(255,100,200,42)\" or \"yellow\". You can also specify null or \"\" to disable the gradient and fill with one single color."
},
- "rangeSelectorBGStrokeColor": {
+ "rangeSelectorBackgroundStrokeColor": {
"default": "gray",
"labels": ["Interactive Elements"],
"type": "string",
"description": "The color of the lines below and on both sides of the range selector mini plot. This can be of the form \"#AABBCC\" or \"rgb(255,100,200)\" or \"yellow\"."
},
- "rangeSelectorBGLineWidth": {
+ "rangeSelectorBackgroundLineWidth": {
"default": "1",
"labels": ["Interactive Elements"],
"type": "float",
"type": "float",
"description": "The width of the range selector mini plot line."
},
- "rangeSelectorFGStrokeColor": {
+ "rangeSelectorForegroundStrokeColor": {
"default": "black",
"labels": ["Interactive Elements"],
"type": "string",
"description": "The color of the lines in the interactive layer of the range selector. This can be of the form \"#AABBCC\" or \"rgb(255,100,200)\" or \"yellow\"."
},
- "rangeSelectorFGLineWidth": {
+ "rangeSelectorForegroundLineWidth": {
"default": "1",
"labels": ["Interactive Elements"],
"type": "float",
'rangeSelectorPlotFillColor': true,
'rangeSelectorPlotFillGradientColor': true,
'rangeSelectorPlotStrokeColor': true,
- 'rangeSelectorBGStrokeColor': true,
- 'rangeSelectorBGLineWidth': true,
+ 'rangeSelectorBackgroundStrokeColor': true,
+ 'rangeSelectorBackgroundLineWidth': true,
'rangeSelectorPlotLineWidth': true,
- 'rangeSelectorFGStrokeColor': true,
- 'rangeSelectorFGLineWidth': true,
+ 'rangeSelectorForegroundStrokeColor': true,
+ 'rangeSelectorForegroundLineWidth': true,
'rangeSelectorAlpha': true,
'showLabelsOnHighlight': true,
'showRoller': true,
rangeSelectorPlotStrokeColor: "#808FAB",
rangeSelectorPlotFillGradientColor: "white",
rangeSelectorPlotFillColor: "#A7B1C4",
- rangeSelectorBGStrokeColor: "gray",
- rangeSelectorBGLineWidth: 1,
+ rangeSelectorBackgroundStrokeColor: "gray",
+ rangeSelectorBackgroundLineWidth: 1,
rangeSelectorPlotLineWidth:1.5,
- rangeSelectorFGStrokeColor: "black",
- rangeSelectorFGLineWidth: 1,
+ rangeSelectorForegroundStrokeColor: "black",
+ rangeSelectorForegroundLineWidth: 1,
rangeSelectorAlpha: 0.6,
showInRangeSelector: null,
}
var margin = 0.5;
- this.bgcanvas_ctx_.lineWidth = this.getOption_('rangeSelectorBGLineWidth');
- ctx.strokeStyle = this.getOption_('rangeSelectorBGStrokeColor');
+ this.bgcanvas_ctx_.lineWidth = this.getOption_('rangeSelectorBackgroundLineWidth');
+ ctx.strokeStyle = this.getOption_('rangeSelectorBackgroundStrokeColor');
ctx.beginPath();
ctx.moveTo(margin, margin);
ctx.lineTo(margin, this.canvasRect_.h-margin);
var height = this.canvasRect_.h - margin;
var zoomHandleStatus = this.getZoomHandleStatus_();
- ctx.strokeStyle = this.getOption_('rangeSelectorFGStrokeColor');
- ctx.lineWidth = this.getOption_('rangeSelectorFGLineWidth');
+ ctx.strokeStyle = this.getOption_('rangeSelectorForegroundStrokeColor');
+ ctx.lineWidth = this.getOption_('rangeSelectorForegroundLineWidth');
if (!zoomHandleStatus.isZoomed) {
ctx.beginPath();
ctx.moveTo(margin, margin);