Zero based X-Axis

13 posts, 0 answers
  1. Chris
    Chris avatar
    1 posts
    Member since:
    Apr 2009

    Posted 14 Apr 2009 Link to this post

    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
  2. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 16 Apr 2009 Link to this post

    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.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Mark
    Mark avatar
    12 posts
    Member since:
    Jun 2009

    Posted 22 Jun 2009 Link to this post

    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.
  5. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 26 Jun 2009 Link to this post

    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.
  6. Allan
    Allan avatar
    24 posts
    Member since:
    Jun 2009

    Posted 09 Jul 2009 Link to this post

    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?
  7. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 10 Jul 2009 Link to this post

    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.
  8. Tad
    Tad avatar
    15 posts
    Member since:
    Jul 2007

    Posted 10 Jul 2009 Link to this post

    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
  9. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 10 Jul 2009 Link to this post

    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.
  10. Zubair
    Zubair avatar
    13 posts
    Member since:
    Nov 2011

    Posted 11 Apr 2012 Link to this post

    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.
  11. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 12 Apr 2012 Link to this post

    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 >>

  12. Zubair
    Zubair avatar
    13 posts
    Member since:
    Nov 2011

    Posted 12 Apr 2012 Link to this post

    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.
  13. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 12 Apr 2012 Link to this post

    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 >>

  14. Zubair
    Zubair avatar
    13 posts
    Member since:
    Nov 2011

    Posted 12 Apr 2012 Link to this post

    Thanks.

    That was exactly what i was looking for. :)
Back to Top
UI for WPF is Visual Studio 2017 Ready