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)',
15 labelsSeparateLines
: false,
16 labelsShowZeroValues
: true,
19 showLabelsOnHighlight
: true,
21 digitsAfterDecimal
: 2,
27 strokeBorderColor
: "white",
30 axisLabelFontSize
: 14,
34 xValueParser
: undefined
,
41 wilsonInterval
: true, // only relevant if fractions is true
45 connectSeparatedPoints
: false,
48 stackedGraphNaNFill
: 'all',
49 hideOverlayOnMouseOut
: true,
51 legend
: 'onmouseover',
55 drawAxesAtZero
: false,
57 // Sizes of the various chart labels.
62 axisLineColor
: "black",
66 gridLineColor
: "rgb(128,128,128)",
68 interactionModel
: DygraphInteraction
.defaultModel
,
69 animatedZooms
: false, // (for now)
71 // Range selector options
72 showRangeSelector
: false,
73 rangeSelectorHeight
: 40,
74 rangeSelectorPlotStrokeColor
: "#808FAB",
75 rangeSelectorPlotFillGradientColor
: "white",
76 rangeSelectorPlotFillColor
: "#A7B1C4",
77 rangeSelectorBackgroundStrokeColor
: "gray",
78 rangeSelectorBackgroundLineWidth
: 1,
79 rangeSelectorPlotLineWidth
:1.5,
80 rangeSelectorForegroundStrokeColor
: "black",
81 rangeSelectorForegroundLineWidth
: 1,
82 rangeSelectorAlpha
: 0.6,
83 showInRangeSelector
: null,
85 // The ordering here ensures that central lines always appear above any
86 // fill bars/error bars
.
88 DygraphCanvasRenderer
._fillPlotter
,
89 DygraphCanvasRenderer
._errorPlotter
,
90 DygraphCanvasRenderer
._linePlotter
100 axisLabelFormatter
: utils
.dateAxisLabelFormatter
,
101 valueFormatter
: utils
.dateValueFormatter
,
104 independentTicks
: true,
105 ticker
: DygraphTickers
.dateTicker
110 valueFormatter
: utils
.numberValueFormatter
,
111 axisLabelFormatter
: utils
.numberAxisLabelFormatter
,
114 independentTicks
: true,
115 ticker
: DygraphTickers
.numericTicks
120 valueFormatter
: utils
.numberValueFormatter
,
121 axisLabelFormatter
: utils
.numberAxisLabelFormatter
,
122 drawAxis
: true, // only applies when there are two axes of data.
124 independentTicks
: false,
125 ticker
: DygraphTickers
.numericTicks
130 export default DEFAULT_ATTRS
;