01 | { |
02 | data: { |
03 | dataSets: [ |
04 | { |
05 | id: "dataSet1" , |
06 | sourceUrl: "./../../csv-data/orcl_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 | 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: true , |
64 | maxVisiblePoints: 720 |
65 | } , |
66 | insideMargin: { |
67 | right: 35 |
68 | } , |
69 | rangeSelector: { |
70 | enabled: true |
71 | } , |
72 | charts: [ |
73 | { |
74 | height: 100 , |
75 | legend: { |
76 | dateTime: { |
77 | enabled: false |
78 | } |
79 | } , |
80 | seriesList: [ |
81 | { |
82 | type: "Line" , |
83 | dataProvider: "dp1" , |
84 | color: "#DB2A0E" , |
85 | name: "ORCL" , |
86 | lineSeries: { |
87 | thickness: 2 |
88 | } , |
89 | legendItem: { |
90 | enabled: true , |
91 | labels: { |
92 | font: { |
93 | color: "#333333" |
94 | } , |
95 | focusSettings: { |
96 | mouseOver: { |
97 | 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> " |
98 | } , |
99 | mouseOut: { |
100 | 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> " |
101 | } |
102 | } |
103 | } |
104 | } |
105 | } |
106 | ] , |
107 | valueAxes: { |
108 | primary: { |
109 | position: "Right" , |
110 | labels: { |
111 | position: "Outside" , |
112 | padding: 3 , |
113 | valign: "Center" , |
114 | showFirst: true , |
115 | showLast: true , |
116 | font: { |
117 | family: "Verdana" , |
118 | color: "#444444" , |
119 | bold: true , |
120 | size: 9 |
121 | } , |
122 | format: "{%Value}{numDecimals:2,trailingZeros:false}" |
123 | } , |
124 | scale: { |
125 | minimumOffset: 0 |
126 | } , |
127 | grid: { |
128 | line: { |
129 | dashed: true , |
130 | dashLength: 3 , |
131 | dashSpace: 3 , |
132 | pixelHinting: true |
133 | } |
134 | } , |
135 | tickmarks: { |
136 | enabled: true , |
137 | showFirst: true , |
138 | showLast: true , |
139 | thickness: 1 , |
140 | size: 3 , |
141 | pixelHinting: true , |
142 | color: "#333333" |
143 | } |
144 | } |
145 | } , |
146 | xAxis: { |
147 | majorGrid: { |
148 | line: { |
149 | opacity: 1 , |
150 | color: "#D9D9D9" |
151 | } |
152 | } , |
153 | minorGrid: { |
154 | line: { |
155 | dashed: true , |
156 | dashLength: 3 , |
157 | dashSpace: 3 , |
158 | pixelHinting: true |
159 | } |
160 | } |
161 | } |
162 | } , |
163 | { |
164 | height: 40 , |
165 | legend: { |
166 | title: { |
167 | enabled: false |
168 | } , |
169 | dateTime: { |
170 | enabled: false |
171 | } |
172 | } , |
173 | valueAxes: { |
174 | primary: { |
175 | position: "Right" , |
176 | labels: { |
177 | position: "Outside" , |
178 | padding: 3 , |
179 | valign: "Center" , |
180 | showFirst: true , |
181 | showLast: true , |
182 | font: { |
183 | family: "Verdana" , |
184 | color: "#444444" , |
185 | bold: true , |
186 | size: 9 |
187 | } , |
188 | format: "{%Value}{numDecimals:2,trailingZeros:false}" |
189 | } , |
190 | scale: { |
191 | minimumMode: "CustomValue" , |
192 | minimum: -100 , |
193 | maximumMode: "CustomValue" , |
194 | maximum: 0 , |
195 | intervalMode: "CustomValue" , |
196 | interval: 20 |
197 | } , |
198 | grid: { |
199 | line: { |
200 | dashed: true , |
201 | dashLength: 3 , |
202 | dashSpace: 3 , |
203 | pixelHinting: true |
204 | } |
205 | } , |
206 | tickmarks: { |
207 | enabled: true , |
208 | showFirst: true , |
209 | showLast: true , |
210 | thickness: 1 , |
211 | size: 3 , |
212 | pixelHinting: true , |
213 | color: "#333333" |
214 | } |
215 | } |
216 | } , |
217 | xAxis: { |
218 | majorGrid: { |
219 | line: { |
220 | opacity: 1 , |
221 | color: "#D9D9D9" |
222 | } |
223 | } , |
224 | minorGrid: { |
225 | line: { |
226 | dashed: true , |
227 | dashLength: 3 , |
228 | dashSpace: 3 , |
229 | pixelHinting: true |
230 | } |
231 | } , |
232 | labels: { |
233 | enabled: false |
234 | } |
235 | } , |
236 | technicalIndicators: [ |
237 | { |
238 | type: "WilliamsR" , |
239 | dataProvider: "dp1" , |
240 | williamsRIndicator: { |
241 | period: 14 , |
242 | series: { |
243 | type: "Line" , |
244 | color: "#253992" , |
245 | name: "Williams %R(14)" , |
246 | legendItem: { |
247 | enabled: true , |
248 | labels: { |
249 | icon: { |
250 | size: 8 , |
251 | type: "Square" , |
252 | fill: { |
253 | color: "%Color" |
254 | } , |
255 | border: { |
256 | enabled: true , |
257 | thickness: 1 , |
258 | color: "DarkColor(%Color)" , |
259 | opacity: 0.4 |
260 | } |
261 | } , |
262 | focusSettings: { |
263 | mouseOver: { |
264 | format: "{%SeriesIcon} <b><font color=\"%Color\">{%SeriesName} {%Value.Current}{numDecimals:2,negativeSignStyle:None}</font></b> " |
265 | } , |
266 | mouseOut: { |
267 | format: "{%SeriesIcon} <b><font color=\"%Color\">{%SeriesName} {%Value.LastVisible}{numDecimals:2,negativeSignStyle:None}</font></b> " |
268 | } |
269 | } |
270 | } |
271 | } |
272 | } |
273 | } |
274 | } |
275 | ] |
276 | } |
277 | ] , |
278 | timeScale: { |
279 | selectedRange: { |
280 | type: "Unit" , |
281 | unit: "Year" , |
282 | count: 3 |
283 | } |
284 | } |
285 | } |
286 | } |