Line chart example

Hello!
I tried to use dhtmlx chart on my web site but there is a mistake. I used that code on my computer in software I prepare my web site. I changed url to files on my computer to "C:/MyWebSite/dhtmlxSuite/dhtmlxChart/codebase/… and so on.
But it does not work.
Can anybody give me a working short example of any chart in html?
Here is that code:

Line Chart: Initiazation var data = [ { sales:"3.8", year:"2001" }, { sales:"3.4", year:"2002" }, { sales:"4.1", year:"2003" }, { sales:"4.3", year:"2004" }, { sales:"9.9", year:"2005" }, { sales:"7.4", year:"2006" }, { sales:"9.0", year:"2007" }, { sales:"7.3", year:"2008" }, { sales:"4.8", year:"2009" } ];
    window.onload = function(){
   var lineChart =  new dhtmlXChart({
	view:"line",
	container:"chart_container",
        value:"#sales#",
	label:"#year#",
            tooltip: "#year#",
            item:{
                borderColor:"#ffffff",
                color:"#000000"
            },
            line:{
                 color:"#ff9900",
                 width:3
            },
			 xAxis:{
	     title:"Year",
	     template:"#year#"
	},
            yAxis:{
	     title:"Sales per year"
        },

    })

       lineChart.parse(data,"json");
    }
</script>
<div id="chart_container" style="width:450px;height:300px;border:1px solid #A4BED4;"></div>

Thanks.
Boguslaw

Hi,

here is the working chart sample:

dhtmlx.com/docs/products/dht … scale.html

You may also find samples in dhtmlxChart or Suite package that you downloaded from our website:

dhtmlxChart/samples/05_line_chart/03_scale.html

Check that paths to Chart libraries are correct in your sample. Also make sure that thidparty folder is in the same folder as dhtmlxchart.js library that you are using in the sample.