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

How to avoid showing orgin point of line graph in kendo ui aspnet mvc?

3 Answers 105 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Ramesh
Top achievements
Rank 1
Ramesh asked on 30 Jul 2014, 10:41 AM
I would like to avoid showing 0 in x axis as well as 0 in y axis while plotting a line graph.For example:My x axis shows number of days starting from zero(say 0-365).My Y axis showing average growth rate starting from zero(say 0-2.0).So here i would like to avoid showing 0 in x axis as well as 0 in y axis.Could you show how to do that?

3 Answers, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 31 Jul 2014, 03:40 PM
Hi Ramesh,

For this requirement I would suggest to skip first labels for both axes: 
@(Html.Kendo().Chart()
  //....
  .XAxis(x => x
     .Numeric()
      //.....
     .Labels(l=>l.Skip(1))
  )
  .YAxis(x => x
     .Numeric()
      //.....
     .Labels(l=>l.Skip(1))
  )
)

Regards,
Iliana Nikolova
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Ramesh
Top achievements
Rank 1
answered on 01 Aug 2014, 06:24 AM
Hi,

My question is entirely different.As you can see in the attached image,its showing two zeros on orgin.I just want to show only one zero on the intersection of the axis ie,orgin. That is my requirement.i dont want to show zeros on both axis.
0
Iliana Dyankova
Telerik team
answered on 04 Aug 2014, 02:40 PM
Hi Ramesh,

This requirement is not supported out-of-the-box by Kendo UI Chart. As a workaround I would suggest to skip the first label for one of the axes. As an example: 
@(Html.Kendo().Chart()
  //....
  .YAxis(x => x
     .Numeric()
      //.....
     .Labels(l=>l.Skip(1))
  )
)

Regards,
Iliana Nikolova
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Chart
Asked by
Ramesh
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Ramesh
Top achievements
Rank 1
Share this question
or