Page 1 of 1

I need Multi Line Chart

Posted: Tue Jun 17, 2014 2:15 pm
by 16668345
Hi~ I need Multi line chart therefore ASP codeing in below :o

How can i fix it.. Help me.. :cry:

-------------------------------------

Set Chart1 = CreateObject("TeeChart.TChart")


Chart1.Legend.Visible=false
Chart1.Header.Text(0)= tag_no
Chart1.Header.Font.Color=vbBlack
Chart1.Header.Font.Bold=True
Chart1.AddSeries(Line)

Chart1.Aspect.View3D=False
Chart1.Panel.Gradient.Visible=false
Chart1.Panel.Color=black
Chart1.Panel.BevelOuter=1
Chart1.Panel.BevelWidth=2
Chart1.Axis.Bottom.Labels.Angle=0


Chart1.AddSeries(0)
Chart1.AddSeries(1)
Chart1.AddSeries(2)


setday = res("sday")
data = res("data")

Chart1.Series(0).Add 100, setday, clTeeColor
Chart1.Series(0).Add 400, setday, clTeeColor
Chart1.Series(0).Add 300, setday, clTeeColor

Chart1.Series(1).Add 500, setday, clTeeColor
Chart1.Series(1).Add 600, setday, clTeeColor
Chart1.Series(1).Add 400, setday, clTeeColor

Chart1.Series(2).Add 50, setday, clTeeColor
Chart1.Series(2).Add 200, setday, clTeeColor
Chart1.Series(2).Add 10, setday, clTeeColor


Response.BinaryWrite (Chart1.Export.asNative.SaveToStream(True))

-------------------------------------

Re: I need Multi Line Chart

Posted: Tue Jun 17, 2014 2:45 pm
by yeray
Hello,
rush kim wrote:Hi~ I need Multi line chart therefore ASP codeing in below :o

How can i fix it.. Help me.. :cry:
I see this in your code:

Code: Select all

Chart1.AddSeries(0)
Chart1.AddSeries(1)
Chart1.AddSeries(2) 
First note the argument in the AddSeries method is the series type you want to create.
Secondly, note type 0 is a Line series, type 1 is a Bar series, and type 2 is an HorizBar series.
If you want to add 3 Line series, change the code above for this:

Code: Select all

Chart1.AddSeries(0)
Chart1.AddSeries(0)
Chart1.AddSeries(0) 
These and other constants can be found at the TeeChartDefines.h file in the "\Utilities\New VC Classes" folder of your TeeChart installation.

Thank you for your answer.

Posted: Tue Jun 17, 2014 2:54 pm
by 16668345
Thank you for your answer. :) :) :)