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="vancouverWeatherStat" 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="vancouverWeatherStat" id="dpMaxTemp">
17           <fields>
18             <field type="Value" column="2" approximation_type="Average" />
19           </fields>
20         </data_provider>
21         <data_provider data_set="vancouverWeatherStat" id="dpMinTemp">
22           <fields>
23             <field type="Value" column="3" approximation_type="Average" />
24           </fields>
25         </data_provider>
26         <data_provider data_set="vancouverWeatherStat" id="dpTotalRain">
27           <fields>
28             <field type="Value" column="6" approximation_type="Average" />
29           </fields>
30         </data_provider>
31         <data_provider data_set="vancouverWeatherStat" id="dpSpdOfMaxGust">
32           <fields>
33             <field type="Value" column="10" approximation_type="Average" />
34           </fields>
35         </data_provider>
36       </general_data_providers>
37       <scroller_data_providers>
38         <data_provider data_set="vancouverWeatherStat" column="4" />
39       </scroller_data_providers>
40     </data_providers>
41   </data>
42   <settings>
43     <data_grouping enabled="true" max_visible_points="250" />
44     <inside_margin top="30" right="40" />
45     <labels>
46       <label x_padding="5" y_padding="3">
47         <format><![CDATA[Vancouver (YVR) weather Highs and Lows]]></format>
48         <font family="Tahoma" size="13" color="#494949" bold="true" />
49       </label>
50     </labels>
51     <range_selector enabled="true">
52       <presets>
53         <title>
54           <format><![CDATA[Years:]]></format>
55         </title>
56         <ranges>
57           <range type="Custom" start_date="2006-01-01" end_date="2006-12-31">
58             <format><![CDATA[2006]]></format>
59           </range>
60           <range type="Custom" start_date="2007-01-01" end_date="2007-12-31">
61             <format><![CDATA[2007]]></format>
62           </range>
63           <range type="Custom" start_date="2008-01-01" end_date="2008-12-31">
64             <format><![CDATA[2008]]></format>
65           </range>
66         </ranges>
67       </presets>
68     </range_selector>
69     <charts>
70       <chart height="100">
71         <x_axis>
72           <labels enabled="true" />
73         </x_axis>
74         <series_list>
75           <series type="Line" data_provider="dpMinTemp" color="#0066DD">
76             <name><![CDATA[Min Temp (C)]]></name>
77           </series>
78           <series type="Line" data_provider="dpMaxTemp" color="#DC3912">
79             <name><![CDATA[Max Temp (C)]]></name>
80           </series>
81         </series_list>
82       </chart>
83       <chart height="40">
84         <legend>
85           <title enabled="false" />
86           <date_time enabled="false" />
87         </legend>
88         <series_list>
89           <series type="Bar" data_provider="dpTotalRain" color="#20B2AA">
90             <name><![CDATA[Total Rain (mm)]]></name>
91           </series>
92         </series_list>
93         <value_axes>
94           <primary>
95             <scale minimum_mode="CustomValue" minimum="0" />
96           </primary>
97         </value_axes>
98       </chart>
99       <chart height="40">
100         <legend>
101           <title enabled="false" />
102           <date_time enabled="false" />
103         </legend>
104         <series_list>
105           <series type="Bar" data_provider="dpSpdOfMaxGust" color="#0065CE">
106             <name><![CDATA[Speed of Max Gust (km/h)]]></name>
107           </series>
108         </series_list>
109         <value_axes>
110           <primary>
111             <scale minimum_mode="CustomValue" minimum="0" />
112           </primary>
113         </value_axes>
114       </chart>
115     </charts>
116     <defaults>
117       <chart>
118         <value_axes>
119           <primary enabled="true" position="Right">
120             <labels position="Outside" show_first="true" show_last="true" valign="Center">
121               <format><![CDATA[{%Value}{numDecimals:0}]]></format>
122             </labels>
123             <scale optimal_step_count="3" />
124           </primary>
125         </value_axes>
126         <x_axis>
127           <labels enabled="false" />
128         </x_axis>
129         <legend>
130           <title>
131             <focus_settings>
132               <mouse_over>
133                 <format><![CDATA[ {%Date.Current}{"%yyyy-%MM-%dd"}: ]]></format>
134               </mouse_over>
135               <mouse_out>
136                 <format><![CDATA[ {%Date.LastVisible}{"%yyyy-%MM-%dd"}: ]]></format>
137               </mouse_out>
138             </focus_settings>
139           </title>
140           <date_time enabled="false" />
141         </legend>
142         <series_settings_defaults>
143           <line_series thickness="1">
144             <marker>
145               <states>
146                 <normal enabled="true" />
147               </states>
148             </marker>
149           </line_series>
150         </series_settings_defaults>
151       </chart>
152     </defaults>
153     <time_scale is_ordinal="true" max_ticks_count="10">
154       <selected_range type="Custom" start_date="2006-05-01" end_date="2007-04-13" />
155     </time_scale>
156     <scroller>
157       <time_scale max_ticks_count="6" />
158     </scroller>
159   </settings>
160 </stock>
01{
02  data: {
03    dataSets: [
04      {
05        id: "vancouverWeatherStat",
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: "vancouverWeatherStat",
23          id: "dpMaxTemp",
24          fields: [
25            {
26              type: "Value",
27              column: 2,
28              approximationType: "Average"
29            }
30          ]
31        },
32        {
33          dataSet: "vancouverWeatherStat",
34          id: "dpMinTemp",
35          fields: [
36            {
37              type: "Value",
38              column: 3,
39              approximationType: "Average"
40            }
41          ]
42        },
43        {
44          dataSet: "vancouverWeatherStat",
45          id: "dpTotalRain",
46          fields: [
47            {
48              type: "Value",
49              column: 6,
50              approximationType: "Average"
51            }
52          ]
53        },
54        {
55          dataSet: "vancouverWeatherStat",
56          id: "dpSpdOfMaxGust",
57          fields: [
58            {
59              type: "Value",
60              column: 10,
61              approximationType: "Average"
62            }
63          ]
64        }
65      ],
66      scrollerDataProviders: [
67        {
68          dataSet: "vancouverWeatherStat",
69          column: 4
70        }
71      ]
72    }
73  },
74  settings: {
75    dataGrouping: {
76      enabled: true,
77      maxVisiblePoints: 250
78    },
79    insideMargin: {
80      top: 30,
81      right: 40
82    },
83    labels: [
84      {
85        xPadding: 5,
86        yPadding: 3,
87        format: "Vancouver (YVR) weather Highs and Lows",
88        font: {
89          family: "Tahoma",
90          size: 13,
91          color: "#494949",
92          bold: true
93        }
94      }
95    ],
96    rangeSelector: {
97      enabled: true,
98      presets: {
99        title: {
100          format: "Years:"
101        },
102        ranges: [
103          {
104            type: "Custom",
105            startDate: "2006-01-01",
106            endDate: "2006-12-31",
107            format: "2006"
108          },
109          {
110            type: "Custom",
111            startDate: "2007-01-01",
112            endDate: "2007-12-31",
113            format: "2007"
114          },
115          {
116            type: "Custom",
117            startDate: "2008-01-01",
118            endDate: "2008-12-31",
119            format: "2008"
120          }
121        ]
122      }
123    },
124    charts: [
125      {
126        height: 100,
127        xAxis: {
128          labels: {
129            enabled: true
130          }
131        },
132        seriesList: [
133          {
134            type: "Line",
135            dataProvider: "dpMinTemp",
136            color: "#0066DD",
137            name: "Min Temp (C)"
138          },
139          {
140            type: "Line",
141            dataProvider: "dpMaxTemp",
142            color: "#DC3912",
143            name: "Max Temp (C)"
144          }
145        ]
146      },
147      {
148        height: 40,
149        legend: {
150          title: {
151            enabled: false
152          },
153          dateTime: {
154            enabled: false
155          }
156        },
157        seriesList: [
158          {
159            type: "Bar",
160            dataProvider: "dpTotalRain",
161            color: "#20B2AA",
162            name: "Total Rain (mm)"
163          }
164        ],
165        valueAxes: {
166          primary: {
167            scale: {
168              minimumMode: "CustomValue",
169              minimum: 0
170            }
171          }
172        }
173      },
174      {
175        height: 40,
176        legend: {
177          title: {
178            enabled: false
179          },
180          dateTime: {
181            enabled: false
182          }
183        },
184        seriesList: [
185          {
186            type: "Bar",
187            dataProvider: "dpSpdOfMaxGust",
188            color: "#0065CE",
189            name: "Speed of Max Gust (km/h)"
190          }
191        ],
192        valueAxes: {
193          primary: {
194            scale: {
195              minimumMode: "CustomValue",
196              minimum: 0
197            }
198          }
199        }
200      }
201    ],
202    defaults: {
203      chart: {
204        valueAxes: {
205          primary: {
206            enabled: true,
207            position: "Right",
208            labels: {
209              position: "Outside",
210              showFirst: true,
211              showLast: true,
212              valign: "Center",
213              format: "{%Value}{numDecimals:0}"
214            },
215            scale: {
216              optimalStepCount: 3
217            }
218          }
219        },
220        xAxis: {
221          labels: {
222            enabled: false
223          }
224        },
225        legend: {
226          title: {
227            focusSettings: {
228              mouseOver: {
229                format: " {%Date.Current}{\"%yyyy-%MM-%dd\"}: "
230              },
231              mouseOut: {
232                format: " {%Date.LastVisible}{\"%yyyy-%MM-%dd\"}: "
233              }
234            }
235          },
236          dateTime: {
237            enabled: false
238          }
239        },
240        seriesSettingsDefaults: {
241          lineSeries: {
242            thickness: 1,
243            marker: {
244              states: {
245                normal: {
246                  enabled: true
247                }
248              }
249            }
250          }
251        }
252      }
253    },
254    timeScale: {
255      isOrdinal: true,
256      maxTicksCount: 10,
257      selectedRange: {
258        type: "Custom",
259        startDate: "2006-05-01",
260        endDate: "2007-04-13"
261      }
262    },
263    scroller: {
264      timeScale: {
265        maxTicksCount: 6
266      }
267    }
268  }
269}

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.