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="5" ma_type="SMA" use_range_based_series="false">
68               <upper_series color="DarkRed" type="Line">
69                 <name><![CDATA[ENV(20,5)]]></name>
70               </upper_series>
71               <lower_series color="DarkRed" type="Line" />
72             </ma_envelopes_indicator>
73           </technical_indicator>
74           <technical_indicator type="SMA" data_provider="dp1">
75             <sma_indicator period="20">
76               <series color="DarkRed">
77                 <line_series opacity="0.4" />
78               </series>
79             </sma_indicator>
80           </technical_indicator>
81         </technical_indicators>
82       </chart>
83     </charts>
84     <time_scale>
85       <selected_range type="YTD" />
86     </time_scale>
87     <range_selector enabled="true" />
88   </settings>
89 </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: 5,
141              maType: "SMA",
142              useRangeBasedSeries: false,
143              upperSeries: {
144                color: "DarkRed",
145                type: "Line",
146                name: "ENV(20,5)"
147              },
148              lowerSeries: {
149                color: "DarkRed",
150                type: "Line"
151              }
152            }
153          },
154          {
155            type: "SMA",
156            dataProvider: "dp1",
157            smaIndicator: {
158              period: 20,
159              series: {
160                color: "DarkRed",
161                lineSeries: {
162                  opacity: 0.4
163                }
164              }
165            }
166          }
167        ]
168      }
169    ],
170    timeScale: {
171      selectedRange: {
172        type: "YTD"
173      }
174    },
175    rangeSelector: {
176      enabled: true
177    }
178  }
179}

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.