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.
Hi Venkateswarlu,
Sorry for the late reply. I actually reworked the sample so that instead of calculating the desired color inside a behavior, I calculate it inside each data point separately. I then just pull the color from the data point and use that to color each column. This also allows me to easily bind the tooltip template to use the color. By default the template will use the Series.ActualBrush for the color so overriding the template is a must if you want to change its color. Take a look at my attached sample.
Tool Top color doesn't change . How to change the Tool Tip color same as bar grapg color.
Hi,
Every thing working fine but Tool Top color doesn't change . How to change the Tool Tip color same as bar grapg color.
Thanks,
Venky
Just realized that this is in the Silverlight forums. I updated the sample to use Silverlight rather than WPF. The approach is still the same though.
I attached a sample that changes the color of the column based on the result in relation to a min/max value. Graham's code from that previous forum post I linked doesn't appear to work anymore in newer versions of the chart so I created a Behavior<T> that will do this instead. The Behavior<T> handles the RefreshCompleted event on the chart and then grabs the Rectangle objects from the ColumnSeries canvas. It then sets the Fill property based on the Result value.