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

Zero based X-Axis

12 Answers 251 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 14 Apr 2009, 08:11 PM
I'm evalulating Rad Charts as a possible component for my company and seem to have hit a wall.  Is it possible to have a bar chart, with positive and negative values on the same series and have the x-axis held at zero?  This would be very common in the financial world for say a performance chart.  Some bars go up, some bars go down depending on positive and negative performance buckets.  Am I correct in thinking the product does not currently support this?  

Many thanks,
     Chris Dietz

12 Answers, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 16 Apr 2009, 06:23 AM
Hi Chris,

I am afraid, this is not supported in RadChart for the moment. We have logged your request, but no certain implementation time frame is available for the moment. Your Telerik points have been updated.

Kind regards,
Ves
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Mark
Top achievements
Rank 1
answered on 23 Jun 2009, 04:06 AM
I would like to cast my vote for this functionality as well!

I have actually been trying to customize the chart to display data similar to this, but flipped on its side.  I.e. think of the "zero line" running up and down the screen (vertically) and negative values extend to the left, and positive values extend to the right. 

I have to think that the desire for this rendering is not uncommon.
0
Ves
Telerik team
answered on 26 Jun 2009, 06:31 AM
Hi Mark,

Thanks for the feedback. It seems your request includes an additional "horizontal chart" feature. I would encourage everyone to post the axis features they need in this thread, so we can have a clear view on your needs.

Sincerely,
Ves
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Allan
Top achievements
Rank 1
answered on 09 Jul 2009, 01:57 PM
I would like the ability to have negative values and positive values shown on the x axis along with the Y axis being held at 0 - negative data points would be shown as coming down from the Y axis, positive shown as going up from the Y axis.

I assume this is not supported today?
0
Giuseppe
Telerik team
answered on 10 Jul 2009, 12:10 PM
Hi Allan,

We are unsure whether we understand correctly the requirements for the proposed functionality -- could you point us to an existing solution that achieves the desired effect so we have better idea how to improve our charting control in the future?


All the best,
Manuel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Tad
Top achievements
Rank 1
answered on 10 Jul 2009, 01:12 PM
Here is what I believe Allan is wanting. (At least it is what I desperately need.)
Look at the upper-left chart.  Notice that for negative values, the bar drops DOWN from the zero point.

http://lh5.ggpht.com/OOoNinja/R-UdjRZy4kI/AAAAAAAAAvQ/2bryKseQXaU/s640/reverse_axis-4_charts.png

--Tad Richard
0
Giuseppe
Telerik team
answered on 10 Jul 2009, 01:51 PM
Hi Tad,

Negative values support as depicted on your screenshot is indeed in our TODO list and is planned as a priority task for the Q3 2009 release later this year.


Regards,
Manuel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Zubair
Top achievements
Rank 1
answered on 11 Apr 2012, 03:21 PM
Hi,

I want the X-axis to move to Y=0 everytime.
Basically i just want the MajorGridVisibile at Y=0 everytime. i.e. A prominent black line like the X Axis to clearly demarcate it from the rest of the MajorGridLines. So that even in case of negative values on the Y Axis, the black prominent Line always stays on at Y=0.
0
Giuseppe
Telerik team
answered on 12 Apr 2012, 11:02 AM
Hello Zubair,

The so-called horizontal PlotAreaAxis should be visible by default whenever your data contains a mix of positve / negative data -- could you elaborate a bit more on the specific problem you are experiencing with it?


All the best,
Giuseppe
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Zubair
Top achievements
Rank 1
answered on 12 Apr 2012, 11:11 AM
I have given styles for X and Y Axis:-
<Style x:Key="AxisXLineStyle" TargetType="Line">
    <Setter Property="Stroke" Value="Black" />
    <Setter Property="StrokeThickness" Value="1" />
</Style>
 
<Style x:Key="AxisYLineStyle" TargetType="Line">
    <Setter Property="Stroke" Value="Black" />
    <Setter Property="StrokeThickness" Value="1" />
</Style>
 
<Style x:Key="AxisXStyle" TargetType="charting:AxisX2D">
    <Setter Property="AxisLineStyle" Value="{StaticResource AxisXLineStyle}" />
</Style>
 
<Style x:Key="AxisYStyle" TargetType="charting:AxisY2D">
    <Setter Property="AxisLineStyle" Value="{StaticResource AxisYLineStyle}" />
</Style>

As you can see, there is no prominenet line at Y=0 to clearly demarcate it from the rest of the MajorGridLines.I have already assigned IsZeroBased= True property to both telerik:XAxis and YAxis.

How can i achieve a prominent line at Y=0 everytime to differentiate it from the rest of the GridLines.

Thanks.
0
Giuseppe
Telerik team
answered on 12 Apr 2012, 12:10 PM
Hello Zubair,

Find attached a sample application that demonstrates how you can apply custom style to the horizontal PloAreaAxis via RadChart.DefaultView.ChartArea.PlotAreaAxisXStyle property in order to achieve the desired effect.

Hope this helps.


Regards,
Giuseppe
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Zubair
Top achievements
Rank 1
answered on 12 Apr 2012, 12:41 PM
Thanks.

That was exactly what i was looking for. :)
Tags
Chart
Asked by
Chris
Top achievements
Rank 1
Answers by
Ves
Telerik team
Mark
Top achievements
Rank 1
Allan
Top achievements
Rank 1
Giuseppe
Telerik team
Tad
Top achievements
Rank 1
Zubair
Top achievements
Rank 1
Share this question
or