Inverse vertical axis not working and minimun and maximun not working also

3 posts, 0 answers
  1. Carlos
    Carlos avatar
    4 posts
    Member since:
    Sep 2018

    Posted 11 Sep 2018 Link to this post

    Hi

     

    I'm building a chart but I wont to specify the vertical and horizontal axis minimum and maximum value.

    also I want the vertical axis ti be inverse and to cross with the horizontal axis at the bottom (vertical axis maximum value)... but the code I wrote is not doing anything of what I want. this is what I code:

                radChartKatzA.Series.Clear();
                LinearAxis katzA_hor_Axis = radChartKatzA.Axes.Get<LinearAxis>(0);
                LinearAxis katzA_ver_Axis = radChartKatzA.Axes.Get<LinearAxis>(1);
                katzA_hor_Axis.Minimum = 0;
                katzA_hor_Axis.Maximum = 800;
                katzA_hor_Axis.MajorStep = 100;
                katzA_ver_Axis.Minimum = 0;
                katzA_ver_Axis.Maximum = 1400;
                katzA_ver_Axis.MajorStep = 50;

                katzA_hor_Axis.IsInverse = true;

                katzA_hor_Axis.LineWidth = 6;
                katzA_hor_Axis.TickWidth = 8;

                ScatterLineSeries katzLinea1A = new ScatterLineSeries();

                katzLinea1A.DataPoints.Add(0, 700);
                katzLinea1A.DataPoints.Add(350, 700);

               radChartKatzB.Series.Add(katzLinea1A);

     

    thank you for your help

    Carlos

  2. Carlos
    Carlos avatar
    4 posts
    Member since:
    Sep 2018

    Posted 11 Sep 2018 in reply to Carlos Link to this post

    found the problem

    I was configuring the axis via code but I also had configured the axis in the design view... I remove the axis from the design view and now the code worked fine

     

    thanks!

  3. Hristo
    Admin
    Hristo avatar
    1508 posts

    Posted 12 Sep 2018 Link to this post

    Hello Carlos,

    I am glad that you have managed to configure the axes properly. Let me know if you will be needing further assistance.

    Regards,
    Hristo
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top