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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ChartSerieImpl.InvertIfNegative property

Thread ID:





104294 Jul 9,2012 09:17 AM UTC Jul 10,2012 06:36 AM UTC ASP.NET Web Forms (Classic) 2
Tags: XlsIO
Johan Wendelstam
Asked On July 9, 2012 09:17 AM UTC


I am trying to use the InvertIfNegative property on the chart series. I have found it on the ChartSerieImpl but i havent found it through any interface (IChartSeries).

Is there any way to set the value without relying on the XXXImpl class?

Thanks in advance

Johan Wendelstam
Replied On July 9, 2012 09:43 AM UTC

The reason I want to set the property is that I have a column chart that need to have different colors for positive/negative values. I have been able to create the result in Excel (by setting serie properties).

I have managed to set the value by using
if (serie is ChartSerieImpl)
   ((ChartSerieImpl)serie).InvertIfNegative = true;

But I have trouble setting the colors. When setting it throug Excel i use SolidColor and then select the firstcolor as Green (positve) and the second one as Red (negative).
But I havent been able to to this from XlsIO. Any ideas?

Rajesh A [Syncfusion]
Replied On July 10, 2012 06:36 AM UTC

Hi Johan Wendelstam,

Thank you for updating us.

Kindly create separate incidents from DirectTrac for the below reported issues. This will help us to have a regular follow-up.

Currently we don't have the support to set colors on chart series if the property "InvertIfNegative" is enabled. We request you to create an incident for the same, requesting the support. We have to log a feature request on the same to have a regular follow-up.

Also, we will get back to you on exposing the property "InvertIfNegative" with further details in two business days (i.e., July 11, 2012).

Thanks and Regards,

Rajesh A.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon