Color in ChSeries

  • Thread starter Alhambra-Eidos Kiquenet
  • Start date
A

Alhambra-Eidos Kiquenet

Hello misters,

I have application web asp.net 2.0 + OWC 11.

I want to generate a chart, like this: ColumnClustered, One Category, and
several Series (ChSeries). I use Legend.

The bars of series have a color, by default, but I want to set this color (I
choose color for each serie).

Is it possible ??

Thanks, regards.
 
A

Alhambra-Eidos Kiquenet

Hi

I get it , code similar this:

serieOWC is ChSeries

....
if (serieOWC.Points[0] != null)
{
this.Response.Write("puntos" + serieOWC.Points.Count );
//serieOWC.Points[0].Interior.BackColor =
Color.FromArgb(154, 54, 54).ToArgb();

string color = "Blue";
if (indiceSeries == 0) color = "Pink";
if (indiceSeries == 1) color = "Orange";
if (indiceSeries == 2) color = "Red";
if (indiceSeries == 3) color = "Green";
if (indiceSeries == 4) color = "Yellow";

serieOWC.Points[0].Interior.Color = color;

//Color.FromArgb(0, 0, 0).ToArgb();
}

....

But now I want to change color of Legend, is it possible ???


Regards, thanks.
 
A

Alvin Bruney [MVP]

Have a look at the legend object. It has a color property that you can use.

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
OWC Black book on Amazon and
www.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley
 
A

Alhambra-Eidos Kiquenet

Hello mister,

I have seen OWC (Office 2003) reference in the following url:

http://msdn2.microsoft.com/en-us/library/aa205426(office.11).aspx


Using the ChLegend object
Use the HasLegend property or the HasChartSpaceLegend property to enable the
legend.

Properties | Border Property | Bottom Property | Font Property | Interior
Property | Left Property | LegendEntries Property | ObjectType Property |
Parent Property | Position Property | Right Property | Top Property

Methods | Select Method


I don't see Color property. versions problem ??

Any help please ?

Thanks, very much
--
http://www.alhambra-eidos.com/web2005/index.html
www.kiquenet.net



Alvin Bruney said:
Have a look at the legend object. It has a color property that you can use.

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
OWC Black book on Amazon and
www.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley


Alhambra-Eidos Kiquenet said:
Hi

I get it , code similar this:

serieOWC is ChSeries

...
if (serieOWC.Points[0] != null)
{
this.Response.Write("puntos" + serieOWC.Points.Count );
//serieOWC.Points[0].Interior.BackColor =
Color.FromArgb(154, 54, 54).ToArgb();

string color = "Blue";
if (indiceSeries == 0) color = "Pink";
if (indiceSeries == 1) color = "Orange";
if (indiceSeries == 2) color = "Red";
if (indiceSeries == 3) color = "Green";
if (indiceSeries == 4) color = "Yellow";

serieOWC.Points[0].Interior.Color = color;

//Color.FromArgb(0, 0, 0).ToArgb();
}

...

But now I want to change color of Legend, is it possible ???


Regards, thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top