01 | { |
02 | data: { |
03 | dataSets: [ |
04 | { |
05 | id: "dataSet1", |
06 | sourceUrl: "./../../csv-data/csco_daily_short.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 | dataProviders: { |
20 | generalDataProviders: [ |
21 | { |
22 | dataSet: "dataSet1", |
23 | id: "dp1", |
24 | fields: [ |
25 | { |
26 | type: "Open", |
27 | column: 1, |
28 | approximationType: "Open" |
29 | }, |
30 | { |
31 | type: "High", |
32 | column: 2, |
33 | approximationType: "High" |
34 | }, |
35 | { |
36 | type: "Low", |
37 | column: 3, |
38 | approximationType: "Low" |
39 | }, |
40 | { |
41 | type: "Close", |
42 | column: 4, |
43 | approximationType: "Close" |
44 | }, |
45 | { |
46 | type: "Volume", |
47 | column: 5, |
48 | approximationType: "Average" |
49 | } |
50 | ] |
51 | } |
52 | ], |
53 | scrollerDataProviders: [ |
54 | { |
55 | dataSet: "dataSet1", |
56 | column: 4 |
57 | } |
58 | ] |
59 | } |
60 | }, |
61 | settings: { |
62 | dataGrouping: { |
63 | enabled: false |
64 | }, |
65 | insideMargin: { |
66 | right: 35 |
67 | }, |
68 | rangeSelector: { |
69 | enabled: true |
70 | }, |
71 | charts: [ |
72 | { |
73 | height: 100, |
74 | legend: { |
75 | dateTime: { |
76 | enabled: false |
77 | } |
78 | }, |
79 | seriesList: [ |
80 | { |
81 | type: "Line", |
82 | dataProvider: "dp1", |
83 | color: "#DB2A0E", |
84 | name: "CSCO", |
85 | lineSeries: { |
86 | thickness: 2 |
87 | }, |
88 | legendItem: { |
89 | enabled: true, |
90 | labels: { |
91 | font: { |
92 | color: "#333333" |
93 | }, |
94 | focusSettings: { |
95 | mouseOver: { |
96 | format: "{%SeriesIcon} <b><font color=\"%Color\">{%SeriesName} </font><font color=\"#707070\">O: </font>{%Open.Current} <font color=\"#707070\">H: </font>{%High.Current} <font color=\"#707070\">L: </font>{%Low.Current} <font color=\"#707070\">C: </font>{%Close.Current}</b> " |
97 | }, |
98 | mouseOut: { |
99 | format: "{%SeriesIcon} <b><font color=\"%Color\">{%SeriesName} </font><font color=\"#707070\">O: </font>{%Open.LastVisible} <font color=\"#707070\">H: </font>{%High.LastVisible} <font color=\"#707070\">L: </font>{%Low.LastVisible} <font color=\"#707070\">C: </font>{%Close.LastVisible}</b> " |
100 | } |
101 | } |
102 | } |
103 | } |
104 | } |
105 | ], |
106 | valueAxes: { |
107 | primary: { |
108 | position: "Right", |
109 | labels: { |
110 | position: "Outside", |
111 | padding: 3, |
112 | valign: "Center", |
113 | showFirst: true, |
114 | showLast: true, |
115 | font: { |
116 | family: "Verdana", |
117 | color: "#444444", |
118 | bold: true, |
119 | size: 9 |
120 | }, |
121 | format: "{%Value}{numDecimals:2,trailingZeros:false}" |
122 | }, |
123 | scale: { |
124 | minimumOffset: 0 |
125 | }, |
126 | grid: { |
127 | line: { |
128 | dashed: true, |
129 | dashLength: 3, |
130 | dashSpace: 3, |
131 | pixelHinting: true |
132 | } |
133 | }, |
134 | tickmarks: { |
135 | enabled: true, |
136 | showFirst: true, |
137 | showLast: true, |
138 | thickness: 1, |
139 | size: 3, |
140 | pixelHinting: true, |
141 | color: "#333333" |
142 | } |
143 | } |
144 | }, |
145 | xAxis: { |
146 | majorGrid: { |
147 | line: { |
148 | opacity: 1, |
149 | color: "#D9D9D9" |
150 | } |
151 | }, |
152 | minorGrid: { |
153 | line: { |
154 | dashed: true, |
155 | dashLength: 3, |
156 | dashSpace: 3, |
157 | pixelHinting: true |
158 | } |
159 | } |
160 | } |
161 | }, |
162 | { |
163 | height: 40, |
164 | legend: { |
165 | title: { |
166 | enabled: false |
167 | }, |
168 | dateTime: { |
169 | enabled: false |
170 | } |
171 | }, |
172 | valueAxes: { |
173 | primary: { |
174 | position: "Right", |
175 | labels: { |
176 | position: "Outside", |
177 | padding: 3, |
178 | valign: "Center", |
179 | showFirst: true, |
180 | showLast: true, |
181 | font: { |
182 | family: "Verdana", |
183 | color: "#444444", |
184 | bold: true, |
185 | size: 9 |
186 | }, |
187 | format: "{%Value}{numDecimals:2,trailingZeros:false}" |
188 | }, |
189 | grid: { |
190 | line: { |
191 | dashed: true, |
192 | dashLength: 3, |
193 | dashSpace: 3, |
194 | pixelHinting: true |
195 | } |
196 | }, |
197 | tickmarks: { |
198 | enabled: true, |
199 | showFirst: true, |
200 | showLast: true, |
201 | thickness: 1, |
202 | size: 3, |
203 | pixelHinting: true, |
204 | color: "#333333" |
205 | } |
206 | } |
207 | }, |
208 | xAxis: { |
209 | majorGrid: { |
210 | line: { |
211 | opacity: 1, |
212 | color: "#D9D9D9" |
213 | } |
214 | }, |
215 | minorGrid: { |
216 | line: { |
217 | dashed: true, |
218 | dashLength: 3, |
219 | dashSpace: 3, |
220 | pixelHinting: true |
221 | } |
222 | }, |
223 | labels: { |
224 | enabled: false |
225 | } |
226 | }, |
227 | technicalIndicators: [ |
228 | { |
229 | type: "CMF", |
230 | dataProvider: "dp1", |
231 | cmfIndicator: { |
232 | period: 14, |
233 | series: { |
234 | type: "Area", |
235 | color: "#253992", |
236 | areaSeries: {}, |
237 | name: "CMF(14)" |
238 | } |
239 | } |
240 | } |
241 | ] |
242 | } |
243 | ], |
244 | timeScale: { |
245 | selectedRange: { |
246 | type: "Unit", |
247 | unit: "Year", |
248 | count: 2 |
249 | } |
250 | } |
251 | } |
252 | } |