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
UWP logarithmic axis
-
- Newbie
- Posts: 2
- Joined: Wed Sep 26, 2018 12:00 am
UWP logarithmic axis
- Attachments
-
- Winform_Chart.PNG (17 KiB) Viewed 8979 times
-
- UWP_Chart.PNG (21.43 KiB) Viewed 8979 times
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: UWP logarithmic axis
Hello!
Yes, when Chart.Aspect.GestureOptions != Aspect.Gestures.None the chart axes are 'streched' - if you set:
then I think the images should look the same.
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;
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 |
-
- Newbie
- Posts: 2
- Joined: Wed Sep 26, 2018 12:00 am
Re: UWP logarithmic axis
Hello Christopher,
Thank you very much! That worked for me!
Stephan
Thank you very much! That worked for me!
Stephan