日期:2014-05-17 浏览次数:20520 次
<script language="javascript" type="text/javascript">
$(document).ready(function () {
wait();
function wait()
{
$.post("GetChartData.do", { content: "-1" },
function (data, status)
{
eval(data);
var myChart = new JSChart('graph', 'line');
myChart.setDataArray(myData);
myChart.setTitle('this is a Demo Charts ');
myChart.setTitleColor('#8E8E8E');
myChart.setTitleFontSize(11);
myChart.setAxisNameX('Years');
myChart.setAxisNameY('Values');
myChart.setAxisColor('#C4C4C4');
myChart.setAxisValuesColor('#343434');
myChart.setAxisPaddingLeft(50);
myChart.setAxisPaddingRight(50);
myChart.setAxisPaddingTop(50);
myChart.setAxisPaddingBottom(40);
myChart.setAxisValuesNumberX(6);
myChart.setGraphExtend(true);
myChart.setGridColor('#c2c2c2');
myChart.setLineWidth(6);
myChart.setLineColor('#9F0505');
myChart.setSize(616, 321);
myChart.setBackgroundImage('chart_bg.jpg');