Page 1 of 1
YAxis different for "Line" and "Line + Symbol" types
Posted: Mon Apr 23, 2018 7:45 am
by 15681125
We are working with TeeChart ver. 4.1 for WPF.
We have two series: first is type of Line and second is type of Line + Symbol.
And both series are limited.
When we look on YAxes of this two series we see that they are different.
Our questions:
1. Is this is a bug of TeeChart?
2. If this is a bug were it was fixed?
3. If exists workaround to fix this problem?
Re: YAxis different for "Line" and "Line + Symbol" types
Posted: Wed May 02, 2018 7:37 am
by 15681125
Hi,
Can we get your help for this issue please?
Re: YAxis different for "Line" and "Line + Symbol" types
Posted: Wed May 02, 2018 8:17 am
by Christopher
iMDuser wrote:Hi,
Can we get your help for this issue please?
I am sorry for the delay in answering this question of yours, please accept my apologies.
If I have read your issue correctly, it can be resolved by setting InflateMargins to false, e.g.
Code: Select all
Line line;
private void InitializeChart()
{
line = new Line(tChart1.Chart);
line.FillSampleValues();
}
private void Button_Click(object sender, RoutedEventArgs e)
{
line.Pointer.HorizSize = 20;
line.Pointer.VertSize = 20;
line.Pointer.InflateMargins = false;
line.Pointer.Visible = !line.Pointer.Visible;
}
Re: YAxis different for "Line" and "Line + Symbol" types
Posted: Thu May 03, 2018 12:48 pm
by 15681125
Thank you very much. This is working.
But with this solution we have another problem.
Symbols on bottom and high horizontal lines are not drawn full, they are cut.
Perhaps you have solution for this problem too?
Re: YAxis different for "Line" and "Line + Symbol" types
Posted: Fri May 04, 2018 8:32 am
by Christopher
iMDuser wrote:Thank you very much. This is working.
But with this solution we have another problem.
Symbols on bottom and high horizontal lines are not drawn full, they are cut.
Perhaps you have solution for this problem too?
Unfortunately the solution causes the 'problem' you first noticed - setting InflateMargins to true will inflate the left axis (and so the left axis's values) so that the pointers (symbols) do not get cut off at the top. It's one or the other I'm afraid - either the left axis values change to reflect that axis's extension to accommodate the line's pointers, or the left axis remains the same and the pointers are cut off at the top.