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/gspc_daily.csv">
06         <csv_settings ignore_first_row="true" rows_separator="\n" columns_separator="," />
07         <locale>
08           <date_time>
09             <format><![CDATA[%yyyy%MM%dd]]></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="Close" column="4" approximation_type="Close" />
19           </fields>
20         </data_provider>
21         <data_provider data_set="dataSet1" id="dp2">
22           <fields>
23             <field type="Value" column="5" approximation_type="Average" />
24           </fields>
25         </data_provider>
26       </general_data_providers>
27       <scroller_data_providers>
28         <data_provider data_set="dataSet1" column="4" />
29       </scroller_data_providers>
30     </data_providers>
31   </data>
32   <settings>
33     <data_grouping enabled="true" max_visible_points="200" />
34     <range_selector enabled="true" />
35     <labels>
36       <label anchor="LeftTop" x_padding="35">
37         <format><![CDATA[S&P 500 INDEX,RTH (^GSPC): Historical Prices (1950-2009)]]></format>
38         <font family="Tahoma" size="11" color="#064367" bold="true" underline="false" />
39       </label>
40     </labels>
41     <inside_margin left="35" right="50" top="23" />
42     <charts>
43       <chart height="100">
44         <legend>
45           <date_time enabled="false" />
46           <background>
47             <fill type="Solid" color="White" />
48           </background>
49         </legend>
50         <series_list>
51           <series type="Spline" data_provider="dp1" color="#005ECB">
52             <name><![CDATA[Value:]]></name>
53             <line_series thickness="2" />
54             <marker>
55               <states>
56                 <normal enabled="true" />
57               </states>
58             </marker>
59           </series>
60           <series type="Bar" data_provider="dp2" color="#CB5E00" axis="secondary">
61             <name><![CDATA[Volume:]]></name>
62           </series>
63         </series_list>
64         <value_axes>
65           <primary enabled="true">
66             <labels position="Outside" padding="3" valign="Center" show_first="true" show_last="true">
67               <format><![CDATA[{%Value}{numDecimals:0}]]></format>
68               <font family="Tahoma" size="9" bold="true" color="#333333" />
69             </labels>
70             <scale mode="Values" type="Linear" minimum_mode="CustomValue" minimum="0" />
71           </primary>
72           <extra>
73             <axis id="secondary" position="Right">
74               <labels position="Outside" padding="3" valign="Center" show_first="true" show_last="true">
75                 <format><![CDATA[{%Value}{scale:(1000)(1000)(1000)|( K)( M)( B),numDecimals:0}]]></format>
76                 <font family="Tahoma" size="9" bold="true" color="#333333" />
77               </labels>
78               <scale mode="Values" type="Linear" minimum="0" calculate_changes_from="FirstVisible" />
79             </axis>
80           </extra>
81         </value_axes>
82         <x_axis>
83           <labels>
84             <background>
85               <fill type="Solid" color="#FDFDFD" />
86             </background>
87           </labels>
88         </x_axis>
89       </chart>
90     </charts>
91     <time_scale>
92       <selected_range type="Unit" unit="Year" count="10" />
93     </time_scale>
94   </settings>
95 </stock>
01{
02  data: {
03    dataSets: [
04      {
05        id: "dataSet1",
06        sourceUrl: "./../../csv-data/gspc_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: "Close",
27              column: 4,
28              approximationType: "Close"
29            }
30          ]
31        },
32        {
33          dataSet: "dataSet1",
34          id: "dp2",
35          fields: [
36            {
37              type: "Value",
38              column: 5,
39              approximationType: "Average"
40            }
41          ]
42        }
43      ],
44      scrollerDataProviders: [
45        {
46          dataSet: "dataSet1",
47          column: 4
48        }
49      ]
50    }
51  },
52  settings: {
53    dataGrouping: {
54      enabled: true,
55      maxVisiblePoints: 200
56    },
57    rangeSelector: {
58      enabled: true
59    },
60    labels: [
61      {
62        anchor: "LeftTop",
63        xPadding: 35,
64        format: "S&P 500 INDEX,RTH (^GSPC): Historical Prices (1950-2009)",
65        font: {
66          family: "Tahoma",
67          size: 11,
68          color: "#064367",
69          bold: true,
70          underline: false
71        }
72      }
73    ],
74    insideMargin: {
75      left: 35,
76      right: 50,
77      top: 23
78    },
79    charts: [
80      {
81        height: 100,
82        legend: {
83          dateTime: {
84            enabled: false
85          },
86          background: {
87            fill: {
88              type: "Solid",
89              color: "White"
90            }
91          }
92        },
93        seriesList: [
94          {
95            type: "Spline",
96            dataProvider: "dp1",
97            color: "#005ECB",
98            name: "Value:",
99            lineSeries: {
100              thickness: 2
101            },
102            marker: {
103              states: {
104                normal: {
105                  enabled: true
106                }
107              }
108            }
109          },
110          {
111            type: "Bar",
112            dataProvider: "dp2",
113            color: "#CB5E00",
114            axis: "secondary",
115            name: "Volume:"
116          }
117        ],
118        valueAxes: {
119          primary: {
120            enabled: true,
121            labels: {
122              position: "Outside",
123              padding: 3,
124              valign: "Center",
125              showFirst: true,
126              showLast: true,
127              format: "{%Value}{numDecimals:0}",
128              font: {
129                family: "Tahoma",
130                size: 9,
131                bold: true,
132                color: "#333333"
133              }
134            },
135            scale: {
136              mode: "Values",
137              type: "Linear",
138              minimumMode: "CustomValue",
139              minimum: 0
140            }
141          },
142          extra: [
143            {
144              id: "secondary",
145              position: "Right",
146              labels: {
147                position: "Outside",
148                padding: 3,
149                valign: "Center",
150                showFirst: true,
151                showLast: true,
152                format: "{%Value}{scale:(1000)(1000)(1000)|( K)( M)( B),numDecimals:0}",
153                font: {
154                  family: "Tahoma",
155                  size: 9,
156                  bold: true,
157                  color: "#333333"
158                }
159              },
160              scale: {
161                mode: "Values",
162                type: "Linear",
163                minimum: 0,
164                calculateChangesFrom: "FirstVisible"
165              }
166            }
167          ]
168        },
169        xAxis: {
170          labels: {
171            background: {
172              fill: {
173                type: "Solid",
174                color: "#FDFDFD"
175              }
176            }
177          }
178        }
179      }
180    ],
181    timeScale: {
182      selectedRange: {
183        type: "Unit",
184        unit: "Year",
185        count: 10
186      }
187    }
188  }
189}

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.