Log Chart Not Displaying Scale Correctly

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
lilo
Newbie
Newbie
Posts: 14
Joined: Fri Sep 07, 2012 12:00 am

Log Chart Not Displaying Scale Correctly

Post by lilo » Fri Nov 09, 2012 5:55 am

If I select a log scale on a points chart with a log scale of minimum 0.1 and maximum 100 (3 cycle), the log scale (tick marks) from 0.1 to 1 will not display. The log scale from 1 to 10 and 10 to 100 displays correctly. Can you confirm this is a bug?

' Case Log Linear
Points1.Chart.Axes.Right.Logarithmic = True
Points1.Chart.Axes.Right.LogarithmicBase = 10
Points1.Chart.Axes.Left.Logarithmic = True
Points1.Chart.Axes.Left.LogarithmicBase = 10
Points1.Chart.Axes.Bottom.Logarithmic = False
Points1.Chart.Axes.Top.Logarithmic = False
' End Select

Points1.Chart.Axes.Left.Maximum = 100
Points1.Chart.Axes.Left.Minimum = 0.1
Points1.Chart.Axes.Right.Maximum = 100
Points1.Chart.Axes.Right.Minimum = 0.1

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Log Chart Not Displaying Scale Correctly

Post by Sandra » Fri Nov 09, 2012 1:56 pm

Hello lilo,

I can not reproduce your problem using next code:

Code: Select all

      Steema.TeeChart.Styles.Points points1;

      private void InitializeChart()
      {
          points1 = new Points(tChart1.Chart);
          for (int i = 1; i < 100; i++)
          {

              points1.Add(i, Math.Log(i));

          }
          points1.VertAxis = VerticalAxis.Both;
          tChart1.Axes.Right.Logarithmic = true;
          tChart1.Axes.Right.LogarithmicBase = 10;
          tChart1.Axes.Left.Logarithmic = true;
          tChart1.Axes.Left.LogarithmicBase = 10;

          tChart1.Axes.Left.Automatic = false;
          tChart1.Axes.Left.Minimum = 0.1;
          tChart1.Axes.Left.Maximum = 100;
          tChart1.Axes.Right.Automatic = false;
          tChart1.Axes.Right.Minimum = 0.1;
          tChart1.Axes.Right.Maximum = 100;
      }
Could you tell us if previous code works in your end? If it doesn't work in your end, please modify the problem because we can reproduce your problem.


Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply