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

change gap between series points/xaxis points

7 Answers 275 Views
Charts
This is a migrated thread and some comments may be shown as answers.
fabian
Top achievements
Rank 1
fabian asked on 27 Jul 2016, 05:42 AM

Hi,

I'm trying to change the gaps between the pionts of a line chart series depending on user input (watch pic). I searched for quiet a while but I cant find any answers.

pls help.

7 Answers, 1 is accepted

Sort by
0
fabian
Top achievements
Rank 1
answered on 27 Jul 2016, 11:37 AM
BTW: the numbers should be the gap size, not the series pionts.
0
T. Tsonev
Telerik team
answered on 29 Jul 2016, 08:14 AM
Hi,

The axis labels are placed uniformly for all chart types. Note that you can control the visibility of each individual label by overriding categoryAxis.labels.visual. This makes it possible to skip some labels by returning null. For example:

categoryAxis: {
  labels: {
    visual: function(e) {
       if (e.value == xx) {
          return;
       }
 
        // Render default label
        return e.createVisual();
    }
}

I hope this helps.

Regards,
T. Tsonev
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
0
fabian
Top achievements
Rank 1
answered on 29 Jul 2016, 09:39 AM
Thank you very much!
0
fabian
Top achievements
Rank 1
answered on 29 Jul 2016, 10:22 AM

I have another question. Is there a way to set specific Major lines like 

MajorLines:{

    set:(7,13,32)

}

0
fabian
Top achievements
Rank 1
answered on 29 Jul 2016, 10:31 AM
would "skip" be an option?
0
T. Tsonev
Telerik team
answered on 02 Aug 2016, 08:22 AM
Hi,

The grid lines don't provide a "visual" override, but you can turn them off completely and render your own.
It's a bit of a learning curve, but this approach is much more flexible as well.

I hope this helps.

Regards,
T. Tsonev
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
0
fabian
Top achievements
Rank 1
answered on 02 Aug 2016, 09:06 AM
I already got a solution but thanks for the answer anyway
Tags
Charts
Asked by
fabian
Top achievements
Rank 1
Answers by
fabian
Top achievements
Rank 1
T. Tsonev
Telerik team
Share this question
or