I am new to TeeChart (great tool!) and have a problem, which is maybe not very difficult, but i should have fixed it until tomorrow, so I hope you can help me.
I have a horizontal Bar Chart with a YAxis minimum value of 50 and a maximum value of 130. This is fix!
Sometimes it can happen, that a value is bigger than 130 or smaller than 50, then no value is showed on the graph (what is correct)
I want to show this values, but something failed, when I tried it.
The last code i tried was the following:
Visual Basic Code:
Code: Select all
If tc.series(i).ValueLists.Items(1).value(ii) > 130 Then
saveValue = tc.series(i).ValueLists.Items(1).value(ii)
tc.series(i).ValueLists.Items(1).value(ii) = 125
tc.Environment.InternalRepaint
xValue = tc.series(i).Marks.Positions.Position(ii).LeftTop.X
yValue = tc.series(i).Marks.Positions.Position(ii).LeftTop.Y
tc.series(i).ValueLists.Items(1).value(ii) = saveValue
tc.series(i).Marks.Positions.Position(ii).Custom = True
tc.series(i).Marks.Positions.Position(ii).LeftTop.Y = yValue
tc.series(i).Marks.Positions.Position(ii).LeftTop.X = xValue
End if
I can't get a good result! Is there a better way to do this?
TIA!
Raphael Keller
WigaSoft AG
CH-St.Gallen