01 | { |
02 | data: { |
03 | dataSets: [ |
04 | { |
05 | id: "dataSet1", |
06 | sourceUrl: "./../../csv-data/csco_daily.csv", |
07 | csvSettings: { |
08 | ignoreFirstRow: true, |
09 | rowsSeparator: "\n" |
10 | }, |
11 | locale: { |
12 | dateTime: { |
13 | format: "%yyyy%MM%dd" |
14 | } |
15 | } |
16 | } |
17 | ], |
18 | dataProviders: { |
19 | generalDataProviders: [ |
20 | { |
21 | dataSet: "dataSet1", |
22 | id: "dp1", |
23 | fields: [ |
24 | { |
25 | type: "Open", |
26 | column: 1, |
27 | approximationType: "Open" |
28 | }, |
29 | { |
30 | type: "High", |
31 | column: 2, |
32 | approximationType: "High" |
33 | }, |
34 | { |
35 | type: "Low", |
36 | column: 3, |
37 | approximationType: "Low" |
38 | }, |
39 | { |
40 | type: "Close", |
41 | column: 4, |
42 | approximationType: "Close" |
43 | } |
44 | ] |
45 | } |
46 | ], |
47 | scrollerDataProviders: [ |
48 | { |
49 | dataSet: "dataSet1", |
50 | column: 4 |
51 | } |
52 | ] |
53 | } |
54 | }, |
55 | eventMarkers: { |
56 | groups: [ |
57 | { |
58 | chart: "idStochasticChart", |
59 | series: "idStochasticKSeries", |
60 | format: "B", |
61 | position: "Axis", |
62 | events: [ |
63 | { |
64 | date: "2009-05-14" |
65 | }, |
66 | { |
67 | date: "2009-06-18" |
68 | } |
69 | ], |
70 | settings: { |
71 | font: { |
72 | color: "#FFFFFF" |
73 | }, |
74 | shape: { |
75 | type: "Circle", |
76 | fill: { |
77 | type: "Solid", |
78 | color: "#C95232" |
79 | }, |
80 | border: { |
81 | thickness: 2, |
82 | color: "White" |
83 | } |
84 | }, |
85 | connector: { |
86 | thickness: 1, |
87 | length: 15 |
88 | }, |
89 | states: { |
90 | hover: { |
91 | shape: { |
92 | fill: { |
93 | type: "Solid", |
94 | color: "#EE0000" |
95 | }, |
96 | border: { |
97 | thickness: 2, |
98 | color: "#F0F0F0" |
99 | } |
100 | } |
101 | } |
102 | }, |
103 | tooltip: { |
104 | enabled: true, |
105 | font: { |
106 | color: "#333333", |
107 | bold: true |
108 | }, |
109 | format: "<font color=\"#db2a0e\">Alert:</font> {%SourceDate}{\"%MMM %d, %yyyy\"}" |
110 | } |
111 | } |
112 | } |
113 | ] |
114 | }, |
115 | settings: { |
116 | insideMargin: { |
117 | left: 40 |
118 | }, |
119 | dataGrouping: { |
120 | enabled: false |
121 | }, |
122 | charts: [ |
123 | { |
124 | height: 100, |
125 | legend: { |
126 | dateTime: { |
127 | enabled: false |
128 | } |
129 | }, |
130 | valueAxes: { |
131 | primary: { |
132 | position: "Left", |
133 | labels: { |
134 | position: "Outside", |
135 | padding: 5, |
136 | showFirst: true, |
137 | showLast: true, |
138 | valign: "Center", |
139 | format: "{%Value}{numDecimals:1}" |
140 | }, |
141 | scale: { |
142 | mode: "Values" |
143 | } |
144 | } |
145 | }, |
146 | seriesList: [ |
147 | { |
148 | id: "idCscoSeries", |
149 | type: "Candlestick", |
150 | dataProvider: "dp1", |
151 | color: "#0066DD", |
152 | candlestickSeries: { |
153 | width: 0.5, |
154 | rising: { |
155 | line: { |
156 | enabled: true, |
157 | color: "#7F8DA9", |
158 | thickness: 1, |
159 | opacity: 1 |
160 | }, |
161 | border: { |
162 | enabled: true, |
163 | color: "#7F8DA9", |
164 | thickness: 1, |
165 | opacity: 1 |
166 | }, |
167 | fill: { |
168 | enabled: true, |
169 | color: "#7F8DA9", |
170 | opacity: 1 |
171 | } |
172 | }, |
173 | falling: { |
174 | line: { |
175 | enabled: true, |
176 | color: "#DB4C3C", |
177 | thickness: 1, |
178 | opacity: 1 |
179 | }, |
180 | border: { |
181 | enabled: true, |
182 | color: "#DB4C3C", |
183 | thickness: 1, |
184 | opacity: 1 |
185 | }, |
186 | fill: { |
187 | enabled: true, |
188 | color: "#DB4C3C", |
189 | opacity: 1 |
190 | } |
191 | } |
192 | }, |
193 | name: "CSCO" |
194 | } |
195 | ] |
196 | }, |
197 | { |
198 | id: "idStochasticChart", |
199 | height: 50, |
200 | legend: { |
201 | dateTime: { |
202 | enabled: false |
203 | } |
204 | }, |
205 | valueAxes: { |
206 | primary: { |
207 | position: "Left", |
208 | labels: { |
209 | position: "Outside", |
210 | padding: 5, |
211 | showFirst: false, |
212 | showLast: false, |
213 | valign: "Center", |
214 | background: { |
215 | enabled: true, |
216 | fill: { |
217 | enabled: false, |
218 | type: "Solid", |
219 | color: "Gray", |
220 | opacity: 0.5 |
221 | }, |
222 | insideMargin: { |
223 | top: -5, |
224 | bottom: -5 |
225 | } |
226 | }, |
227 | format: "{%Value}{numDecimals:0}" |
228 | }, |
229 | scale: { |
230 | minimumMode: "CustomValue", |
231 | minimum: 0, |
232 | maximumMode: "CustomValue", |
233 | maximum: 100, |
234 | intervalMode: "CustomValue", |
235 | interval: 20 |
236 | }, |
237 | axisMarkers: { |
238 | rangeMarkers: [ |
239 | { |
240 | lowValue: 0, |
241 | highValue: 20, |
242 | fill: { |
243 | enabled: true, |
244 | type: "Solid", |
245 | color: "#333333", |
246 | opacity: 0.05 |
247 | }, |
248 | highLine: { |
249 | enabled: true, |
250 | color: "#AAAAAA", |
251 | dashed: true, |
252 | dashLength: 4, |
253 | dashSpace: 4 |
254 | }, |
255 | lowLine: { |
256 | enabled: false |
257 | }, |
258 | labels: [ |
259 | { |
260 | anchor: "LeftBottom", |
261 | valign: "Top", |
262 | halign: "Right", |
263 | xPadding: 3, |
264 | yPadding: 2, |
265 | format: "Oversold", |
266 | font: { |
267 | family: "Tahoma", |
268 | size: 9, |
269 | color: "#333333" |
270 | }, |
271 | background: { |
272 | enabled: true, |
273 | fill: { |
274 | type: "Solid", |
275 | color: "White" |
276 | }, |
277 | insideMargin: { |
278 | left: 5, |
279 | top: 0, |
280 | right: 5, |
281 | bottom: 0 |
282 | }, |
283 | border: { |
284 | enabled: true, |
285 | color: "#333333", |
286 | opacity: 0.2 |
287 | }, |
288 | corners: { |
289 | type: "Rounded", |
290 | all: 2 |
291 | } |
292 | } |
293 | } |
294 | ] |
295 | }, |
296 | { |
297 | lowValue: 80, |
298 | highValue: 100, |
299 | fill: { |
300 | enabled: true, |
301 | type: "Solid", |
302 | color: "#333333", |
303 | opacity: 0.05 |
304 | }, |
305 | lowLine: { |
306 | enabled: true, |
307 | color: "#AAAAAA", |
308 | dashed: true, |
309 | dashLength: 4, |
310 | dashSpace: 4 |
311 | }, |
312 | highLine: { |
313 | enabled: false |
314 | }, |
315 | labels: [ |
316 | { |
317 | anchor: "LeftTop", |
318 | valign: "Bottom", |
319 | halign: "Right", |
320 | xPadding: 3, |
321 | yPadding: 2, |
322 | format: "Overbought", |
323 | font: { |
324 | family: "Tahoma", |
325 | size: 9, |
326 | color: "#333333" |
327 | }, |
328 | background: { |
329 | enabled: true, |
330 | fill: { |
331 | type: "Solid", |
332 | color: "White" |
333 | }, |
334 | insideMargin: { |
335 | left: 5, |
336 | top: 0, |
337 | right: 5, |
338 | bottom: 0 |
339 | }, |
340 | border: { |
341 | enabled: true, |
342 | color: "#333333", |
343 | opacity: 0.2 |
344 | }, |
345 | corners: { |
346 | type: "Rounded", |
347 | all: 2 |
348 | } |
349 | } |
350 | } |
351 | ] |
352 | } |
353 | ] |
354 | } |
355 | } |
356 | }, |
357 | technicalIndicators: [ |
358 | { |
359 | type: "StochasticOscillator", |
360 | dataProvider: "dp1", |
362 | kSeries: { |
363 | id: "idStochasticKSeries", |
364 | name: "Fast Stochastic: %K(5)" |
365 | }, |
366 | dSeries: { |
367 | name: "%D(3)" |
368 | } |
369 | } |
370 | } |
371 | ] |
372 | } |
373 | ], |
374 | timeScale: { |
375 | selectedRange: { |
376 | type: "Unit", |
377 | unit: "Month", |
378 | count: 3 |
379 | } |
380 | }, |
381 | rangeSelector: { |
382 | enabled: true |
383 | } |
384 | } |
385 | } |