01 | { |
02 | data: { |
03 | dataSets: [ |
04 | { |
05 | id: "dataSet1" , |
06 | sourceUrl: "./../../csv-data/orcl_intraday.csv" , |
07 | csvSettings: { |
08 | ignoreFirstRow: true , |
09 | rowsSeparator: "\n" , |
10 | columnsSeparator: "," |
11 | } , |
12 | locale: { |
13 | dateTime: { |
14 | format: "%u" |
15 | } |
16 | } |
17 | } |
18 | ] , |
19 | dataProviders: { |
20 | generalDataProviders: [ |
21 | { |
22 | dataSet: "dataSet1" , |
23 | id: "dp1" , |
24 | fields: [ |
25 | { |
26 | type: "Close" , |
27 | column: 4 , |
28 | approximationType: "Close" |
29 | } , |
30 | { |
31 | type: "Volume" , |
32 | column: 5 , |
33 | approximationType: "Average" |
34 | } |
35 | ] |
36 | } |
37 | ] , |
38 | scrollerDataProviders: [ |
39 | { |
40 | dataSet: "dataSet1" , |
41 | column: 4 |
42 | } |
43 | ] |
44 | } |
45 | } , |
46 | settings: { |
47 | dataGrouping: { |
48 | enabled: true , |
49 | maxVisiblePoints: 500 |
50 | } , |
51 | insideMargin: { |
52 | left: 40 |
53 | } , |
54 | charts: [ |
55 | { |
56 | height: 100 , |
57 | legend: { |
58 | dateTime: { |
59 | enabled: false |
60 | } , |
61 | background: { |
62 | fill: { |
63 | type: "Solid" , |
64 | color: "White" |
65 | } |
66 | } , |
67 | title: { |
68 | enabled: true , |
69 | focusSettings: { |
70 | mouseOver: { |
71 | format: "{%Date.Current}{\"%MMMM %d, %yyyy %h:%mm %tt\"}: " |
72 | } , |
73 | mouseOut: { |
74 | format: "{%Date.LastVisible}{\"%MMMM %d, %yyyy %h:%mm %tt\"}: " |
75 | } |
76 | } |
77 | } |
78 | } , |
79 | seriesList: [ |
80 | { |
81 | type: "Area" , |
82 | dataProvider: "dp1" , |
83 | color: "#7F8DA9" , |
84 | name: "MSFT:" , |
85 | areaSeries: { |
86 | fill: { |
87 | opacity: 0.2 |
88 | } , |
89 | line: { |
90 | thickness: 1 , |
91 | color: "DarkColor(%Color)" |
92 | } |
93 | } , |
94 | legendItem: { |
95 | labels: { |
96 | icon: { |
97 | type: "Circle" , |
98 | size: 6 |
99 | } , |
100 | focusSettings: { |
101 | mouseOver: { |
102 | format: "{%SeriesIcon} <b><font color=\"%Color\">{%SeriesName}</font> <font color=\"#808080\">Value:</font> <font color=\"#333333\">{%Value.Current}</font> <font color=\"#808080\">Change:</font> <font color=\"%ChangeColor\">{%ValueChange.Current}{plusSign:true} ({%PercentValueChange.Current}{plusSign:true}%)</font></b> " |
103 | } , |
104 | mouseOut: { |
105 | format: "{%SeriesIcon} <b><font color=\"%Color\">{%SeriesName}</font> <font color=\"#808080\">Last Value:</font> <font color=\"#333333\">{%Value.LastVisible}</font> <font color=\"#808080\">Change:</font> <font color=\"%ChangeColor\">{%ValueChange.LastVisible}{plusSign:true} ({%PercentValueChange.LastVisible}{plusSign:true}%)</font></b> " |
106 | } |
107 | } |
108 | } |
109 | } |
110 | } |
111 | ] , |
112 | valueAxes: { |
113 | primary: { |
114 | enabled: true , |
115 | labels: { |
116 | position: "Outside" , |
117 | padding: 3 , |
118 | valign: "Center" , |
119 | showFirst: true , |
120 | showLast: true , |
121 | format: "{%Value}{numDecimals:2}" , |
122 | font: { |
123 | family: "Tahoma" , |
124 | size: 9 , |
125 | bold: true , |
126 | color: "#333333" |
127 | } |
128 | } , |
129 | scale: { |
130 | mode: "Values" , |
131 | type: "Linear" , |
132 | minimumOffset: 0 , |
133 | optimalStepCount: 5 |
134 | } |
135 | } |
136 | } , |
137 | xAxis: { |
138 | labels: { |
139 | background: { |
140 | fill: { |
141 | type: "Solid" , |
142 | color: "#FDFDFD" |
143 | } |
144 | } |
145 | } |
146 | } |
147 | } , |
148 | { |
149 | height: 40 , |
150 | technicalIndicators: [ |
151 | { |
152 | type: "Volume" , |
153 | dataProvider: "dp1" , |
154 | volumeIndicator: { |
155 | series: { |
156 | type: "Bar" |
157 | } |
158 | } |
159 | } |
160 | ] , |
161 | xAxis: { |
162 | labels: { |
163 | enabled: false |
164 | } |
165 | } , |
166 | legend: { |
167 | dateTime: { |
168 | enabled: false |
169 | } , |
170 | background: { |
171 | fill: { |
172 | type: "Solid" , |
173 | color: "White" |
174 | } |
175 | } , |
176 | title: { |
177 | enabled: false |
178 | } |
179 | } , |
180 | valueAxes: { |
181 | primary: { |
182 | enabled: true , |
183 | labels: { |
184 | position: "Outside" , |
185 | padding: 3 , |
186 | valign: "Center" , |
187 | showFirst: true , |
188 | showLast: true , |
189 | format: "{%Value}{scale:(1000)(1000)(1000)|( K)( M)( B),numDecimals:0}" , |
190 | font: { |
191 | family: "Tahoma" , |
192 | size: 9 , |
193 | bold: true , |
194 | color: "#333333" |
195 | } |
196 | } , |
197 | scale: { |
198 | mode: "Values" , |
199 | type: "Linear" , |
200 | minimumOffset: 0 , |
201 | optimalStepCount: 5 |
202 | } |
203 | } |
204 | } |
205 | } |
206 | ] , |
207 | timeScale: { |
208 | selectedRange: { |
209 | type: "Unit" , |
210 | unit: "Hour" , |
211 | count: 7 |
212 | } |
213 | } , |
214 | rangeSelector: { |
215 | enabled: true , |
216 | presets: { |
217 | buttonSettings: { |
218 | spacing: 5 |
219 | } , |
220 | ranges: [ |
221 | { |
222 | type: "Unit" , |
223 | unit: "Hour" , |
224 | count: 7 , |
225 | format: "6h" |
226 | } , |
227 | { |
228 | type: "Unit" , |
229 | unit: "Hour" , |
230 | count: 7 , |
231 | format: "12h" |
232 | } , |
233 | { |
234 | type: "Unit" , |
235 | unit: "Day" , |
236 | count: 1 , |
237 | format: "1D" |
238 | } , |
239 | { |
240 | type: "Unit" , |
241 | unit: "Day" , |
242 | count: 3 , |
243 | format: "3D" |
244 | } , |
245 | { |
246 | type: "Unit" , |
247 | unit: "Day" , |
248 | count: 5 , |
249 | format: "5D" |
250 | } , |
251 | { |
252 | type: "Max" , |
253 | format: "MAX" |
254 | } |
255 | ] |
256 | } , |
257 | rangePicker: { |
258 | enabled: false |
259 | } |
260 | } , |
261 | scroller: { |
262 | timeScale: { |
263 | maxTicksCount: 8 |
264 | } |
265 | } |
266 | } |
267 | } |