We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Setting point interior from xml binding

Thread ID:

Created:

Updated:

Platform:

Replies:

101421 Oct 24,2011 11:49 AM Nov 29,2011 11:50 PM WPF 7
loading
Tags: Chart
Dai Francis
Asked On October 24, 2011 11:49 AM

Hi,
I am drawing FastScatter series from data in an XML file (incident 85597). For one of the series I need to draw some of the points with a different interior using color data which is also in the XML file. From reading the forum, FAQ etc the best/only way seems to be to override FastScatterPresenter.OnRender and manually draw the series. My problem is accessing the co-ordinate and color data in the xml file from within the overridden OnRender method. When OnRender is called the Points collection is null. How do I access the points collection populated from the xml file? I would rather not have the overhead of populating a points collection in the OnRender method every time it is called.

Many Thanks
Dai Francis


Dai Francis
Replied On October 31, 2011 07:16 AM

Hi again,
I have succeeded in getting my XML based points into the points structure available in the OnRender function as shown in your sample, FastScatterCharts1288413969.zip, so can now change the point colour, size etc.

I now need to draw different groups of points in my FastScatter Series different colours. The colour data for each point is stored in the XML file with the point data. Is there a way to access this colour information through the XML from within the OnRender function?

Many Thanks
Dai Francis


Dai Francis
Replied On October 31, 2011 07:19 AM

Hi again,
I have succeeded in getting my XML based points into the points structure available in the OnRender function as shown in your sample, FastScatterCharts1288413969.zip, so can now change the point colour, size etc.

I now need to draw different groups of points in my FastScatter Series different colours. The colour data for each point is stored in the XML file with the point data. Is there a way to access this colour information through the XML from within the OnRender function?

Many Thanks
Dai Francis


Ganesan [Syncfusion]
Replied On November 17, 2011 12:07 PM

Hi DaiFrancais,

We have prepared a custom sample based on the scenario reported to apply differrent colors to each point in a scatter chart.Kindly download the sample from the following link

CustomChartXMLSample116720510.zip


Regards,
Ganesan


Dai Francis
Replied On November 22, 2011 07:42 AM

Hi Ganesan,
Thanks for your help, I am now able to colour the individual points of my Fast Scatter Chart, my code is attached.

I also have to draw a Column Chart with each column a different colour (FastColumnPresenter ?). I have tried overriding the OnRender function as before but this doesn't seem to work in quite the same way as for the Fast Scatter Chart. Do I need to do something different?

Thanks
Dai


Ganesan [Syncfusion]
Replied On November 24, 2011 12:45 PM

Hi DaiFrancis,


We would like to infrom you that currently we have been working on this requested feature of "Applying different colors to each segment in column chart" and it will be implemented and included in our upcoming Vol1 2012 release,which will be available in the month of January 2012.



Regards,
Ganesan


Dai Francis
Replied On November 28, 2011 04:18 AM

Hi Ganesan,
Thanks for your help.
Dai


Ganesan [Syncfusion]
Replied On November 29, 2011 11:50 PM

Hi Dai,


Thanks for the update. Please keep check our website continously to get updates of our Volume release informations.


Regards,
Ganesan


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;