Hi ,
You can set the ChSeries.Type property to specify another type for build
one pareto chart. One sample for you:
<!-- begin -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>н¨ÍøÒ³ 1</title>
</head>
<body>
<p>
<object classid="clsid:0002E55D-0000-0000-C000-000000000046" id="chsp">
<table width='100%' cellpadding='0' cellspacing='0' border='0'
height='8'><tr><td bgColor='#336699' height='25' width='10%'> </td><td
bgColor='#666666'width='85%'><font face='ËÎÌå' color='white'
size='4'><b> ȱÉÙ Microsoft Office Web
Components</b></font></td></tr><tr><td bgColor='#cccccc'
width='15'> </td><td bgColor='#cccccc' width='500px'><br> <font
face='ËÎÌå' size='2'>´ËÍøÒ³ÒªÇó Microsoft Office Web Components¡£<p
align='center'> <a
href='//sha-dds-01/Products/Applications/User/Office_System/Office_2003/file
s/owc11/setup.exe'>µ¥»÷´Ë´¦°²×° Microsoft Office Web
Components¡£</a>.</p></font><p><font face='ËÎÌå' size='2'>´ËÍøҳͬʱҪÇó
Microsoft Internet Explorer 5.01 »ò¸ü¸ß°æ±¾¡£</p><p align='center'><a
href='
http://www.microsoft.com/windows/ie/default.htm'> µ¥»÷´Ë´¦°²×°×îеÄ
Internet Explorer</a>.</font><br> </td></tr></table></object>
</p>
<br>
<br>
<input type=button value="show chart" onclick='Init()' >
</body>
</html>
<script language=javascript>
var PreType;
function Init()
{
//shortcut to constants
var c;
c = chsp.Constants;
var ch;
ch = chsp.Charts.Add();
ch.Type = c.chChartTypeColumnStacked;
ch.SetData( c.chDimSeriesNames, c.chDataLiteral, Array("Juicy", "Not So
Juicy"));
ch.SetData( c.chDimCategories, c.chDataLiteral, Array("Apples", "Oranges",
"Pears", "Melons", "Grapes"));
ch.SeriesCollection(0).SetData( c.chDimValues, c.chDataLiteral, Array("2",
"5", "6", "2", "1"));
ch.SeriesCollection(1).SetData( c.chDimValues, c.chDataLiteral, Array("3",
"7", "11", "8", "7"));
ch.SeriesCollection(1).Type = c.chChartTypeLine;
}
</script>
<!-- end -->
Please feel free to let me know if you have any question.
Best Regards,
Wei-Dong XU (WD)
Microsoft Product Support Services
Get Secure! -
www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.