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

Bar chart zero scale alignment to be always at center

2 Answers 73 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
kity
Top achievements
Rank 2
kity asked on 29 Jan 2014, 09:06 AM
Bar chart zero scale alignment to be always at center.

I have two BarSeries for negative and positive values.

How to place zero (0)  to be always in the center position. Like first
(top) image?

If intervals length of -> positive (from
0 to +n) and negative (from -n to 0) are different, zero is not in center (see
bottom image).

2 Answers, 1 is accepted

Sort by
0
kity
Top achievements
Rank 2
answered on 29 Jan 2014, 09:09 AM
1. Intervals length are:
    N=> from -100 to 0
    P=> from  0 to 100
HERE OK

2. ​Intervals length are:
    N=> from -10 to 0
    P=> from  0 to 100

HERE: How to place barchart to show me zero at center position?
0
Accepted
Pavel R. Pavlov
Telerik team
answered on 03 Feb 2014, 08:34 AM
Hi,

You are right for the behavior of the linear axis. By default the axis calculates its minimum and maximum properties depending on your data. The only way to change that behavior is to manually set them to the desired values.

Please give this approach a try and let us know if it works for you.

Regards,
Pavel R. Pavlov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
ChartView
Asked by
kity
Top achievements
Rank 2
Answers by
kity
Top achievements
Rank 2
Pavel R. Pavlov
Telerik team
Share this question
or