|
3D Surface Charts - Mapping Images and Setting Linear Scale |
Posted by Pete on Jan-11-2013 03:45 |
|
Hi Peter,
I'm translating some of my Contour Layer Charts to 3D Surface Charts and have 2 queries so far:
1) Is is possible to project an image (PNG or whatever) onto one of the Walls? Ideally I want to map it onto the Bottom Wall.
2) I'm having trouble setting a Linear Scale with the Surface Charts. So using the same code I did for my Contour Layers I'm using the following to set the Axis for my Surface Chart (in PHP) :
$cAxis = $c->setColorAxis(780, 40, TopRight, 200, Right);
$cAxis->setColorGradient($smoo[$chart], $grad1[$chart]);
$cAxis->SetLinearScale($scale1[$chart],$scale2[$chart],$scale3[$chart]);
$cAxis->setTickDensity(10);
3 of the 4 above work just fine. I am setting and positioning the axis fine. I am able to apply my Array of Colours to set the Gradient OK and I can see them applied to the Axis.
BUT as you can see I have also applied SetLinearScale (using the same parameters I did for my Contour chart) - but the Auto-Scale values just keep getting used, and I am not seeing my Fixed Linear Scale being applied.
Is there a reason for this using Surface Charts, or is it a bug of some kind? |
Re: 3D Surface Charts - Mapping Images and Setting Linear Scale |
Posted by Peter Kwan on Jan-12-2013 02:43 |
|
Hi Pete,
1) Unluckily, ChartDirector currently does not support put an image on the 3D wall.
2) For the color axis, in a surface chart, ChartDirector internally will call "syncAxis" to synchronize it to the z-axis. So you always see the color axis as having the same scale as the z-axis in a surface chart. If you would like to modify the scale of a color axis, there are two methods:
(a) Modify the scale of the z-axis instead.
(b) "Unsync" the color axis by using:
$cAxis->syncAxis($cAxis);
... now you can use $cAxis->setLinearScale ...
Hope this can help.
Regards
Peter Kwan |
|