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',
56 drawAxesAtZero
: false,
58 // Sizes of the various chart labels.
63 axisLineColor
: "black",
67 gridLineColor
: "rgb(128,128,128)",
69 interactionModel
: DygraphInteraction
.defaultModel
,
70 animatedZooms
: false, // (for now)
72 // Range selector options
73 showRangeSelector
: false,
74 rangeSelectorHeight
: 40,
75 rangeSelectorPlotStrokeColor
: "#808FAB",
76 rangeSelectorPlotFillGradientColor
: "white",
77 rangeSelectorPlotFillColor
: "#A7B1C4",
78 rangeSelectorBackgroundStrokeColor
: "gray",
79 rangeSelectorBackgroundLineWidth
: 1,
80 rangeSelectorPlotLineWidth
:1.5,
81 rangeSelectorForegroundStrokeColor
: "black",
82 rangeSelectorForegroundLineWidth
: 1,
83 rangeSelectorAlpha
: 0.6,
84 showInRangeSelector
: null,
86 // The ordering here ensures that central lines always appear above any
87 // fill bars/error bars
.
89 DygraphCanvasRenderer
._fillPlotter
,
90 DygraphCanvasRenderer
._errorPlotter
,
91 DygraphCanvasRenderer
._linePlotter
101 axisLabelFormatter
: utils
.dateAxisLabelFormatter
,
102 valueFormatter
: utils
.dateValueFormatter
,
105 independentTicks
: true,
106 ticker
: DygraphTickers
.dateTicker
111 valueFormatter
: utils
.numberValueFormatter
,
112 axisLabelFormatter
: utils
.numberAxisLabelFormatter
,
115 independentTicks
: true,
116 ticker
: DygraphTickers
.numericTicks
121 valueFormatter
: utils
.numberValueFormatter
,
122 axisLabelFormatter
: utils
.numberAxisLabelFormatter
,
123 drawAxis
: true, // only applies when there are two axes of data.
125 independentTicks
: false,
126 ticker
: DygraphTickers
.numericTicks
131 export default DEFAULT_ATTRS
;