Search code examples
.netchartsmschart

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


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


Solution

  • 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