<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>Main page</title> <script src="../../codebase/dhtmlxchart.js" type="text/javascript"></script> <link rel="STYLESHEET" type="text/css" href="../../codebase/dhtmlxchart.css"> <script> var data1 = [ { sales:"3.0",sales1:"4.4",sales2:"1.4",sales3:"6.9", year:"2000" }, { sales:"4.5",sales1:"3.2",sales2:"2.5",sales3:"7.5", year:"2001" }, { sales:"3.4",sales1:"4.7",sales2:"1.9",sales3:"5.5", year:"2002" } ]; window.onload = function(){ var splineChart = new dhtmlXChart({ view:"spline", container:"chart1", value:"#sales#", // color:"#6148ff", item:{ borderColor: "#6148ff", color: "#6148ff" }, line:{ color:"#6148ff", width:4 }, }) splineChart.addSeries({ value:"#sales1#" }); splineChart.addSeries({ value:"#sales2#" }); splineChart.parse(data1,"json"); } </script> </head> <body > <h1>Main Page</h1> <td><div id="chart1" style="width:350px;height:200px;border:1px solid #A4BED4;"></div></td> </body> </html>