Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 4
Default Coloring of Excel Chart

Re-posting from

http://forums.microsoft.com/MSDN/Sho...26051&SiteID=1

Thanks

Darryn

------

Hello,

I'm generating Excel-Charts via VSTO in VB .NET. For the Seriescollections I
want to set given RGB-Values like RGB(223, 0, 48) for red. But the colors are
different from the colors, when I generate Chart objects in Excel-VBA.

It seems that the RGB-Colors in VSTO / VB .NET not scalable like it shoud
be. It seems furhter more that there are only a few colors avialable, wenn I
increase or decrease the RGB-Colors they only get brighter or darker in
intervalls.

e.g.
mySeries.Interior.Color = RGB(223, 0, 48) shows the same color as
mySeries.Interior.Color = RGB(204, 0, 35)

My Screen-Setting are settet to 32-bit true color. Do you have any ideas how
to solve this phenomenon?




  #2   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 2,489
Default Coloring of Excel Chart

Hi,

Excel is restricted, in some areas, to a 56 colour palette. Charts is
one such area. When you specify the RGB colour Excel maps it to the
nearest colour in it's palette.

For details on colour in excel see here,
http://www.mvps.org/dmcritchie/excel/colors.htm

For a demonstration, not solution, of your problem in action see here,
http://www.andypope.info/charts/spectrum.htm

Cheers
Andy

Darryn Lavery wrote:
Re-posting from

http://forums.microsoft.com/MSDN/Sho...26051&SiteID=1

Thanks

Darryn

------

Hello,

I'm generating Excel-Charts via VSTO in VB .NET. For the Seriescollections I
want to set given RGB-Values like RGB(223, 0, 48) for red. But the colors are
different from the colors, when I generate Chart objects in Excel-VBA.

It seems that the RGB-Colors in VSTO / VB .NET not scalable like it shoud
be. It seems furhter more that there are only a few colors avialable, wenn I
increase or decrease the RGB-Colors they only get brighter or darker in
intervalls.

e.g.
mySeries.Interior.Color = RGB(223, 0, 48) shows the same color as
mySeries.Interior.Color = RGB(204, 0, 35)

My Screen-Setting are settet to 32-bit true color. Do you have any ideas how
to solve this phenomenon?





--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel chart size macdad Charts and Charting in Excel 7 May 14th 06 01:10 AM
Unwanted Zeros in Excel Chart Displayed Values Daniel Compton Excel Discussion (Misc queries) 4 April 25th 06 04:07 PM
Needing to re-order a datatable display on an Excel chart Poody Charts and Charting in Excel 0 April 11th 06 01:40 PM
Chart Property Confusion Arturo Charts and Charting in Excel 4 December 16th 05 05:13 AM
Using Microsoft Excel Chart object in VB6 fizbim Charts and Charting in Excel 0 July 13th 05 05:14 PM


All times are GMT +1. The time now is 03:52 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"