Home Forums WinForms controls Xceed Chart for WinForms Scala in Axis X (Problem in Axis X)

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

    Graphics: Line

    Datos:
    Duracion (Dias): 1.93, 3.01, 4.01, 5.26 (Axis X)
    Profundidad : 100, 120, 135, 176 (Axis Y)
    Costos : 28325, 44318, 59232, 77900 (Axis Y)

    Problem in Axis X.

    I Like show scale in Axis X pe. 0, 1, 2, 3, 4, 5, 6
    but the component show 1.93, 3.01, 4.01, 5.26 Or
    1, 2, 3, 4 if use Autolabels = true

    Imported from legacy forums. Posted by Villaveitia (had 2296 views)

    User (Old forums)
    Member
    Post count: 23064

    You need to change the scale mode to Numeric, and set your own min and max values for the scale.

    e.g.:

    chart.Axis( StandardAxis.PrimaryX ).ScaleMode = AxisScaleMode.Numeric;
    chart.Axis( StandardAxis.PrimaryX ).NumericScale.AutoMin = false;
    chart.Axis( StandardAxis.PrimaryX ).NumericScale.AutoMax = false;
    chart.Axis( StandardAxis.PrimaryX ).NumericScale.Min = 0;
    chart.Axis( StandardAxis.PrimaryX ).NumericScale.Max = 6;

    Imported from legacy forums. Posted by André (had 3096 views)

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