Search code examples
activexteechart

Teechart + logarithm Scale


If I change the Left Axis Scale to Log 10. It should start with 1 instead of Zero. If I do it manually also say I say Min as 1, Max as 1000 and Incr =100 then it doesn't show me the starting point (i.e 1). It shows all the points except that.

Max Position on Y axis is Not shown

enter image description here

Thanks Akshay


Solution

  • Code below works fine for me with TeeChart Pro ActiveX 2013

    TChart1.Aspect.View3D = False
    
    TChart1.AddSeries scLine
    
    TChart1.Axis.Left.Logarithmic = True
    TChart1.Axis.Left.LogarithmicBase = 10
    
    
    For i = 0 To 1000
        TChart1.Series(0).Add i, "", clTeeColor
    Next
    

    Does it work fine for you? Which TeeChart version are you using?