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:
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