Page 1 of 1

Y axis Labels around zero

Posted: Thu Jun 23, 2005 1:01 pm
by 6920712
Hi Support,
I have an issue using TChartAx5. If the range of my Y axis is 0.1 to 1 then I will see Y axis labels 0.1, 0.15, 0.2, 0.25 etc, this is good. However if the minimum value for my Y axis is zero or less then the Y axis labels only occur at integers, so in the above eaxmple (0 to1) I will only see 2 Y axis labels (0 and 1). I need to be a ble to the full decimal Y axis labels at all times.

Thanks In Advance

Slimmole

Posted: Mon Jun 27, 2005 10:44 am
by narcis
Hi Slimmole,

This depends on your chart object height. To force this behaviour you can use code below and increase chart's height.

Code: Select all

    With TChart1.Axis.Left
        .Increment = 0.5
        .Labels.Separation = 0
        .Labels.ValueFormat = "#.##,##"
    End With