如何使折线图中数据与数据集连接,高手进
你好:各位
我这个页面目的是实现一个折线统计图,但数据在数据库中,我找到了一个折线图的例子,但数据使静态的。
问题是使如何将1.asp饼图与数据库中数据联系?( 要修改class吗?小弟没学过,请大侠帮忙,我可以提供class)
还有其他折线图吗
<APPLET NAME=linechart codebase= "../classes " CODE=NFLineChartApp.class WIDTH=650 HEIGHT=300>
<PARAM NAME=NFParamScript VALUE = '
Background= (white, NONE, 0);
GraphType= ROWS;
Grid= (dimgray, white, black);
GridLine= (HORIZONTAL, DASHED, 1);
Legend= ( " ", black, "Helvetica ", 10);
LegendBox= (white, NONE, 1,,, white);
Header= ( "ssdsdsd ", black, "Helvetica ",33);
BottomTics= ( "ON ", black, "Helvetica ", 10);
BottomLabels = "1月 ", "2月 ", "3月 ", "4月 ", "5月 ", "6月 ", "7月 ", "8月 ", "9月 ", "10月 ", "11月 ", "12月 ";
LeftFormat = (INTEGER, "%d处 ");
LeftScale= (0,250);
LeftTics= ( "ON ", black, "Helvetica ", 10);
LeftTitle= ( "处数 ", black, "Helvetica ", 12);
RightTitle= ( "类型 ", black, "Helvetica ", 12);
LineSymbol =
(IMAGE,,,,, "NETCHARTS/demo/hammer.gif "),
(IMAGE,,,,, "NETCHARTS/demo/clamp.gif "),
(IMAGE,,,,, "NETCHARTS/demo/wrench.gif "),
(IMAGE,,,,, "NETCHARTS/demo/pliers.gif ");
LineStyle =
(SOLID, 3, blue),
(SOLID, 3, red),
(SOLID, 3, green),
(SOLID, 3, orange);
LineSets =
( "基建管线 ", blue),
( "用户管线 ", red),
( "汇总 ", green),
( "汇总1 ", orange);
LineSet1 = 30, 60, 100, 50, 90;//////如何解决?我改写的另一个饼图就可以。改成变量就有错
LineSet2 = 60, 50, 10, 40, 20;//////如何解决?我改写的另一个饼图就可以。改成变量就有错
LineSet3 = 50, 20, 49, 10, 89;//////如何解决?我改写的另一个饼图就可以。改成变量就有错
LineSet4 = 40, 50, 150, 150, 200;//////如何解决?我改写的另一个饼图就可以。改成变量就有错
'>
------解决方案--------------------当然要用数据库中的数据做数据源了,折线、饼形、柱形的我都做过,不过是用VML