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

How can I pad inside of my area chart so the data does not start immediately at the intersection of the X/Y axis?

3 Answers 14 Views
Charts
This is a migrated thread and some comments may be shown as answers.
R
Top achievements
Rank 1
R asked on 06 Apr 2020, 03:34 PM
I would like to move my data a bit to the right on the X axis so that the data does not start at the corner of the chart. Is something like this possible? I have attached a screenshot showing where the issue is. Thanks!

3 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 08 Apr 2020, 02:30 PM

Hello R Pal,

I could suggest you setting valueAxis.min setting as demonstrated in the following Dojo demo:

Let me know if you have any questions.

Regards,
Nikolay
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
R
Top achievements
Rank 1
answered on 08 Apr 2020, 02:34 PM
Is there any way to hide the first label?
0
Nikolay
Telerik team
answered on 10 Apr 2020, 01:01 PM

Hello R Pal,

This could be achieved by setting a condition within the categoryAxis.labels.template:

categoryAxis: {
                  labels: {
                    template: "#: value == 1993 ? ' ': value #"
                  },

Please find the revised Dojo at the below link:

Regards,
Nikolay
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
Charts
Asked by
R
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
R
Top achievements
Rank 1
Share this question
or