01 <?xml version="1.0" encoding="UTF-8"?>
02 <stock xmlns="http://anychart.com/products/stock/schemas/1.9.0/schema.xsd">
03   <data>
04     <data_sets>
05       <data_set id="dataSet1" source_url="./../../csv-data/weather_data.csv">
06         <csv_settings ignore_first_row="true" rows_separator="\n" columns_separator="," />
07         <locale>
08           <date_time>
09             <format><![CDATA[%M/%d/%yyyy]]></format>
10           </date_time>
11         </locale>
12       </data_set>
13     </data_sets>
14     <data_providers>
15       <general_data_providers>
16         <data_provider data_set="dataSet1" id="dp1">
17           <fields>
18             <field type="High" column="2" approximation_type="High" />
19             <field type="Low" column="3" approximation_type="Low" />
20           </fields>
21         </data_provider>
22         <data_provider data_set="dataSet1" id="dp2">
23           <fields>
24             <field type="Value" column="4" approximation_type="Average" />
25           </fields>
26         </data_provider>
27       </general_data_providers>
28       <scroller_data_providers>
29         <data_provider data_set="dataSet1" column="4" />
30       </scroller_data_providers>
31     </data_providers>
32   </data>
33   <settings>
34     <data_grouping enabled="true" max_visible_points="250" />
35     <inside_margin right="35" />
36     <range_selector enabled="true">
37       <presets>
38         <title>
39           <format><![CDATA[Years:]]></format>
40         </title>
41         <ranges>
42           <range type="Custom" start_date="2006-01-01" end_date="2006-12-31">
43             <format><![CDATA[2006]]></format>
44           </range>
45           <range type="Custom" start_date="2007-01-01" end_date="2007-12-31">
46             <format><![CDATA[2007]]></format>
47           </range>
48           <range type="Custom" start_date="2008-01-01" end_date="2008-12-31">
49             <format><![CDATA[2008]]></format>
50           </range>
51           <range type="Max">
52             <format><![CDATA[ All ]]></format>
53           </range>
54         </ranges>
55       </presets>
56     </range_selector>
57     <charts>
58       <chart height="100">
59         <legend>
60           <date_time>
61             <font family="Verdana" color="#444444" bold="true" size="9" />
62             <format><![CDATA[Default settings]]></format>
63           </date_time>
64         </legend>
65         <series_list>
66           <series type="RangeArea" data_provider="dp1" color="#005ECB">
67             <name><![CDATA[High/Low Temp. (C)]]></name>
68           </series>
69         </series_list>
70         <value_axes>
71           <primary position="Right">
72             <labels position="Outside" padding="3" valign="Center" show_first="true" show_last="true">
73               <font family="Verdana" color="#444444" bold="true" size="9" />
74               <format><![CDATA[{%Value}{numDecimals:2,trailingZeros:false}]]></format>
75             </labels>
76             <scale minimum_offset="0" />
77             <tickmarks enabled="true" show_first="true" show_last="true" thickness="1" size="3" pixel_hinting="true" color="#333333" />
78           </primary>
79         </value_axes>
80       </chart>
81       <chart height="100">
82         <legend>
83           <date_time>
84             <font family="Verdana" color="#444444" bold="true" size="9" />
85             <format><![CDATA[Custom fill and lines thickness]]></format>
86           </date_time>
87         </legend>
88         <series_list>
89           <series type="RangeArea" data_provider="dp1" color="#005ECB">
90             <name><![CDATA[High/Low Temp. (C)]]></name>
91             <range_area_series>
92               <fill color="%Color" opacity="0.3" />
93               <high>
94                 <line color="DarkColor(%Color)" thickness="2" />
95               </high>
96               <low>
97                 <line color="DarkColor(%Color)" thickness="2" />
98               </low>
99             </range_area_series>
100           </series>
101         </series_list>
102         <value_axes>
103           <primary position="Right">
104             <labels position="Outside" padding="3" valign="Center" show_first="true" show_last="true">
105               <font family="Verdana" color="#444444" bold="true" size="9" />
106               <format><![CDATA[{%Value}{numDecimals:2,trailingZeros:false}]]></format>
107             </labels>
108             <scale minimum_offset="0" />
109             <tickmarks enabled="true" show_first="true" show_last="true" thickness="1" size="3" pixel_hinting="true" color="#333333" />
110           </primary>
111         </value_axes>
112       </chart>
113     </charts>
114     <time_scale>
115       <selected_range type="Custom" start_date="2008-01-01" end_date="2008-12-31" />
116     </time_scale>
117     <scroller>
118       <time_scale max_ticks_count="6" />
119     </scroller>
120   </settings>
121 </stock>
01{
02  data: {
03    dataSets: [
04      {
05        id: "dataSet1",
06        sourceUrl: "./../../csv-data/weather_data.csv",
07        csvSettings: {
08          ignoreFirstRow: true,
09          rowsSeparator: "\n",
10          columnsSeparator: ","
11        },
12        locale: {
13          dateTime: {
14            format: "%M/%d/%yyyy"
15          }
16        }
17      }
18    ],
19    dataProviders: {
20      generalDataProviders: [
21        {
22          dataSet: "dataSet1",
23          id: "dp1",
24          fields: [
25            {
26              type: "High",
27              column: 2,
28              approximationType: "High"
29            },
30            {
31              type: "Low",
32              column: 3,
33              approximationType: "Low"
34            }
35          ]
36        },
37        {
38          dataSet: "dataSet1",
39          id: "dp2",
40          fields: [
41            {
42              type: "Value",
43              column: 4,
44              approximationType: "Average"
45            }
46          ]
47        }
48      ],
49      scrollerDataProviders: [
50        {
51          dataSet: "dataSet1",
52          column: 4
53        }
54      ]
55    }
56  },
57  settings: {
58    dataGrouping: {
59      enabled: true,
60      maxVisiblePoints: 250
61    },
62    insideMargin: {
63      right: 35
64    },
65    rangeSelector: {
66      enabled: true,
67      presets: {
68        title: {
69          format: "Years:"
70        },
71        ranges: [
72          {
73            type: "Custom",
74            startDate: "2006-01-01",
75            endDate: "2006-12-31",
76            format: "2006"
77          },
78          {
79            type: "Custom",
80            startDate: "2007-01-01",
81            endDate: "2007-12-31",
82            format: "2007"
83          },
84          {
85            type: "Custom",
86            startDate: "2008-01-01",
87            endDate: "2008-12-31",
88            format: "2008"
89          },
90          {
91            type: "Max",
92            format: " All "
93          }
94        ]
95      }
96    },
97    charts: [
98      {
99        height: 100,
100        legend: {
101          dateTime: {
102            font: {
103              family: "Verdana",
104              color: "#444444",
105              bold: true,
106              size: 9
107            },
108            format: "Default settings"
109          }
110        },
111        seriesList: [
112          {
113            type: "RangeArea",
114            dataProvider: "dp1",
115            color: "#005ECB",
116            name: "High/Low Temp. (C)"
117          }
118        ],
119        valueAxes: {
120          primary: {
121            position: "Right",
122            labels: {
123              position: "Outside",
124              padding: 3,
125              valign: "Center",
126              showFirst: true,
127              showLast: true,
128              font: {
129                family: "Verdana",
130                color: "#444444",
131                bold: true,
132                size: 9
133              },
134              format: "{%Value}{numDecimals:2,trailingZeros:false}"
135            },
136            scale: {
137              minimumOffset: 0
138            },
139            tickmarks: {
140              enabled: true,
141              showFirst: true,
142              showLast: true,
143              thickness: 1,
144              size: 3,
145              pixelHinting: true,
146              color: "#333333"
147            }
148          }
149        }
150      },
151      {
152        height: 100,
153        legend: {
154          dateTime: {
155            font: {
156              family: "Verdana",
157              color: "#444444",
158              bold: true,
159              size: 9
160            },
161            format: "Custom fill and lines thickness"
162          }
163        },
164        seriesList: [
165          {
166            type: "RangeArea",
167            dataProvider: "dp1",
168            color: "#005ECB",
169            name: "High/Low Temp. (C)",
170            rangeAreaSeries: {
171              fill: {
172                color: "%Color",
173                opacity: 0.3
174              },
175              high: {
176                line: {
177                  color: "DarkColor(%Color)",
178                  thickness: 2
179                }
180              },
181              low: {
182                line: {
183                  color: "DarkColor(%Color)",
184                  thickness: 2
185                }
186              }
187            }
188          }
189        ],
190        valueAxes: {
191          primary: {
192            position: "Right",
193            labels: {
194              position: "Outside",
195              padding: 3,
196              valign: "Center",
197              showFirst: true,
198              showLast: true,
199              font: {
200                family: "Verdana",
201                color: "#444444",
202                bold: true,
203                size: 9
204              },
205              format: "{%Value}{numDecimals:2,trailingZeros:false}"
206            },
207            scale: {
208              minimumOffset: 0
209            },
210            tickmarks: {
211              enabled: true,
212              showFirst: true,
213              showLast: true,
214              thickness: 1,
215              size: 3,
216              pixelHinting: true,
217              color: "#333333"
218            }
219          }
220        }
221      }
222    ],
223    timeScale: {
224      selectedRange: {
225        type: "Custom",
226        startDate: "2008-01-01",
227        endDate: "2008-12-31"
228      }
229    },
230    scroller: {
231      timeScale: {
232        maxTicksCount: 6
233      }
234    }
235  }
236}

The information contained in this website is for general information purposes only. All sample data provided on this site is for demonstration purposes only.


The logos and names of other companies and products mentioned on this site are copyright and/or trademarks of their respective owners.


The content on this site, including news, quotes, data and other information, is provided for your personal information only, and is intended for demonstration purposes only. Content on this site is not appropriate for the purposes of making a decision to carry out a transaction or trade. Nor does it provide any form of advice (investment, tax, legal) amounting to investment advice, or make any recommendations regarding particular financial instruments, investments or products.


In no event AnyChart will be liable for any loss or damage including without limitation, indirect or consequential loss or damage, or any loss or damage whatsoever arising from loss of data or profits arising out of, or in connection with, the use of this website.


This site may point to other Internet sites that may be of interest to you, however AnyChart does not endorse or take responsibility for the content on such other sites.


Market data and News provided by and copyright RediNews, Incorporated.