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/csco_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       </general_data_providers>
22       <scroller_data_providers>
23         <data_provider data_set="dataSet1" column="4" />
24       </scroller_data_providers>
25     </data_providers>
26   </data>
27   <settings>
28     <data_grouping enabled="true" max_visible_points="720" />
29     <inside_margin right="35" />
30     <range_selector enabled="true" />
31     <charts>
32       <chart>
33         <legend>
34           <date_time enabled="false" />
35         </legend>
36         <series_list>
37           <series type="Line" data_provider="dp1" color="#253992">
38             <name><![CDATA[CSCO]]></name>
39             <line_series thickness="2" />
40           </series>
41         </series_list>
42         <technical_indicators>
43           <technical_indicator type="SMA" data_provider="dp1">
44             <sma_indicator period="20">
45               <series type="Spline" color="#DB2A0E">
46                 <name><![CDATA[SMA(20)]]></name>
47               </series>
48             </sma_indicator>
49           </technical_indicator>
50           <technical_indicator type="SMA" data_provider="dp1">
51             <sma_indicator period="50">
52               <series type="Spline" color="#0066DD">
53                 <name><![CDATA[SMA(50)]]></name>
54               </series>
55             </sma_indicator>
56           </technical_indicator>
57         </technical_indicators>
58         <value_axes>
59           <primary position="Right">
60             <labels position="Outside" padding="3" valign="Center" show_first="true" show_last="true">
61               <font family="Verdana" color="#444444" bold="true" size="9" />
62               <format><![CDATA[{%Value}{numDecimals:2,trailingZeros:false}]]></format>
63             </labels>
64             <scale minimum_offset="0" />
65             <grid>
66               <line dashed="true" dash_length="3" dash_space="3" pixel_hinting="true" />
67             </grid>
68             <tickmarks enabled="true" show_first="true" show_last="true" thickness="1" size="3" pixel_hinting="true" color="#333333" />
69           </primary>
70         </value_axes>
71         <x_axis>
72           <major_grid>
73             <line opacity="1" color="#D9D9D9" />
74           </major_grid>
75           <minor_grid>
76             <line dashed="true" dash_length="3" dash_space="3" pixel_hinting="true" />
77           </minor_grid>
78         </x_axis>
79       </chart>
80     </charts>
81     <time_scale>
82       <selected_range type="Unit" unit="Year" count="5" />
83     </time_scale>
84   </settings>
85 </stock>
01{
02  data: {
03    dataSets: [
04      {
05        id: "dataSet1",
06        sourceUrl: "./../../csv-data/csco_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      scrollerDataProviders: [
34        {
35          dataSet: "dataSet1",
36          column: 4
37        }
38      ]
39    }
40  },
41  settings: {
42    dataGrouping: {
43      enabled: true,
44      maxVisiblePoints: 720
45    },
46    insideMargin: {
47      right: 35
48    },
49    rangeSelector: {
50      enabled: true
51    },
52    charts: [
53      {
54        legend: {
55          dateTime: {
56            enabled: false
57          }
58        },
59        seriesList: [
60          {
61            type: "Line",
62            dataProvider: "dp1",
63            color: "#253992",
64            name: "CSCO",
65            lineSeries: {
66              thickness: 2
67            }
68          }
69        ],
70        technicalIndicators: [
71          {
72            type: "SMA",
73            dataProvider: "dp1",
74            smaIndicator: {
75              period: 20,
76              series: {
77                type: "Spline",
78                color: "#DB2A0E",
79                name: "SMA(20)"
80              }
81            }
82          },
83          {
84            type: "SMA",
85            dataProvider: "dp1",
86            smaIndicator: {
87              period: 50,
88              series: {
89                type: "Spline",
90                color: "#0066DD",
91                name: "SMA(50)"
92              }
93            }
94          }
95        ],
96        valueAxes: {
97          primary: {
98            position: "Right",
99            labels: {
100              position: "Outside",
101              padding: 3,
102              valign: "Center",
103              showFirst: true,
104              showLast: true,
105              font: {
106                family: "Verdana",
107                color: "#444444",
108                bold: true,
109                size: 9
110              },
111              format: "{%Value}{numDecimals:2,trailingZeros:false}"
112            },
113            scale: {
114              minimumOffset: 0
115            },
116            grid: {
117              line: {
118                dashed: true,
119                dashLength: 3,
120                dashSpace: 3,
121                pixelHinting: true
122              }
123            },
124            tickmarks: {
125              enabled: true,
126              showFirst: true,
127              showLast: true,
128              thickness: 1,
129              size: 3,
130              pixelHinting: true,
131              color: "#333333"
132            }
133          }
134        },
135        xAxis: {
136          majorGrid: {
137            line: {
138              opacity: 1,
139              color: "#D9D9D9"
140            }
141          },
142          minorGrid: {
143            line: {
144              dashed: true,
145              dashLength: 3,
146              dashSpace: 3,
147              pixelHinting: true
148            }
149          }
150        }
151      }
152    ],
153    timeScale: {
154      selectedRange: {
155        type: "Unit",
156        unit: "Year",
157        count: 5
158      }
159    }
160  }
161}

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.