|
Modifying Bubble Symbols in VB6 |
Posted by Mike on Oct-13-2009 04:43 |
|
Is there a method for changing the appearances of bubbles in a bubble chart? I basically want to re-use a chart, rather than recreate a new one from scratch. Can I change the color or shape of one of the bubbles after addScatterLayer() has been called? |
Re: Modifying Bubble Symbols in VB6 |
Posted by Peter Kwan on Oct-13-2009 17:03 |
|
Hi Mike,
You can change the color of a bubble in a chart, provided the chart has not been actually drawn (makeChart, makePicture, etc, has not been called). If the chart has been drawn, you would need to create a new XYChart object.
For example:
Set layer = c.addScatteLayer(..................)
.... do something .....
'modify the color of the layer above
Call layer.getDataSet(0).setDataColor(&Hff0000)
Hope this can help.
Regards
Peter Kwan |
Re: Modifying Bubble Symbols in VB6 |
Posted by Mike on Oct-13-2009 22:26 |
|
Well, it answers my question, but it just seems an odd convention. Why would I want to change some values or colors before I create the chart? Given how the chart object is not an actual part of a VB6 form (ie it is not itself a control), I find it odd that calls to publish the chart into a control would disable features of the chart.
Thanks for the response, though. |
|