I need Multi Line Chart

TeeChart for ActiveX, COM and ASP
Post Reply
rush kim
Newbie
Newbie
Posts: 6
Joined: Fri Jan 24, 2014 12:00 am

I need Multi Line Chart

Post by rush kim » Tue Jun 17, 2014 2:15 pm

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))

-------------------------------------
Attachments
2.jpg
2.jpg (233.14 KiB) Viewed 2686 times
1.jpg
1.jpg (217.27 KiB) Viewed 2688 times

Yeray
Site Admin
Site Admin
Posts: 8876
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: I need Multi Line Chart

Post by Yeray » Tue Jun 17, 2014 2:45 pm

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

rush kim
Newbie
Newbie
Posts: 6
Joined: Fri Jan 24, 2014 12:00 am

Thank you for your answer.

Post by rush kim » Tue Jun 17, 2014 2:54 pm

Thank you for your answer. :) :) :)

Post Reply