# A question of 3D charts. RSS

## 5 replies

Last post Nov 30, 2012 12:25 AM by ToughMan

Member

99 Points

118 Posts

### A question of 3D charts.

Nov 26, 2012 04:05 PM|LINK

Suppose I am using the asp chart control, and I have one X value with a Y and a Z value.  For instance, lets say for every neighborhood in a city, I want to chart the devastation of Hurricanes on a scale of 1 to 10, but I also want to chart the number of hurricanes.

So for instance, if a hurricane hit Fort Lauderdale three times, and each time the devastation was "10", then I would want to see a point at Fort Lauderdale at 10 in the Y dimension, but with magnitude of three in the Z dimension.  Lets assume "Fort Lauderdale" is a number on the X-axis.

I thought of using a point chart which has 3 points at (X="FortL", Y=10, and Z=1,2,3).  The 3 points would have to be distinguishable.

But the chart doesn't seem to let me do that.  The points are not distinguishable.

This example isn't exactly what I'm doing, but its similar.  Maybe a better example than using "Fort Lauderdale" might be community with population of one million - to give a number on the X axis.

Thanks,

• ### Decker Dong ...

All-Star

118619 Points

18779 Posts

### Re: A question of 3D charts.

Nov 27, 2012 03:43 AM|LINK

Hello,

You can try to set ChartArea=>Enable3D=True.

For more please refer this：

[aspx]

``` <asp:Chart ID="Chart1" runat="server">
<series>
<asp:Series Name="Series1">
</asp:Series>
</series>
<chartareas>
<asp:ChartArea Name="ChartArea1">
<Area3DStyle Enable3D="True" />
</asp:ChartArea>
</chartareas>
</asp:Chart>```

[cs]

```protected void Page_Load(object sender, EventArgs e)
{
Random r = new Random(Guid.NewGuid().GetHashCode());

for (int i = 1; i < 11; i++)
{
}
}```

Member

99 Points

118 Posts

### Re: A question of 3D charts.

Nov 27, 2012 12:18 PM|LINK

I had enabled 3D when I did the experiment, so thats not the problem.

I find I can't distinguish between points that have the same x and Y, but differ on Z.

Maybe its just a matter of rotation of the graph.  I'll try adding a rotation button and tilt button to the graph, and see if I can move it around until I see the points look separate.

• ### Decker Dong ...

All-Star

118619 Points

18779 Posts

### Re: A question of 3D charts.

Nov 28, 2012 12:08 AM|LINK

Hello again,

It seems that you wanna a Z axis supported in Chart, now you can my solved problem here:

http://forums.asp.net/t/1620234.aspx/1

Member

99 Points

118 Posts

### Re: A question of 3D charts.

Nov 29, 2012 10:51 AM|LINK

I looked at your link, but it doesn't make clear to me how to make a 3D graph where you supply a triplet: (x,y,z).  There is some explanation at the end, but it seems to be an explanation of converting chart coordinates to screen coordinates.  Its not clear.

Thanks.

Participant

1490 Points

635 Posts

### Re: A question of 3D charts.

Nov 30, 2012 12:25 AM|LINK

No, gidmeister:)

3D's Z isn't supported in Microsoft's Chart.