gradient ? canvas ? Panel color ?
Posted: Wed Dec 14, 2011 4:02 pm
We need some help to configure the new fonction of teechart 2011 :
Here are the asp code that we are using (Teechart activeX) :
First example :
We are looking to disactivate the grey color of this graphique (gradient ? canvas ? Panel color ?)
Second need :
For the same graph, we are looking to put a gradient on the serie like your example in the gallery :
We try with this code but it didn’t work :
Can you help us ?
Here are the asp code that we are using (Teechart activeX) :
Code: Select all
Set chart = CreateObject("TeeChart.TChart")
Chart.Walls.Left.Transparent=false
Chart.Walls.Left.Color=vbyellow
Chart.Panel.BevelOuter=0
Chart.Panel.BevelWidth=0
Chart.Panel.color=vbWhite
'Chart.Panel.Gradient.Visible=false
Chart.Panel.Gradient.Visible = false
Chart.Panel.Gradient.Direction = gdRightLeft
Chart.Panel.Gradient.StartColor = vbWhite
Chart.Panel.Gradient.MidColor = vbWhite
Chart.Panel.Gradient.EndColor = vbWhite
We are looking to disactivate the grey color of this graphique (gradient ? canvas ? Panel color ?)
Second need :
For the same graph, we are looking to put a gradient on the serie like your example in the gallery :
We try with this code but it didn’t work :
Code: Select all
Chart.AddSeries(scbar)
Chart.Series(num_serie).asBar.BarStyle = bsRoundRectangle
Chart.Series(num_serie).asBar.RoundSize = 20
Chart.Series(0).asBar.Gradient.Visible=True
Chart.Series(0).ColorEachPoint=True
Chart.Series(0).asBar.Gradient.Direction = 2
'Chart.Series(0).asBar.Gradient.StartColor rgb(255,255,255)
'Chart.Series(0).asBar.Gradient.EndColor rgb(255,255,255)
'Chart.Series(0).asBar.Gradient.MidColor tab_color(0)