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

Labels on negative values

1 Answer 73 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Bruce
Top achievements
Rank 1
Bruce asked on 16 May 2018, 12:55 PM

Using MVC; How do I get the labels (months)  to dynamically align at the bottom of the chart (see attached image) when values are negative?

I have tried:

.Labels(labels => labels.Padding(80, 0, 0, 0))

but it changes the scale of my chart if there are no negative values.

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 17 May 2018, 06:33 AM
Hello, Bruce,

In this case, the difference has to be calculated programmatically based on the values.

I can suggest the following post, the example at the end is demonstrating this:

https://www.telerik.com/forums/moving-the-category-axis-to-bottom-when-negative-values-are-present-(mvc)

I hope this is helpful.

Regards,
Stefan
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Chart
Asked by
Bruce
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or