Page 1 of 1

UWP logarithmic axis

Posted: Tue Jan 15, 2019 2:06 pm
by 15684528
Hello, everyone,
i have created two projects.
One Winforms and one Universal app with one chart each.
The following code is executed:

private Steema.TeeChart.Styles.Line GrndLineHorR;

private void button1_Click(object sender, EventArgs e)
{
TonChartR.Header.Visible = false;
TonChartR.Legend.Visible = false;
GrndLineHorR = new Steema.TeeChart.Styles.Line();
GrndLineHorR.Add(100, 0);
GrndLineHorR.Add(125, 0, "0.125");
GrndLineHorR.Add(250, 0, "0.25");
GrndLineHorR.Add(500, 0, "0.5");
GrndLineHorR.Add(750, 0, "0.75");
GrndLineHorR.Add(1000, 0, "1");
GrndLineHorR.Add(1500, 0, "1.5");
GrndLineHorR.Add(2000, 0, "2");
GrndLineHorR.Add(3000, 0, "3");
GrndLineHorR.Add(4000, 0, "4");
GrndLineHorR.Add(6000, 0, "6");
GrndLineHorR.Add(8000, 0, "8");
GrndLineHorR.HorizAxis = Steema.TeeChart.Styles.HorizontalAxis.Top;
GrndLineHorR.VertAxis = Steema.TeeChart.Styles.VerticalAxis.Left;
TonChartR.Series.Add(GrndLineHorR);
TonChartR.Axes.Top.Logarithmic = true;
}

I attached the pictures with the results.
The result with Winforms meets my expectations.
In the UWP project the loagrithmic axis is stretched.
What did I miss?
Thanks in advance for your help.

Stephan

Re: UWP logarithmic axis

Posted: Wed Jan 16, 2019 11:05 am
by Christopher
Hello!

Yes, when Chart.Aspect.GestureOptions != Aspect.Gestures.None the chart axes are 'streched' - if you set:

Code: Select all

Chart.Aspect.GestureOptions = Aspect.Gestures.None;
then I think the images should look the same.

Re: UWP logarithmic axis

Posted: Thu Jan 17, 2019 10:21 am
by 15684528
Hello Christopher,

Thank you very much! That worked for me!

Stephan