UWP logarithmic axis

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Stephan Merz
Newbie
Newbie
Posts: 2
Joined: Wed Sep 26, 2018 12:00 am

UWP logarithmic axis

Post by Stephan Merz » Tue Jan 15, 2019 2:06 pm

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
Attachments
Winform_Chart.PNG
Winform_Chart.PNG (17 KiB) Viewed 8979 times
UWP_Chart.PNG
UWP_Chart.PNG (21.43 KiB) Viewed 8979 times

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: UWP logarithmic axis

Post by Christopher » Wed Jan 16, 2019 11:05 am

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.
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Stephan Merz
Newbie
Newbie
Posts: 2
Joined: Wed Sep 26, 2018 12:00 am

Re: UWP logarithmic axis

Post by Stephan Merz » Thu Jan 17, 2019 10:21 am

Hello Christopher,

Thank you very much! That worked for me!

Stephan

Post Reply