VB6 MSChart

mathprof
02-12-2012, 08:29 AM
Is it possible/ How Can I ?
#1 explode a piece of a pie chart
#2 Write inside a piece of a pie chart

Thanks.

surfR2911
02-26-2012, 07:35 PM
Is it possible?Of course it is possible
You probably mean something like this.

Such things are normally done with Excel VBA, not VB6
You should probably post in the "VBA / Office Integration > Excel (http://www.xtremevbtalk.com/forumdisplay.php?f=78)"
section of the forum to get the appropriate vba code.

I can give you a hint before you head over there...
ChartType = 70 'xl3dPieExploded (http://it.toolbox.com/wiki/index.php/EXCEL_Chart_Type_Enumeration) from here (http://technet.microsoft.com/en-us/library/ee692898.aspx).
(ChartType = 69 'xlPieExploded)How can I explode a piece of a pie chart and
write inside a piece of a pie chart?
For others who may want answers to these questions and need a
a sample "of drawing a pie chart with selectable exploding slice"
appropriate to this
"Legacy Visual Basic (VB 4/5/6) > Interface and Graphics" forum,
I have attached a demo with screenshot below.

If you want a 3D like pie chart an/or allow it to be tilt-able
as well as rotate-able you should check out the code here (http://www.vbforums.com/showthread.php?t=482977).

mathprof
02-26-2012, 08:00 PM
Wow! Elegant. Thank you.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum