|
Thickness of shapes |
Posted by Soren Munk on Jun-08-2012 21:58 |
|
Hi, i'm having a chart with a scatter layer with some shapes, and was wondering if it is possible to set the thickness of the shape for a given layer.
My code VB6 and looks something like:
Dim layers As ScatterLayer
Set layers = c.addScatterLayer(dataX, dataY, label, shape, shapeDiameter, fillColor, edgeColor)
Thanks,
Soren Munk |
Re: Thickness of shapes |
Posted by Peter Kwan on Jun-09-2012 00:52 |
|
Hi Soren,
For "thickness", do you mean thickness in 3D (as opposed to line thickness)?
Whereas you can add a 3D depth to any layer (using Layer.set3D), the built-in ChartDirector symbols are basically flat. In order words, even using set3D, the symbols will stay the same shape.
Note that some ChartDirector built-in symbols already have some "3D look", like the GlassSphereShape, GlassSphere2Shape and SolidSphereShape, but they are not true 3D shapes, as they stay the same no matter the layer is in 3D or not.
One method to get a 3D symbol is to use a custom symbol, creating using DataSet.setDataSymbol2, DataSet.setDataSymbol3 or DataSet.setDataSymbol4. For example, the DataSet.setDataSymbol2 allows you to use an external image as the symbol. You can therefore create an image that shows a 3D shape, and use it as the symbol.
For example:
Dim layers As ScatterLayer
Set layers = c.addScatterLayer(dataX, dataY, label)
Call layers.getDataSet(0).setDataSymbol2("c:\\path\\to\\my3Dsymbol.png")
Regards
Peter Kwan |
|