Marks increases Axis Maximum
Posted: Wed Feb 01, 2012 2:42 pm
Hey!
I got a quick question.
I have a Custom Axis that goes from 0 to 100. I added a series to my graph that uses this axis and this serie has a Bar Style.
If I make the Marks visibles, the axis gets a redefined Maximum to make the Marks fit inside the axis.
However, this is the not behavior that I want, I would like the Marks to paint outside the range the axis if it has to!
Currently this is my Series setup:
And this is my Axis code:
I am using TeeChart .NET 4.1 Evaluation, we are currently migrating from .NET 2.26, and just wanted to make sure everything would go well with the new version before ordering!
I got a quick question.
I have a Custom Axis that goes from 0 to 100. I added a series to my graph that uses this axis and this serie has a Bar Style.
If I make the Marks visibles, the axis gets a redefined Maximum to make the Marks fit inside the axis.
However, this is the not behavior that I want, I would like the Marks to paint outside the range the axis if it has to!
Currently this is my Series setup:
Code: Select all
Dim loNewSerie As Styles.Bar = New Styles.Bar()
With loNewSerie
.Title = "Silos Alimentation"
.Color = Color.Blue
.MultiBar = Styles.MultiBars.None
.Pen.Visible = True
.Pen.Color = Color.Black
.DepthPercent = 30
.XValues.DateTime = True
.Marks.Visible = True
.Marks.Clip = True
.Marks.Color = Color.LightGoldenrodYellow
.Marks.AutoSize = True
End With 'poSerieProdNivAlim
Return loNewSerie
Code: Select all
Dim loNewAxis As Axis = New Axis(False, False, teeChart.Chart)
With loNewAxis
.Automatic = False
.AutomaticMaximum = False
.AutomaticMinimum = False
.StartPosition = 17
.EndPosition = 27
.Minimum = 0
.Maximum = 100
.Increment = 25
.Title.Caption = "Silos (%)"
.Title.Angle = 90
.Title.AutoSize = True
.Labels.AutoSize = True End With
Return loNewAxis