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.

How to paint a region on a chart

Thread ID:

Created:

Updated:

Platform:

Replies:

108874 May 16,2013 01:58 PM Jun 3,2013 03:14 AM WPF 4
loading
Tags: Chart
Jared Stokes
Asked On May 16, 2013 01:58 PM

I have a scatter chart that is bound to some data.  I want to shade in a region of the chart.  Is this possible?

Thanks,
Jared

Karthikeyan V [Syncfusion]
Replied On May 23, 2013 02:52 AM

Hi Jared,

 

Thanks for using the Syncfusion products.

 

We have analyzed your query and your requirement can be achieved by using “GridBackground” property of ChartArea.

 

Code snippet [XAML]:

 

<syncfusion:ChartArea GridBackground="Aqua" >

 

We have prepared the sample based on this and you can download the sample in the following location.

 

Note : If the above suggestion does not suits your requirement, then please provide us more information or snapshots to illustrate your requirement.

 

Please let us know if you have require any further assistance on this.

 

Regards,

Karthikeyan V.



PaintGridBackground_b073d53b.zip

Jared Stokes
Replied On May 28, 2013 05:54 PM

Thanks, I was able to get it working.  One quick follow up question:  Is there a way to make a chart area's interior have some transparency to it?

Thanks,
Jared

Jared Stokes
Replied On May 28, 2013 05:55 PM

Just to clarify, like on a specific chart series.  Say like a chart area graph where the chart area is green with 80% opacity.

Karthikeyan V [Syncfusion]
Replied On June 3, 2013 03:14 AM

Hi Jared,

Thanks for the update.

Query 1: chart area's interior have some transparency to it?

We have analyzed the reported query. You can achieve your requirement by applying below code snippet.

Code snippet [XAML]:

<syncfusion:ChartArea   Background="Transparent" />

Query 2: like on a specific chart series.  Say like a chart area graph where the chart area is green with 80% opacity.

Your requirement can be achieved by applying the below code snippet.

Code snippet [XAML]:

<syncfusion:ChartSeries.Interior>

      <SolidColorBrush Color="Green" Opacity="0.8" />

</syncfusion:ChartSeries.Interior>

We have prepared the sample based on this. You can download the sample in the following location.

Please let us know if you have require any further assistance on this.

Regards,

Karthikeyan V.



SeriesSegmentOpacity_9948423a.zip

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.

;