2

I am new to asp.net chart controls. I am plotting a 3D column chart using the same. In excel when ever we plot the same we get the option to plot data in all the 3 axis. i.e X Y and Z. But in case of the asp.net chart control I am able to create only two axis i.e x and y. I know that we can create a secondary yaxis and x axis but is there any way that I can show the Z axis in the same. Below is the code which I am using to generate the chart.

<asp:Chart ID="Chart1" runat="server" Height="208px" Width="395px"
        Palette="Bright" BackColor="Silver"   >
   <series>  
           <asp:Series Name="Car" YValuesPerPoint="2">             
            <Points>                    
                <asp:DataPoint AxisLabel="Car"  YValues="85,0"/>
                <asp:DataPoint AxisLabel="Pencil"  YValues="43,0"/>
                <asp:DataPoint AxisLabel="Pen"  YValues="89,0"/>
                <asp:DataPoint AxisLabel="Rubber"  YValues="96,0"/>

            </Points>
           </asp:Series>  
           <asp:Series Name="Pencil" YValuesPerPoint="2">   

            <Points>         
                <asp:DataPoint AxisLabel="Car"  YValues="43,0"/>
                <asp:DataPoint AxisLabel="Pen"  YValues="0,0"/>
                <asp:DataPoint AxisLabel="Pencil"  YValues="28,0"/>
                <asp:DataPoint AxisLabel="Rubber"  YValues="7,0"/>

            </Points>
           </asp:Series>   
            <asp:Series   Name="Pencil" YValuesPerPoint="2">

            <Points>
                <asp:DataPoint AxisLabel="Car"  YValues="86,0" />
                <asp:DataPoint AxisLabel="Pen"  YValues="46,0"/>
                <asp:DataPoint AxisLabel="Pencil"  YValues="6,0"/>
                <asp:DataPoint AxisLabel="Rubber"  YValues="7,0"/>
            </Points>
           </asp:Series>     
           <asp:Series   Name="Rubber" YValuesPerPoint="2"> 

            <Points>
                <asp:DataPoint AxisLabel="Car"  YValues="36,0"/>
                <asp:DataPoint AxisLabel="Pen"  YValues="41,0"/>
                <asp:DataPoint AxisLabel="Pencil"  YValues="42,0"/>
                <asp:DataPoint AxisLabel="Rubber"  YValues="30,0"/>
            </Points>
           </asp:Series>            
      </series> 
       <ChartAreas>  
           <asp:ChartArea Name="ChartArea1" BorderColor="64, 64, 64, 64"  
    BorderDashStyle="Solid" BackSecondaryColor="White" 
    BackColor="64, 165, 191, 228" 
    ShadowColor="Transparent" BackGradientStyle="TopBottom" >  
               <area3dstyle Rotation="30" perspective="10" Inclination="20" Enable3D="true" LightStyle="Realistic"   
    IsRightAngleAxes="False" IsClustered="False"></area3dstyle>  
               <axisy linecolor="64, 64, 64, 64" >  

                   <majorgrid linecolor="64, 64, 64, 64" />  
               </axisy>  
               <axisx linecolor="64, 64, 64, 64" Interval="1"  ArrowStyle="SharpTriangle" IsMarksNextToAxis="false">  


               </axisx>  

           </asp:ChartArea>  

       </ChartAreas>  

    </asp:Chart>

0 Answers0