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/msft_daily_short.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_set id="dataSet2" source_url="./../../csv-data/orcl_daily_short.csv">
14         <csv_settings ignore_first_row="true" rows_separator="\n" columns_separator="," />
15         <locale>
16           <date_time>
17             <format><![CDATA[%yyyy%MM%dd]]></format>
18           </date_time>
19         </locale>
20       </data_set>
21     </data_sets>
22     <data_providers>
23       <general_data_providers>
24         <data_provider data_set="dataSet1" id="dpMsft">
25           <fields>
26             <field type="Value" column="4" approximation_type="Close" />
27           </fields>
28         </data_provider>
29         <data_provider data_set="dataSet2" id="dpOrcl">
30           <fields>
31             <field type="Value" column="4" approximation_type="Close" />
32           </fields>
33         </data_provider>
34       </general_data_providers>
35       <scroller_data_providers>
36         <data_provider data_set="dataSet1" column="4" />
37       </scroller_data_providers>
38     </data_providers>
39   </data>
40   <settings>
41     <inside_margin right="50" />
42     <charts>
43       <chart id="idMainChart">
44         <legend>
45           <title enabled="true" width="70" />
46           <date_time enabled="false" />
47         </legend>
48         <series_list>
49           <series id="idMsft" type="Line" color="#DC3912" data_provider="dpMsft">
50             <name><![CDATA[MSFT]]></name>
51           </series>
52           <series id="idOrcl" type="Line" color="#0066DD" data_provider="dpOrcl">
53             <name><![CDATA[ORCL]]></name>
54           </series>
55         </series_list>
56         <value_axes>
57           <primary position="Right">
58             <scale mode="PercentChanges" />
59             <grid>
60               <line dashed="true" dash_length="3" dash_space="3" pixel_hinting="true" />
61             </grid>
62             <labels valign="Center" position="Outside" padding="3" show_first="true" show_last="true">
63               <font color="%Color" family="Tahoma" size="10" bold="true" />
64               <format><![CDATA[{%ChangeIcon} {%Value}{numDecimals:0,plusSign:true}%]]></format>
65             </labels>
66             <zero_line enabled="true" color="#999999" opacity="1" />
67           </primary>
68         </value_axes>
69         <x_axis>
70           <major_grid>
71             <line opacity="1" color="#CCCCCC" />
72           </major_grid>
73           <minor_grid>
74             <line dashed="true" dash_length="3" dash_space="3" pixel_hinting="true" />
75           </minor_grid>
76         </x_axis>
77       </chart>
78     </charts>
79     <time_scale>
80       <selected_range type="Unit" unit="Year" count="2" />
81     </time_scale>
82   </settings>
83 </stock>
01{
02  data: {
03    dataSets: [
04      {
05        id: "dataSet1",
06        sourceUrl: "./../../csv-data/msft_daily_short.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        id: "dataSet2",
20        sourceUrl: "./../../csv-data/orcl_daily_short.csv",
21        csvSettings: {
22          ignoreFirstRow: true,
23          rowsSeparator: "\n",
24          columnsSeparator: ","
25        },
26        locale: {
27          dateTime: {
28            format: "%yyyy%MM%dd"
29          }
30        }
31      }
32    ],
33    dataProviders: {
34      generalDataProviders: [
35        {
36          dataSet: "dataSet1",
37          id: "dpMsft",
38          fields: [
39            {
40              type: "Value",
41              column: 4,
42              approximationType: "Close"
43            }
44          ]
45        },
46        {
47          dataSet: "dataSet2",
48          id: "dpOrcl",
49          fields: [
50            {
51              type: "Value",
52              column: 4,
53              approximationType: "Close"
54            }
55          ]
56        }
57      ],
58      scrollerDataProviders: [
59        {
60          dataSet: "dataSet1",
61          column: 4
62        }
63      ]
64    }
65  },
66  settings: {
67    insideMargin: {
68      right: 50
69    },
70    charts: [
71      {
72        id: "idMainChart",
73        legend: {
74          title: {
75            enabled: true,
76            width: 70
77          },
78          dateTime: {
79            enabled: false
80          }
81        },
82        seriesList: [
83          {
84            id: "idMsft",
85            type: "Line",
86            color: "#DC3912",
87            dataProvider: "dpMsft",
88            name: "MSFT"
89          },
90          {
91            id: "idOrcl",
92            type: "Line",
93            color: "#0066DD",
94            dataProvider: "dpOrcl",
95            name: "ORCL"
96          }
97        ],
98        valueAxes: {
99          primary: {
100            position: "Right",
101            scale: {
102              mode: "PercentChanges"
103            },
104            grid: {
105              line: {
106                dashed: true,
107                dashLength: 3,
108                dashSpace: 3,
109                pixelHinting: true
110              }
111            },
112            labels: {
113              valign: "Center",
114              position: "Outside",
115              padding: 3,
116              showFirst: true,
117              showLast: true,
118              font: {
119                color: "%Color",
120                family: "Tahoma",
121                size: 10,
122                bold: true
123              },
124              format: "{%ChangeIcon} {%Value}{numDecimals:0,plusSign:true}%"
125            },
126            zeroLine: {
127              enabled: true,
128              color: "#999999",
129              opacity: 1
130            }
131          }
132        },
133        xAxis: {
134          majorGrid: {
135            line: {
136              opacity: 1,
137              color: "#CCCCCC"
138            }
139          },
140          minorGrid: {
141            line: {
142              dashed: true,
143              dashLength: 3,
144              dashSpace: 3,
145              pixelHinting: true
146            }
147          }
148        }
149      }
150    ],
151    timeScale: {
152      selectedRange: {
153        type: "Unit",
154        unit: "Year",
155        count: 2
156      }
157    }
158  }
159}

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.