How to display multiple lines?

M

malaywang

I use OWC10, and I can display single line in a chart now.
But when I add another line to the chart, it only displays the 2n
line.
My code is like following:

chsp.SetData c.chDimCategories, c.chDataBound, "Input_Date"
chsp.SetData c.chDimValues, c.chDataBound, "Line1"
chsp.SetData c.chDimValues, c.chDataBound, "Line2"

My another question is: How to give the two line with different scale?
I want to have a dual y axis chart(Line1 is Bar type, Line2 is Lin
type).
I can select this kind of chart in Excel, but ChartChartTypeEnum ha
no such kind of chart.

Does anyone know how to do it? Thanks to your help.
(By the way, does the black book cover this topic?
 
A

Alvin Bruney [MVP - ASP.NET]

You plot multiple lines using multiple series. Each series can be
independently configured. There probably isn't a multiple series example in
the office web component toolpack but you may get lucky and find an example
online - especially if you search this groups archive going back a couple
years. There are several examples of this in the black book as well.

--
Regards,
Alvin Bruney - ASP.NET MVP

[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @ www.lulu.com/owc, Amazon.com etc
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top