01 | { |
02 | data: { |
03 | dataSets: [ |
04 | { |
05 | id: "dataSet2" , |
06 | sourceUrl: "./../../csv-data/msft_daily.csv" , |
07 | csvSettings: { |
08 | ignoreFirstRow: true , |
09 | rowsSeparator: "\n" , |
10 | columnsSeparator: "," |
11 | } , |
12 | locale: { |
13 | dateTime: { |
14 | format: "%yyyy%MM%dd" |
15 | } |
16 | } |
17 | } , |
18 | { |
19 | id: "dataSet3" , |
20 | sourceUrl: "./../../csv-data/orcl_daily.csv" , |
21 | csvSettings: { |
22 | ignoreFirstRow: true , |
23 | rowsSeparator: "\n" , |
24 | columnsSeparator: "," |
25 | } , |
26 | locale: { |
27 | dateTime: { |
28 | format: "%yyyy%MM%dd" |
29 | } |
30 | } |
31 | } , |
32 | { |
33 | id: "dataSet4" , |
34 | sourceUrl: "./../../csv-data/goog_daily.csv" , |
35 | csvSettings: { |
36 | ignoreFirstRow: true , |
37 | rowsSeparator: "\n" , |
38 | columnsSeparator: "," |
39 | } , |
40 | locale: { |
41 | dateTime: { |
42 | format: "%yyyy%MM%dd" |
43 | } |
44 | } |
45 | } |
46 | ] , |
47 | dataProviders: { |
48 | generalDataProviders: [ |
49 | { |
50 | dataSet: "dataSet2" , |
51 | id: "dp2" , |
52 | fields: [ |
53 | { |
54 | type: "Close" , |
55 | column: 4 , |
56 | approximationType: "Close" |
57 | } |
58 | ] |
59 | } , |
60 | { |
61 | dataSet: "dataSet3" , |
62 | id: "dp3" , |
63 | fields: [ |
64 | { |
65 | type: "Close" , |
66 | column: 4 , |
67 | approximationType: "Close" |
68 | } |
69 | ] |
70 | } , |
71 | { |
72 | dataSet: "dataSet4" , |
73 | id: "dp4" , |
74 | fields: [ |
75 | { |
76 | type: "Close" , |
77 | column: 4 , |
78 | approximationType: "Close" |
79 | } |
80 | ] |
81 | } |
82 | ] , |
83 | scrollerDataProviders: [ |
84 | { |
85 | dataSet: "dataSet2" , |
86 | column: 4 |
87 | } |
88 | ] |
89 | } |
90 | } , |
91 | settings: { |
92 | dataGrouping: { |
93 | enabled: true , |
94 | maxVisiblePoints: 120 |
95 | } , |
96 | rangeSelector: { |
97 | enabled: true |
98 | } , |
99 | insideMargin: { |
100 | right: 55 |
101 | } , |
102 | charts: [ |
103 | { |
104 | height: 100 , |
105 | legend: { |
106 | enabled: true , |
107 | dateTime: { |
108 | enabled: false |
109 | } , |
110 | title: { |
111 | enabled: true |
112 | } , |
113 | background: { |
114 | fill: { |
115 | type: "Solid" , |
116 | color: "White" |
117 | } |
118 | } , |
119 | labels: { |
120 | fallingColor: "DarkRed" , |
121 | risingColor: "#005500" , |
122 | icon: { |
123 | type: "Circle" , |
124 | size: 6 |
125 | } , |
126 | focusSettings: { |
127 | mouseOver: { |
128 | format: "{%SeriesIcon} <b><font color=\"%Color\">{%SeriesName}</font></b> <font color=\"%ChangeColor\">{%ValueChange.Current}{plusSign:true} ({%PercentValueChange.Current}{plusSign:true}%)</font> " |
129 | } , |
130 | mouseOut: { |
131 | format: "{%SeriesIcon} <b><font color=\"%Color\">{%SeriesName}</font></b> <font color=\"%ChangeColor\">{%ValueChange.LastVisible}{plusSign:true} ({%PercentValueChange.LastVisible}{plusSign:true}%)</font> " |
132 | } |
133 | } |
134 | } |
135 | } , |
136 | seriesList: [ |
137 | { |
138 | type: "Spline" , |
139 | dataProvider: "dp2" , |
140 | color: "#DC3912" , |
141 | axis: "Secondary" , |
142 | name: "MSFT:" |
143 | } , |
144 | { |
145 | type: "Spline" , |
146 | dataProvider: "dp3" , |
147 | color: "#0066DD" , |
148 | axis: "Secondary" , |
149 | name: "ORCL:" |
150 | } , |
151 | { |
152 | type: "Spline" , |
153 | dataProvider: "dp4" , |
154 | color: "#FF9900" , |
155 | axis: "Secondary" , |
156 | name: "GOOG:" |
157 | } |
158 | ] , |
159 | seriesSettingsDefaults: { |
160 | lineSeries: { |
161 | thickness: 2 , |
162 | marker: { |
163 | states: { |
164 | normal: { |
165 | enabled: true |
166 | } |
167 | } |
168 | } |
169 | } |
170 | } , |
171 | valueAxes: { |
172 | primary: { |
173 | enabled: true , |
174 | position: "Right" , |
175 | labels: { |
176 | position: "Outside" , |
177 | padding: 3 , |
178 | valign: "Center" , |
179 | showFirst: true , |
180 | showLast: true , |
181 | format: "{%Value}{numDecimals:0}%" , |
182 | font: { |
183 | family: "Tahoma" , |
184 | size: 9 , |
185 | bold: true , |
186 | color: "#333333" |
187 | } |
188 | } , |
189 | scale: { |
190 | mode: "PercentChanges" , |
191 | type: "Logarithmic" , |
192 | minimumOffset: 0 , |
193 | negativeMode: "Offset" |
194 | } |
195 | } |
196 | } , |
197 | xAxis: { |
198 | labels: { |
199 | background: { |
200 | fill: { |
201 | type: "Solid" , |
202 | color: "#FDFDFD" |
203 | } |
204 | } |
205 | } |
206 | } , |
207 | background: { |
208 | enabled: true , |
209 | fill: { |
210 | enabled: true , |
211 | type: "Gradient" , |
212 | gradient: { |
213 | angle: 90 , |
214 | keys: [ |
215 | { |
216 | color: "White" |
217 | } , |
218 | { |
219 | color: "#F5F5F5" |
220 | } |
221 | ] |
222 | } |
223 | } |
224 | } |
225 | } |
226 | ] , |
227 | timeScale: { |
228 | selectedRange: { |
229 | type: "Unit" , |
230 | unit: "Year" , |
231 | count: 12 |
232 | } |
233 | } , |
234 | scroller: { |
235 | timeScale: { |
236 | maxTicksCount: 8 |
237 | } |
238 | } |
239 | } |
240 | } |