Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MSChart pie, how to 'explode' slice programmatically
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01386478
Message ID:
01388596
Views:
52
Can you make it happen through the MSChart properties dialog?

>Hi Terry
>
>Yes, I know, that is exactly what I have being doing with forms and MSChart.
>
>All that I need now is to 'explode' a pie slice programatically, as it is possible to drag the pie slice off the pie using the mouse when formtestchart.oChart.AllowSelections = .t.,
>
>For example, coloring each pie slice works with the following code, each slice is referenced wiht SeriesCollection(1), 2, etc:
>
>formtestchart.pageframe1.page1.oChart.Plot.SeriesCollection(2).DataPoints(-1).Brush.FillColor.Set(250,50,140)
>
>
>And again, this must work for the slice exploding, but it does not...
>
>formtestchart.oChart.Plot.SeriesCollection(1).DataPoints(-1).offset = 90
>
>
>?
>
>
>>Maximo
>>
>>You do know that you can add a chart to a form and then drive it from the VFP window. If it's an In Screen form with a chart on it, run the form. Then, in the command window, type Myform.MyChart to expose the property and methods.
>>
>>You will have to hack it out - experiment. Once you do you rule. I do a lot of stuff with MSChart - but the questions I had were beyond the how to seminar presentations we're so used to - so I hacked it out.
>>
>>Check my site. The charts are all interactive. Once you get beyond "how do I make a series red", the message boards can't help you. You got to hack it.
>>
>>Terry
>>www.r6solutions.com/
>>
>>
>>>Hi All
>>>
>>>I'm developing an small app for a customer and I'm using MSChart to create pie graphics.
>>>(I do have it solved with the VFPx FoxChars, very nice, but too slow rendering..., so back to the old OCXs).
>>>
>>>I have tried today (until now) to programatically 'explode' a pie slice without success.
>>>this should work:
>>>
>>>formtestchart.oChart.Plot.SeriesCollection(1).DataPoints(-1).offset = 90
>>>
>>>but it doesn't...
>>>
>>>I'm able to drag one or more slices from the pie chart when formtestchart.oChart.AllowSelections = .t., so the chart is able to do slice exploding or offset, how to do it programatically?
>>>
>>>TIA
>>>
>>>Max
Imagination is more important than knowledge
Previous
Reply
Map
View

Click here to load this message in the networking platform