How can I create a log axis on a chart in Visual Basic to produce a mono-log chart

StackOverflow https://stackoverflow.com/questions/22558877

  •  18-06-2023
  •  | 
  •  

سؤال

I am currently using a Microsoft Visual Studio.

And I created a line chart with my data. However, these data not vary linearly. As you can see in the picture below I want a log scale y axis and a linear scale x axis.

How do I modify the y axis to reflect this

enter image description here

هل كانت مفيدة؟

المحلول

if thats a logarithmic y axis then try making the y axis scale logarithmic. Once your chart is created try

  Chart1.ChartAreas(0).AxisY.IsLogarithmic = True

or in the form creator

enter image description here

and this will give you

enter image description here

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top