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_short.csv">
06         <csv_settings ignore_first_row="true" rows_separator="\n" />
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="High" column="2" approximation_type="High" />
19             <field type="Low" column="3" approximation_type="Low" />
20             <field type="Close" column="4" approximation_type="Close" />
21           </fields>
22         </data_provider>
23       </general_data_providers>
24       <scroller_data_providers>
25         <data_provider data_set="dataSet1" column="4" />
26       </scroller_data_providers>
27     </data_providers>
28   </data>
29   <settings>
30     <inside_margin right="35" />
31     <data_grouping enabled="false" />
32     <charts>
33       <chart>
34         <legend>
35           <date_time enabled="false" />
36         </legend>
37         <value_axes>
38           <primary position="Right">
39             <labels position="Outside" padding="3" valign="Center" show_first="true" show_last="true">
40               <font family="Verdana" color="#444444" bold="true" size="9" />
41               <format><![CDATA[{%Value}{numDecimals:2,trailingZeros:false}]]></format>
42             </labels>
43             <scale minimum_offset="0" />
44             <grid>
45               <line dashed="true" dash_length="3" dash_space="3" pixel_hinting="true" />
46             </grid>
47             <tickmarks enabled="true" show_first="true" show_last="true" thickness="1" size="3" pixel_hinting="true" color="#333333" />
48           </primary>
49         </value_axes>
50         <x_axis>
51           <major_grid>
52             <line opacity="1" color="#D9D9D9" />
53           </major_grid>
54           <minor_grid>
55             <line dashed="true" dash_length="3" dash_space="3" pixel_hinting="true" />
56           </minor_grid>
57         </x_axis>
58         <series_list>
59           <series id="idCscoSeries" type="Line" data_provider="dp1" color="#0066DD">
60             <line_series thickness="2" />
61             <name><![CDATA[CSCO]]></name>
62             <legend_item line_break="true" />
63           </series>
64         </series_list>
65         <technical_indicators>
66           <technical_indicator type="MAEnvelopes" data_provider="dp1">
67             <ma_envelopes_indicator period="20" deviation="10" ma_type="SMA" use_range_based_series="true">
68               <lower_series color="DarkRed" type="Line" />
69               <range_based_series type="RangeArea" color="DarkRed">
70                 <name><![CDATA[ENV(20,10)]]></name>
71                 <range_area_series>
72                   <fill color="%Color" opacity="0.05" />
73                   <low>
74                     <line color="%Color" thickness="1" opacity="1" />
75                   </low>
76                   <high>
77                     <line color="%Color" thickness="1" opacity="1" />
78                   </high>
79                 </range_area_series>
80               </range_based_series>
81             </ma_envelopes_indicator>
82           </technical_indicator>
83           <technical_indicator type="SMA" data_provider="dp1">
84             <sma_indicator period="20">
85               <series color="DarkRed">
86                 <line_series opacity="0.6" />
87               </series>
88             </sma_indicator>
89           </technical_indicator>
90         </technical_indicators>
91       </chart>
92     </charts>
93     <time_scale>
94       <selected_range type="Unit" unit="Year" count="5" />
95     </time_scale>
96     <range_selector enabled="true" />
97   </settings>
98 </stock>
01{
02  data: {
03    dataSets: [
04      {
05        id: "dataSet1",
06        sourceUrl: "./../../csv-data/csco_daily_short.csv",
07        csvSettings: {
08          ignoreFirstRow: true,
09          rowsSeparator: "\n"
10        },
11        locale: {
12          dateTime: {
13            format: "%yyyy%MM%dd"
14          }
15        }
16      }
17    ],
18    dataProviders: {
19      generalDataProviders: [
20        {
21          dataSet: "dataSet1",
22          id: "dp1",
23          fields: [
24            {
25              type: "High",
26              column: 2,
27              approximationType: "High"
28            },
29            {
30              type: "Low",
31              column: 3,
32              approximationType: "Low"
33            },
34            {
35              type: "Close",
36              column: 4,
37              approximationType: "Close"
38            }
39          ]
40        }
41      ],
42      scrollerDataProviders: [
43        {
44          dataSet: "dataSet1",
45          column: 4
46        }
47      ]
48    }
49  },
50  settings: {
51    insideMargin: {
52      right: 35
53    },
54    dataGrouping: {
55      enabled: false
56    },
57    charts: [
58      {
59        legend: {
60          dateTime: {
61            enabled: false
62          }
63        },
64        valueAxes: {
65          primary: {
66            position: "Right",
67            labels: {
68              position: "Outside",
69              padding: 3,
70              valign: "Center",
71              showFirst: true,
72              showLast: true,
73              font: {
74                family: "Verdana",
75                color: "#444444",
76                bold: true,
77                size: 9
78              },
79              format: "{%Value}{numDecimals:2,trailingZeros:false}"
80            },
81            scale: {
82              minimumOffset: 0
83            },
84            grid: {
85              line: {
86                dashed: true,
87                dashLength: 3,
88                dashSpace: 3,
89                pixelHinting: true
90              }
91            },
92            tickmarks: {
93              enabled: true,
94              showFirst: true,
95              showLast: true,
96              thickness: 1,
97              size: 3,
98              pixelHinting: true,
99              color: "#333333"
100            }
101          }
102        },
103        xAxis: {
104          majorGrid: {
105            line: {
106              opacity: 1,
107              color: "#D9D9D9"
108            }
109          },
110          minorGrid: {
111            line: {
112              dashed: true,
113              dashLength: 3,
114              dashSpace: 3,
115              pixelHinting: true
116            }
117          }
118        },
119        seriesList: [
120          {
121            id: "idCscoSeries",
122            type: "Line",
123            dataProvider: "dp1",
124            color: "#0066DD",
125            lineSeries: {
126              thickness: 2
127            },
128            name: "CSCO",
129            legendItem: {
130              lineBreak: true
131            }
132          }
133        ],
134        technicalIndicators: [
135          {
136            type: "MAEnvelopes",
137            dataProvider: "dp1",
138            maEnvelopesIndicator: {
139              period: 20,
140              deviation: 10,
141              maType: "SMA",
142              useRangeBasedSeries: true,
143              lowerSeries: {
144                color: "DarkRed",
145                type: "Line"
146              },
147              rangeBasedSeries: {
148                type: "RangeArea",
149                color: "DarkRed",
150                name: "ENV(20,10)",
151                rangeAreaSeries: {
152                  fill: {
153                    color: "%Color",
154                    opacity: 0.05
155                  },
156                  low: {
157                    line: {
158                      color: "%Color",
159                      thickness: 1,
160                      opacity: 1
161                    }
162                  },
163                  high: {
164                    line: {
165                      color: "%Color",
166                      thickness: 1,
167                      opacity: 1
168                    }
169                  }
170                }
171              }
172            }
173          },
174          {
175            type: "SMA",
176            dataProvider: "dp1",
177            smaIndicator: {
178              period: 20,
179              series: {
180                color: "DarkRed",
181                lineSeries: {
182                  opacity: 0.6
183                }
184              }
185            }
186          }
187        ]
188      }
189    ],
190    timeScale: {
191      selectedRange: {
192        type: "Unit",
193        unit: "Year",
194        count: 5
195      }
196    },
197    rangeSelector: {
198      enabled: true
199    }
200  }
201}

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.