473,387 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Change bar color on bar graph

219 100+
I'm trying to change the colors for the bars on the bar graph. In the design view I can only change 4 bars, but my graph has 6 bars. How do I go about changing the other bars on the graph?
Feb 8 '08 #1
1 7571
puppydogbuddy
1,923 Expert 1GB
I'm trying to change the colors for the bars on the bar graph. In the design view I can only change 4 bars, but my graph has 6 bars. How do I go about changing the other bars on the graph?
I don't understand why you can't change the other 2 bars. It does not make sense. You need to provide more details. You are welcome to try the following vba code and see if that helps. Replace illustrative objects (YourChartContainerObject/YourChartObject) with your actual objects.
Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_Open(Cancel As Integer)
  2.  
  3.        With Me.YourChartContainerObject.YourChartObject
  4.            .SeriesCollection(1).Interior.Color = RGB(255, 128, 128) 'peach
  5.            .SeriesCollection(2).Interior.Color = RGB(0, 255, 128) 'green
  6.            .SeriesCollection(3).Interior.Color = RGB(0, 128, 255) 'blue
  7.            .SeriesCollection(4).Interior.Color = RGB(128, 255, 255) 'turquoise
  8.            .SeriesCollection(5).Interior.Color = RGB(255, 255, 128) 'yellow
  9.            .SeriesCollection(0).Interior.Color = RGB(255, 0, 255) 'magenta
  10.        End With
  11.  
  12. End Sub
  13.  
Feb 9 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Lilith | last post by:
Is there a python module somewhere (been searching today, no luck) which has efficiently coded various graph-handling routines, such as finding the shortest path through a graph, or the set of all...
1
by: Enterprise | last post by:
Hi, I use Access 2000. I have a linear plot in the database. What would be the best way to find the change in the highest linear point to the lowest linear point on the graph? Graph values come...
5
by: Peter Bailey | last post by:
I have an expression that returns the week number in a row but descending from a date: Week Number: DateDiff("ww",DateAdd("ww",1,forms!FrmBookingCurveInput!TxtStart.value),) It allows me to...
1
by: entropy123 | last post by:
Hey all, In an effort to solve a sticky - for me - problem I've picked up Sedgewick's 'Algorithm's in C'. I've tried working through the first few problems but am a little stumped when he refers...
1
by: ken | last post by:
Hi, How do you change the font for the data labels on your bar graph report/chart? I have 24 series, and when I change the font of the data label for one series that does not change them all......
4
by: John Henry | last post by:
I am looking for a ready made simple graph package. I found an extensive one in the piana package but when I try to use just the graph portion, it fails to load because of the line: class...
2
by: nudrat | last post by:
I want to draw a line graph. the values on x-axis and y-axis are entered in a text box. I want as soon as the value are entered in the text boxes, graph with that values only displayed in the graph....
2
by: Man4ish | last post by:
I have created Graph object without vertex and edge property.It is working fine. #include <boost/config.hpp> #include <iostream> #include <vector> #include <string> #include...
1
by: Man4ish | last post by:
I am creating a graph using boost library, I am making the network using create_Network function() i am adding the vertices to this graph by creating the object g of class Graph. I am trying to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.