|
How to use a data series (different than "SameAsainColor") for color axis 3D Scatter chart? |
Posted by Francisco Caycedo on Dec-14-2014 01:20 |
|
Hello,
I have been trying to use 4 data series to build a 3D scatter chart (X axis, Y axis, Z axis,
ColorAxis).
So far I can only use the SameAsMainColor option or a fixed color, but not a data series.
I already checked the forum and support material without success. Any help will be
appreciated.
c.addScatterGroup(xData, yData, zData, "", Chart.GlassSphere2Shape, 11,
COLOR_AXIS_DATA_SERIES????)
Thanks,
Francisco |
Re: How to use a data series (different than "SameAsainColor") for color axis 3D Scatter chart? |
Posted by Peter Kwan on Dec-16-2014 01:06 |
|
Hi Francisco,
In a 3D scatter chart, r use a color that depends on the z-value. For example, you can
define the color so that it is red if z = 150, and yellow if z = 120 and green if z = 90.
Essentially, the color is a clue to allow the viewer to determine the z-value of a point. The
"3D Scatter Chart (1)" is an example of such a color method.
Alternatively, you can specify the color of the data points yourself. The "3D Scatter Groups"
is an example of such a color method in which there are 3 colors for the data points. You
can create more groups if you have more colors.
For your case, I am not sure what is "COLOR_AXIS_DATA_SERIES" in your code. Is it an
array of colors for your points? If this is the case, you can use the method as in "3D
Scatter Groups" to specify the colors for the data points. If every point has a different
color, you can but each point into its own group.
If you have some points that you want to color based on the z-value, and some points
which you would like to specify the colors yourself, you can put the points in different
groups.
Hope this can help.
Regards
Peter Kwan |
Re: How to use a data series (different than "SameAsainColor") for color axis 3D Scatter chart? |
Posted by Francisco Caycedo on Dec-16-2014 03:53 |
|
Hi Peter,
Thanks for your answer.
I understand what you are saying, but what I need is to use a 4th variable (array) in the
3D scatter plot: four different arrays for x, y, z, and color.
I was hoping I can get The points coloured by the value of the 4th array, In a similar way
than the colours are defined by z-axis val?es in your example.
If this is not possible, I will need to create groups and allocate the points to them according
with the value in the 4th array.
Thanks,
Francisco |
Re: How to use a data series (different than "SameAsainColor") for color axis 3D Scatter chart? |
Posted by Peter Kwan on Dec-17-2014 00:42 |
|
Hi Francisco,
For your case, you would need to separate your points into groups, with each group
containing points of one color, just line in the "3D Scatter Groups" sample code.
Regards
Peter Kwan |
|