PC Review


Reply
Thread Tools Rate Thread

cross hatching and pie chart

 
 
Cenk Ursavas via OfficeKB.com
Guest
Posts: n/a
 
      2nd May 2005
I have two excel questions:
First one is about cross hatching:I am using asp to do cross hatching but
there is a problem when the two hatchings overlap.One hatch stays behind
the other:
http://www.imlab.psu.edu/forest/gr.gif
is there a way to make the hatches transperant?

My second question is about pie charts: I am also displaying pie charts to
the user via asp. I want to get rid of the black box around the pie chart:
http://www.imlab.psu.edu/thesis/1.gif
or make the chart pie itself larger in the box,is there a way to do this?
Is there a way to display the CategoryName instead of the percentage?
"crt.Chart.SeriesCollection(3).DataLabels.ShowCategoryName = True"
does not seem to work!!!!

Thanks for the answers
cengo
 
Reply With Quote
 
 
 
 
Jon Peltier
Guest
Posts: n/a
 
      3rd May 2005
Cengo -

If you're using ASP, it's not exactly Excel, but here goes:

1. The cross hatching will look ugly, and you won't be able to make it partially
transparent, no matter what. Transparency in Excel chart fills has not progressed
since Excel 5.

2. To remove the box from an Excel chart:

crt.Chart.ChartArea.Border.LineStyle = 0

To reposition and resize the pie in an Excel chart:

With crt.Chart.PlotArea
.Left = 72
.Top = 21
.Width = 172
.Height = 170
End With

The values are in points, but I wonder if the OWC uses pixels.

To change the data labels:

crt.Chart.SeriesCollection(3).DataLabels.Type = xlDataLabelsShowLabel

or use 4 in place of xlDataLabelsShowLabel.

Here's a handy tip. Even though you're not working in Excel, the chart object models
are similar. Use a combination of Excel's macro recorder, and the object browser in
the platform within which you're developing, to figure out the appropriate syntax.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______


Cenk Ursavas via OfficeKB.com wrote:

> I have two excel questions:
> First one is about cross hatching:I am using asp to do cross hatching but
> there is a problem when the two hatchings overlap.One hatch stays behind
> the other:
> http://www.imlab.psu.edu/forest/gr.gif
> is there a way to make the hatches transperant?
>
> My second question is about pie charts: I am also displaying pie charts to
> the user via asp. I want to get rid of the black box around the pie chart:
> http://www.imlab.psu.edu/thesis/1.gif
> or make the chart pie itself larger in the box,is there a way to do this?
> Is there a way to display the CategoryName instead of the percentage?
> "Chart.SeriesCollection(3).DataLabels.ShowCategoryName = True"
> does not seem to work!!!!
>
> Thanks for the answers
> cengo


 
Reply With Quote
 
Cenk Ursavas via OfficeKB.com
Guest
Posts: n/a
 
      4th May 2005
Thanks for the responses,
So there is no way I can do cross-hatching in excel with transparency??Is
there any other graph I can do which is kind of close to cross-hatching?
I removed the box around the excel pie chart but I have a problem:
"crt.Chart.ApplyDataLabels (xlDataLabelsShowLabelAndPercent)" works but
"crt.Chart.ApplyDataLabels (xlDataLabelsShowValue)" does not work!!So i can
not show labels or the values...Why is that also "crt.Chart.HasDataTable =
True" works for line graph but does not work for a pie chart??
Thanks for the answers
cengo

--
Message posted via http://www.officekb.com
 
Reply With Quote
 
Jon Peltier
Guest
Posts: n/a
 
      7th May 2005
Cengo -

The cross hatching is an old thing anyway, from the old days of dot matrix. Now most
of the patterns are so small when printed, they just look like a lighter version of
the color.

"crt.Chart.ApplyDataLabels (xlDataLabelsShowValue)" worked for me in a pie chart.

Data Tables are only available in a limited few chart types, like Line, Column,
Area, and I think Bar charts.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______


Cenk Ursavas via OfficeKB.com wrote:
> Thanks for the responses,
> So there is no way I can do cross-hatching in excel with transparency??Is
> there any other graph I can do which is kind of close to cross-hatching?
> I removed the box around the excel pie chart but I have a problem:
> "crt.Chart.ApplyDataLabels (xlDataLabelsShowLabelAndPercent)" works but
> "crt.Chart.ApplyDataLabels (xlDataLabelsShowValue)" does not work!!So i can
> not show labels or the values...Why is that also "crt.Chart.HasDataTable =
> True" works for line graph but does not work for a pie chart??
> Thanks for the answers
> cengo
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cross-Ref to Excel Chart mcalex Microsoft Word Document Management 6 12th Feb 2010 04:15 PM
How do I get cross-hatching in Excel 2007? Tony Microsoft Excel Misc 3 31st Jan 2010 02:08 PM
Old-fashioned cross-hatching in bar chart (X-post) Posterizer Microsoft Excel Charting 2 10th Jul 2008 07:34 PM
How do I make two y axis in bar graphs (i.e. cross hatching)?? =?Utf-8?B?YW5jaWVudGs=?= Microsoft Excel Misc 1 29th Jan 2006 08:53 PM
Cross tab query for chart Zegrath Microsoft Access Queries 1 26th Jan 2005 06:11 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:46 AM.