可以实现,可以用微软的office控件它的功能很强大。
我的一个例子如下:
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html;
charset=gb2312">
<TITLE></TITLE>
</HEAD>
<BODY background="../images/bgground.gif" bgproperties="fixed" topmargin="10">
<object id=msodsc classid=CLSID:0002E530-0000-0000-C000-000000000046></object>
<FORM action="" method=post id=frmGraph name=frmGraph>
<TABLE border=0 cellPadding=1 cellSpacing=1 width=100%>
<TR>
<TD width=80% align=middle>图例名称:客运分析
</TD>
<TD width=20% align=middle>
</TD>
</TR>
</TABLE>
<object id=ChartSpace1 classid=CLSID:0002E500-0000-0000-C000-000000000046
style="width:100%;height:260" VIEWASTEXT></object><hr>
</FORM>
</BODY>
</HTML>
<script LANGUAGE=vbscript>
Sub window_onload
dim strTemp,arryNumber
dim i,iCurrRst,iSumCount
dim aiValues(7)
aiValues(0) = 10
aiValues(1) = 22
aiValues(2) = 6
aiValues(3) = 50
aiValues(4) = 0
aiValues(5) = 14
aiValues(6) = 12
dim asCategories(7)
asCategories(0) = "Very Good"
asCategories(1) = "Good"
asCategories(2) = "N/A"
asCategories(3) = "Average"
asCategories(4) = "No Response"
asCategories(5) = "Poor"
asCategories(6) = "Very Poor"
'iCurrRst=14
'iSumCount=10
strTemp="asd"&chr(9)&"ddd"&chr(9)&"weee"
frmGraph.ChartSpace1.HasChartSpaceLegend = True
frmgraph.Chartspace1.ChartSpaceLegend.
Font.Bold=True
frmgraph.chartspace1.chartspacelegend.
font.size=12'设置左侧图例的字体
frmGraph.ChartSpace1.Charts.Add
Set c = frmGraph.ChartSpace1.Constants
frmgraph.chartspace1.charts(0).type=chChartTypeRadarLine
frmgraph.ChartSpace1.Charts(0).HasTitle = true
frmgraph.ChartSpace1.Charts(0).Title.Position=c.chTitlePositionTop
frmgraph.ChartSpace1.Charts(0).Title.Font.bold=true
frmgraph.ChartSpace1.Charts(0).Title.Font.size=12 '设置标题的字体
frmgraph.ChartSpace1.Charts(0).Axes(0).Position =c.chAxisPositionLeft
frmgraph.ChartSpace1.Charts(0).Axes(0).HasTitle=true
frmgraph.ChartSpace1.Charts(0).Axes(0).Title.Interior.Color="red"
frmgraph.ChartSpace1.Charts(0).Axes(0).title.Caption="数值"
'frmgraph.ChartSpace1.Charts(0).Axes(0).Title.Position=c.chtitlePositionBottom
frmgraph.ChartSpace1.Charts(0).Axes(0).Font.Bold=true
frmgraph.ChartSpace1.Charts(0).Axes(0).Font.Size=12'设置竖轴的字体
frmgraph.ChartSpace1.Charts(0).Axes(1).HasTitle=true
frmgraph.ChartSpace1.Charts(0).Axes(1).title.Caption="名称"
'frmgraph.ChartSpace1.Charts(0).Axes(1).Title.Position=chTitlePositionLeft
frmgraph.ChartSpace1.Charts(0).Axes(1).TickMarkSpacing = 2'设置横轴间隔
frmgraph.ChartSpace1.Charts(0).Axes(1).font.bold=true
frmgraph.ChartSpace1.Charts(0).Axes(1).font.size=12'设置横轴的字体
frmGraph.ChartSpace1.Charts(0).SeriesCollection.Add'添加图例
'frmGraph.ChartSpace1.Charts(0).SeriesCollection(0).Type=chChartTypeRadarLine '设置图例类型
Set serSeries1 = frmgraph.ChartSpace1.Charts(0).SeriesCollection(0)
serseries1.Interior.Color="red" '设置图内的颜色
frmGraph.ChartSpace1.Charts(0).SeriesCollection(0).Caption = "数量"
'向图表中传递数据
frmGraph.ChartSpace1.Charts(0).SeriesCollection(0).DataLabelsCollection.add '添加数据头
frmGraph.ChartSpace1.Charts(0).SeriesCollection(0).SetData c.chDimCategories, c.chDataLiteral, asCategories
frmGraph.ChartSpace1.Charts(0).SeriesCollection(0).SetData c.chDimValues, c.chDataLiteral, aiValues
frmGraph.ChartSpace1.Charts(0).SeriesCollection.Add
Set serSeries1 = frmgraph.ChartSpace1.Charts(0).SeriesCollection(1)
serseries1.Interior.Color="blue" '设置图内的颜色
frmGraph.ChartSpace1.Charts(0).SeriesCollection(1).DataLabelsCollection.add '添加数据头
frmGraph.ChartSpace1.Charts(0).SeriesCollection(1).SetData c.chDimCategories, c.chDataLiteral, asCategories
frmGraph.ChartSpace1.Charts(0).SeriesCollection(1).SetData c.chDimValues, c.chDataLiteral, aiValues
End Sub
</script>