This is a migrated thread and some comments may be shown as answers.

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

2 Answers 35 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Carlos
Top achievements
Rank 1
Carlos asked on 12 Sep 2018, 02:00 AM

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 Answers, 1 is accepted

Sort by
0
Carlos
Top achievements
Rank 1
answered on 12 Sep 2018, 02:41 AM

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!

0
Hristo
Telerik team
answered on 12 Sep 2018, 06:51 AM
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.
Tags
ChartView
Asked by
Carlos
Top achievements
Rank 1
Answers by
Carlos
Top achievements
Rank 1
Hristo
Telerik team
Share this question
or