Home Forums WinForms controls Xceed Chart for WinForms Customize the axe

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #18829 |

    Hello,

    I have created a Manhattan Bar Chart and I would like to customize one axe.

    I have put the min and max value, but I need to know if I can fix the range between two labels.
    For example: (min always is 0)
    max=40 ; range = 10; Labels should be displayed 0, 10, 20, 30, 40
    max=40 ; range = 20; Labels should be displayed 0, 20, 40

    Is it possible to customize this range in an axe?

    Thank you!

    Imported from legacy forums. Posted by Juan (had 2255 views)

    Xceed Support
    Member
    Post count: 5658

    Here is a little snippet on how to customize an axis.

    <code>
    Axis axisY = m_Chart.Axis( StandardAxis.PrimaryY );
    axisY.ScaleMode = AxisScaleMode.Numeric;
    axisY.NumericScale.AutoMinorTicks = false;

    int max = 100;
    int min = 0;
    int range = 20;
    axisY.NumericScale.MaxTickCount = ( ( max – min ) / range ) + 1;
    </code>

    Imported from legacy forums. Posted by CharlesB (had 3087 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.