Hy,
i'm using c# to create a powerPoint presentation that contains charts. I've added the chart(s) using Graph.Chart, it looks like this: -
Graph.Chart objChart = (Graph.Chart)objSlide.Shapes.AddOLEObject(xx, yy, 250, 180,
-
"MSGraph.Chart.8", "", MsoTriState.msoFalse, "", 0, "", MsoTriState.msoFalse).OLEFormat.Object;
-
objChart.ChartType = Graph.XlChartType.xl3DColumnClustered;
-
I've added data using : dataSheet = objChart.Applic ation.DataSheet ;
Now my problem is that i need to set the color for the chart(i need the columns to be red, and by default there are blue), and i can't find any way to do that. I've tried with objChart.set_Co lors but it doesn't work.
Anyone has any idea how can i do that?
Thanks!
0 1269 Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Thierry Lam |
last post by:
Let's say I have the following data:
500 objects:
-100 are red
-300 are blue
-the rest are green
Is there some python package which can represen the above information
in a pie chart?
|
by: Dave |
last post by:
I'm trying to follow the examples in VBAGRP9.CHM and/or VBAGR10.CHM with no
success. I'm trying to Chage the Legend Colors based on Content so that I
can establish a certain color format on Content. The Chart will reside on a
Report and possibly converted to a 2002 format. Currently I'm using the
following code with Microsoft Graph 11.0 Object Library referenced.:
With myChart.Legend
For i = 1 To .LegendEntries.Count...
|
by: rkbnair |
last post by:
I created a pie chart in an aspx. However, how can I display the data in the
piechart itself in the right location? The code is as follows:
(Please see the definition of float x and float y)
private void CreatePieChart_a(string pStr_SQL, string
dataColumnName,string labelColumnName,string title, int width)
{
string connString = Cls_DManager.GetOleDbConnection().ToString();
OleDbConnection myConnection = new OleDbConnection(connString);
|
by: ImageAnalyst |
last post by:
Have you ever wondered what the colors are of those dozens of colors
you can choose from when using System.Drawing.Color.* ?
I ran across this nice chart that shows color patches of all of them:
http://www.pardesiservices.com/softomatix/colorchart.asp
This is convenient if you want to pick out a color from a predefined
palette rather than designing your own by experimenting with Photoshop
and then using RGB(rValue, gValue, bValue) in...
|
by: Kuna |
last post by:
Hi All,
I am trying to create a gantt chart in php by getting data from
database. I am using WindowsXp OS and having php-4 and my-sql DB. I
have installed the JPGRAPH package to my system and including the
jpgraph modules accordingly. I am able to create a gantt chart by
hardcoding the datas but when I am trying to get the data from database
then I am not able to get the chart it is showing errors. I think thre
might be some problem in...
| |
by: rdemyan via AccessMonster.com |
last post by:
I have a need to highlight a date range in a bar chart. If the
"highlighting" is accomplished by changing the bar column color for the
specific months in the date range, that would be great.
Here's an example:
I'm plotting meter usage against dates on the chart. The dates are typically
the first day of the month.
So assume the chart range is 1/1/2000 through 10/31/06, but for the date
|
by: JohnnyB |
last post by:
I've been wrestling with this off and on for a few days and came close but it's still not right. I'll try to explain it as best I can.
I created a report with a pie chart on the first page that is a summary of issues for all of the types of users we track. Those users are: employees, customers, third-party, vendor and offshore. The first chart shows total issues for all of these people. The pies in the chart are the priority of issues. Those...
|
by: Walt in Decatur |
last post by:
Is there a way to control Access charts to the degree that can be done in Excel? Specifically, I would like to be able to define colors and use the DLookUp function to define the input for the axis labels. I'm using Access 2003.
Another thing that is weird, is that after creating a chart with the wizard, the chart displayed in the design view is the "generic chart" rather than the actual chart. Why??? It only shows a limited number of...
|
by: damian.mcbride |
last post by:
I am using C# to take data from a database and place in an Excel 2003
spreadsheet. Depending on the user query the data can be anything
from a few rows to 1000 rows.
The Excel 2003 sheet is a template with 4 existing Charts. The charts
are formated with different colors and sizes etc. I want to select
each chart in turn and adjust the source data and series data to match
the number of rows.
I am having trouble setting the chart...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |