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_sets>
14     <data_providers>
15       <general_data_providers>
16         <data_provider data_set="dataSet1" id="dp1">
17           <fields>
18             <field type="Value" column="4" approximation_type="Close" />
19             <field type="Volume" column="5" approximation_type="Average" />
20           </fields>
21         </data_provider>
22       </general_data_providers>
23       <scroller_data_providers>
24         <data_provider data_set="dataSet1" column="4" />
25       </scroller_data_providers>
26     </data_providers>
27   </data>
28   <settings>
29     <inside_margin left="50" top="15" right="15" bottom="15" />
30     <outside_margin all="10" />
31     <background enabled="true">
32       <fill enabled="true" type="Gradient">
33         <gradient angle="90">
34           <keys>
35             <key color="#FFFFFF" />
36             <key color="#EEEEEE" />
37             <key color="#FFFFFF" />
38           </keys>
39         </gradient>
40       </fill>
41       <border enabled="true" color="#2466B1" thickness="2" />
42       <corners type="Rounded" all="10" />
43     </background>
44     <charts>
45       <chart height="100">
46         <value_axes>
47           <primary>
48             <scale mode="PercentChanges" />
49             <labels enabled="true" position="Outside" padding="5" valign="Center" show_first="true" show_last="true">
50               <format><![CDATA[{%Value}{numDecimals:0}%]]></format>
51             </labels>
52             <zero_line enabled="true" color="DarkRed" opacity="0.7" />
53           </primary>
54         </value_axes>
55         <series_list>
56           <series type="Line" data_provider="dp1" color="#DC3912">
57             <name><![CDATA[MSFT]]></name>
58           </series>
59         </series_list>
60       </chart>
61       <chart height="50">
62         <technical_indicators>
63           <technical_indicator type="VolumeMA" data_provider="dp1" />
64         </technical_indicators>
65         <value_axes>
66           <primary>
67             <scale minimum="0" />
68             <labels position="Outside" valign="Center" show_first="true" show_last="true">
69               <format><![CDATA[{%Value}{scale:(1000)(1000)(1000)|( K)( M)( B),numDecimals:0}]]></format>
70             </labels>
71           </primary>
72         </value_axes>
73         <x_axis>
74           <labels enabled="false" />
75         </x_axis>
76       </chart>
77     </charts>
78     <range_selector enabled="true" />
79     <time_scale>
80       <selected_range type="Unit" unit="Year" count="2" />
81     </time_scale>
82     <defaults>
83       <chart>
84         <legend>
85           <date_time enabled="false" />
86         </legend>
87       </chart>
88     </defaults>
89   </settings>
90 </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    dataProviders: {
20      generalDataProviders: [
21        {
22          dataSet: "dataSet1",
23          id: "dp1",
24          fields: [
25            {
26              type: "Value",
27              column: 4,
28              approximationType: "Close"
29            },
30            {
31              type: "Volume",
32              column: 5,
33              approximationType: "Average"
34            }
35          ]
36        }
37      ],
38      scrollerDataProviders: [
39        {
40          dataSet: "dataSet1",
41          column: 4
42        }
43      ]
44    }
45  },
46  settings: {
47    insideMargin: {
48      left: 50,
49      top: 15,
50      right: 15,
51      bottom: 15
52    },
53    outsideMargin: {
54      all: 10
55    },
56    background: {
57      enabled: true,
58      fill: {
59        enabled: true,
60        type: "Gradient",
61        gradient: {
62          angle: 90,
63          keys: [
64            {
65              color: "#FFFFFF"
66            },
67            {
68              color: "#EEEEEE"
69            },
70            {
71              color: "#FFFFFF"
72            }
73          ]
74        }
75      },
76      border: {
77        enabled: true,
78        color: "#2466B1",
79        thickness: 2
80      },
81      corners: {
82        type: "Rounded",
83        all: 10
84      }
85    },
86    charts: [
87      {
88        height: 100,
89        valueAxes: {
90          primary: {
91            scale: {
92              mode: "PercentChanges"
93            },
94            labels: {
95              enabled: true,
96              position: "Outside",
97              padding: 5,
98              valign: "Center",
99              showFirst: true,
100              showLast: true,
101              format: "{%Value}{numDecimals:0}%"
102            },
103            zeroLine: {
104              enabled: true,
105              color: "DarkRed",
106              opacity: 0.7
107            }
108          }
109        },
110        seriesList: [
111          {
112            type: "Line",
113            dataProvider: "dp1",
114            color: "#DC3912",
115            name: "MSFT"
116          }
117        ]
118      },
119      {
120        height: 50,
121        technicalIndicators: [
122          {
123            type: "VolumeMA",
124            dataProvider: "dp1"
125          }
126        ],
127        valueAxes: {
128          primary: {
129            scale: {
130              minimum: 0
131            },
132            labels: {
133              position: "Outside",
134              valign: "Center",
135              showFirst: true,
136              showLast: true,
137              format: "{%Value}{scale:(1000)(1000)(1000)|( K)( M)( B),numDecimals:0}"
138            }
139          }
140        },
141        xAxis: {
142          labels: {
143            enabled: false
144          }
145        }
146      }
147    ],
148    rangeSelector: {
149      enabled: true
150    },
151    timeScale: {
152      selectedRange: {
153        type: "Unit",
154        unit: "Year",
155        count: 2
156      }
157    },
158    defaults: {
159      chart: {
160        legend: {
161          dateTime: {
162            enabled: false
163          }
164        }
165      }
166    }
167  }
168}

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.