Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
105
Dynamically changes Y axis values in datachart bargraph
posted

How to dispaly dynamically changes Y-Axis values for each request.

For exmaple data:X-axis  and Y-axis data  for ecach requset. but Y-axis data will change dynamically for each request.

X-Axis --         Y-axiss

------------------------

11/02/2014     2000

12/05/2014     2200

01/26/2015     21000

==============

11/10/2014    0.56%

12/19/2014    0.62%

===============

11/10/2014   5

12/19/2014   14

02/13/2015   7

===============

Note: Y-axis value has Min and Max values. The value is less than Min value then display in Green bar and values is Grater than Max value disply in Red and in between display in Yellow Bar.

How to diplay this type of data in  silverlight  using xamDataChart with bargraph in diffirent colors as mentioned above.

 

 

 

 

Parents
  • 34510
    Verified Answer
    Offline posted

    Hi Venkateswarlu,

    You can change what values are shown in the Y axis by changing the Minimum and Maximum properties.  If one series requires the ability to show data points with 2000, 2100, and 21000 as the Y values then setting the Minimum and Maximum to encapsulate update the Y axis labels to show that range.  The same for a different series needing to show percentages.  You cannot have one Y axis showing all of these different values though.  A single NumericYAxis can only show a range of values between a minimum and a maximum.

    For changing the bar colors, I'm a bit confused by your requirement.  If you have the Minimum and Maximum values set, and your bar value is less than the minimum, the XamDataChart is not going to show that bar so there is no point in giving it a color.  However, if you need to change the color of the bars, please see the following forum thread:
    https://es.infragistics.com/community/forums/f/retired-products-and-controls/48210/colouring-columns-bars-in-the-chart-based-on-value/256989#256989

Reply Children