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 | 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 | } |
47 | ], |
48 | scrollerDataProviders: [ |
49 | { |
50 | dataSet: "dataSet1", |
51 | column: 4 |
52 | } |
53 | ] |
54 | } |
55 | }, |
56 | settings: { |
57 | dataGrouping: { |
58 | enabled: true, |
59 | maxVisiblePoints: 720 |
60 | }, |
61 | insideMargin: { |
62 | right: 35 |
63 | }, |
64 | rangeSelector: { |
65 | enabled: true |
66 | }, |
67 | charts: [ |
68 | { |
69 | height: 100, |
70 | legend: { |
71 | dateTime: { |
72 | enabled: false |
73 | } |
74 | }, |
75 | seriesList: [ |
76 | { |
77 | type: "OHLC", |
78 | dataProvider: "dp1", |
79 | color: "#253992", |
80 | name: "CSCO" |
81 | } |
82 | ], |
83 | valueAxes: { |
84 | primary: { |
85 | position: "Right", |
86 | labels: { |
87 | position: "Outside", |
88 | padding: 3, |
89 | valign: "Center", |
90 | showFirst: true, |
91 | showLast: true, |
92 | font: { |
93 | family: "Verdana", |
94 | color: "#444444", |
95 | bold: true, |
96 | size: 9 |
97 | }, |
98 | format: "{%Value}{numDecimals:2,trailingZeros:false}" |
99 | }, |
100 | grid: { |
101 | line: { |
102 | dashed: true, |
103 | dashLength: 3, |
104 | dashSpace: 3, |
105 | pixelHinting: true |
106 | } |
107 | }, |
108 | tickmarks: { |
109 | enabled: true, |
110 | showFirst: true, |
111 | showLast: true, |
112 | thickness: 1, |
113 | size: 3, |
114 | pixelHinting: true, |
115 | color: "#333333" |
116 | } |
117 | } |
118 | }, |
119 | xAxis: { |
120 | majorGrid: { |
121 | line: { |
122 | opacity: 1, |
123 | color: "#D9D9D9" |
124 | } |
125 | }, |
126 | minorGrid: { |
127 | line: { |
128 | dashed: true, |
129 | dashLength: 3, |
130 | dashSpace: 3, |
131 | pixelHinting: true |
132 | } |
133 | } |
134 | } |
135 | }, |
136 | { |
137 | height: 50, |
138 | legend: { |
139 | title: { |
140 | enabled: false |
141 | }, |
142 | dateTime: { |
143 | enabled: false |
144 | } |
145 | }, |
146 | valueAxes: { |
147 | primary: { |
148 | position: "Right", |
149 | labels: { |
150 | position: "Outside", |
151 | padding: 3, |
152 | valign: "Center", |
153 | showFirst: true, |
154 | showLast: true, |
155 | font: { |
156 | family: "Verdana", |
157 | color: "#444444", |
158 | bold: true, |
159 | size: 9 |
160 | }, |
161 | format: "{%Value}{numDecimals:2,trailingZeros:false}" |
162 | }, |
163 | grid: { |
164 | line: { |
165 | dashed: true, |
166 | dashLength: 3, |
167 | dashSpace: 3, |
168 | pixelHinting: true |
169 | } |
170 | }, |
171 | tickmarks: { |
172 | enabled: true, |
173 | showFirst: true, |
174 | showLast: true, |
175 | thickness: 1, |
176 | size: 3, |
177 | pixelHinting: true, |
178 | color: "#333333" |
179 | }, |
180 | zeroLine: { |
181 | opacity: 0.15 |
182 | } |
183 | } |
184 | }, |
185 | xAxis: { |
186 | majorGrid: { |
187 | line: { |
188 | opacity: 1, |
189 | color: "#D9D9D9" |
190 | } |
191 | }, |
192 | minorGrid: { |
193 | line: { |
194 | dashed: true, |
195 | dashLength: 3, |
196 | dashSpace: 3, |
197 | pixelHinting: true |
198 | } |
199 | }, |
200 | labels: { |
201 | enabled: false |
202 | } |
203 | }, |
204 | technicalIndicators: [ |
205 | { |
206 | type: "ROC", |
207 | dataProvider: "dp1", |
208 | rocIndicator: { |
209 | period: 12, |
210 | series: { |
211 | color: "#BD240C", |
212 | name: "ROC(12)" |
213 | } |
214 | } |
215 | } |
216 | ] |
217 | } |
218 | ], |
219 | timeScale: { |
220 | selectedRange: { |
221 | type: "Unit", |
222 | unit: "Year", |
223 | count: 3 |
224 | } |
225 | } |
226 | } |
227 | } |