3 import * as DygraphTickers from
'./dygraph-tickers';
4 import DygraphInteraction from
'./dygraph-interaction-model';
5 import DygraphCanvasRenderer from
'./dygraph-canvas';
6 import * as utils from
'./dygraph-utils';
8 // Default attribute values.
10 highlightCircleSize
: 3,
11 highlightSeriesOpts
: null,
12 highlightSeriesBackgroundAlpha
: 0.5,
13 highlightSeriesBackgroundColor
: 'rgb(255, 255, 255)',
17 // TODO(danvk): move defaults from createStatusMessage_ here.
19 labelsSeparateLines
: false,
20 labelsShowZeroValues
: true,
23 showLabelsOnHighlight
: true,
25 digitsAfterDecimal
: 2,
31 strokeBorderColor
: "white",
34 axisLabelFontSize
: 14,
38 xValueParser
: undefined
,
45 wilsonInterval
: true, // only relevant if fractions is true
49 connectSeparatedPoints
: false,
52 stackedGraphNaNFill
: 'all',
53 hideOverlayOnMouseOut
: true,
55 legend
: 'onmouseover',
60 drawAxesAtZero
: false,
62 // Sizes of the various chart labels.
67 axisLineColor
: "black",
70 axisLabelColor
: "black",
72 gridLineColor
: "rgb(128,128,128)",
74 interactionModel
: DygraphInteraction
.defaultModel
,
75 animatedZooms
: false, // (for now)
77 // Range selector options
78 showRangeSelector
: false,
79 rangeSelectorHeight
: 40,
80 rangeSelectorPlotStrokeColor
: "#808FAB",
81 rangeSelectorPlotFillGradientColor
: "white",
82 rangeSelectorPlotFillColor
: "#A7B1C4",
83 rangeSelectorBackgroundStrokeColor
: "gray",
84 rangeSelectorBackgroundLineWidth
: 1,
85 rangeSelectorPlotLineWidth
:1.5,
86 rangeSelectorForegroundStrokeColor
: "black",
87 rangeSelectorForegroundLineWidth
: 1,
88 rangeSelectorAlpha
: 0.6,
89 showInRangeSelector
: null,
91 // The ordering here ensures that central lines always appear above any
92 // fill bars/error bars
.
94 DygraphCanvasRenderer
._fillPlotter
,
95 DygraphCanvasRenderer
._errorPlotter
,
96 DygraphCanvasRenderer
._linePlotter
106 axisLabelFormatter
: utils
.dateAxisLabelFormatter
,
107 valueFormatter
: utils
.dateValueFormatter
,
110 independentTicks
: true,
111 ticker
: DygraphTickers
.dateTicker
116 valueFormatter
: utils
.numberValueFormatter
,
117 axisLabelFormatter
: utils
.numberAxisLabelFormatter
,
120 independentTicks
: true,
121 ticker
: DygraphTickers
.numericTicks
126 valueFormatter
: utils
.numberValueFormatter
,
127 axisLabelFormatter
: utils
.numberAxisLabelFormatter
,
128 drawAxis
: true, // only applies when there are two axes of data.
130 independentTicks
: false,
131 ticker
: DygraphTickers
.numericTicks
136 export default DEFAULT_ATTRS
;