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,
16 // TODO(danvk): move defaults from createStatusMessage_ here.
18 labelsSeparateLines
: false,
19 labelsShowZeroValues
: true,
22 showLabelsOnHighlight
: true,
24 digitsAfterDecimal
: 2,
30 strokeBorderColor
: "white",
33 axisLabelFontSize
: 14,
37 xValueParser
: undefined
,
44 wilsonInterval
: true, // only relevant if fractions is true
48 connectSeparatedPoints
: false,
51 stackedGraphNaNFill
: 'all',
52 hideOverlayOnMouseOut
: true,
54 legend
: 'onmouseover',
59 drawAxesAtZero
: false,
61 // Sizes of the various chart labels.
66 axisLineColor
: "black",
69 axisLabelColor
: "black",
71 gridLineColor
: "rgb(128,128,128)",
73 interactionModel
: DygraphInteraction
.defaultModel
,
74 animatedZooms
: false, // (for now)
76 // Range selector options
77 showRangeSelector
: false,
78 rangeSelectorHeight
: 40,
79 rangeSelectorPlotStrokeColor
: "#808FAB",
80 rangeSelectorPlotFillGradientColor
: "white",
81 rangeSelectorPlotFillColor
: "#A7B1C4",
82 rangeSelectorBackgroundStrokeColor
: "gray",
83 rangeSelectorBackgroundLineWidth
: 1,
84 rangeSelectorPlotLineWidth
:1.5,
85 rangeSelectorForegroundStrokeColor
: "black",
86 rangeSelectorForegroundLineWidth
: 1,
87 rangeSelectorAlpha
: 0.6,
88 showInRangeSelector
: null,
90 // The ordering here ensures that central lines always appear above any
91 // fill bars/error bars
.
93 DygraphCanvasRenderer
._fillPlotter
,
94 DygraphCanvasRenderer
._errorPlotter
,
95 DygraphCanvasRenderer
._linePlotter
105 axisLabelFormatter
: utils
.dateAxisLabelFormatter
,
106 valueFormatter
: utils
.dateValueFormatter
,
109 independentTicks
: true,
110 ticker
: DygraphTickers
.dateTicker
115 valueFormatter
: utils
.numberValueFormatter
,
116 axisLabelFormatter
: utils
.numberAxisLabelFormatter
,
119 independentTicks
: true,
120 ticker
: DygraphTickers
.numericTicks
125 valueFormatter
: utils
.numberValueFormatter
,
126 axisLabelFormatter
: utils
.numberAxisLabelFormatter
,
127 drawAxis
: true, // only applies when there are two axes of data.
129 independentTicks
: false,
130 ticker
: DygraphTickers
.numericTicks
135 export default DEFAULT_ATTRS
;