I am new to asp:Chart control please help me
I'm using an asp:Chart control and am creatinga singleseries( with 12 values)
<asp:chart id="Chart1" runat="server" ImageLocation="~/TempImages/ChartPic_#SEQ(300,3)" ImageType="Png" BackColor="#D3DFF0" Palette="BrightPastel" BorderDashStyle="Solid" BackSecondaryColor="White" BackGradientStyle="TopBottom" BorderWidth="2" BorderColor="26, 59, 105">
<legends>
<asp:Legend LegendStyle="Table" Enabled="False" IsTextAutoFit="False" Docking="Top" Name="Default" BackColor="Transparent" Font="Trebuchet MS, 8.25pt, style=Bold" Alignment="Center"></asp:Legend>
</legends>
<borderskin skinstyle="Emboss"></borderskin>
<series>
<asp:Series XValueType="Double" Name="Default" ChartType="Pie" BorderColor="180, 26, 59, 105" ShadowOffset="3" Font="Trebuchet MS, 8.25pt, style=Bold" YValueType="Double"></asp:Series>
</series>
<chartareas>
<asp:ChartArea Name="ChartArea1" BorderColor="64, 64, 64, 64" BackSecondaryColor="White" BackColor="Transparent" ShadowColor="" BorderWidth="0">
<area3dstyle Rotation="10" perspective="10" Inclination="15" IsRightAngleAxes="False" wallwidth="0" IsClustered="False"></area3dstyle>
<axisy linecolor="64, 64, 64, 64">
<labelstyle font="Trebuchet MS, 8.25pt, style=Bold" IsStaggered="True"/>
<majorgrid linecolor="64, 64, 64, 64" />
</axisy>
<axisx linecolor="64, 64, 64, 64">
<labelstyle font="Trebuchet MS, 5.25pt, style=Bold" IsStaggered="True"/>
<majorgrid linecolor="64, 64, 64, 64" />
</axisx>
</asp:ChartArea>
</chartareas>
</asp:chart>.
The chart displays correctly, but only some of the points' names show.
Here are all the series properties I set:
// Populate series data
double[] yValues = { 1000,30,40,50,45,44,56,88,100,454,45,200};
string[] xValues = { "Jan","Feb","Mar","Apr","May","June","July","Aug","Sep","Oct","Nov","Dec"};
Chart1.Series["Default"].Points.DataBindXY(xValues, yValues);
//Chart Title
Title chartTitle = new Title("Total Tickets");
Chart1.Titles.Add(chartTitle);
//Chart Width and Height
Chart1.Height = System.Web.UI.WebControls.Unit.Pixel(300);
Chart1.Width = System.Web.UI.WebControls.Unit.Pixel(500);
// Set Doughnut chart type
Chart1.Series["Default"].ChartType = SeriesChartType.Column;
//Set data points label style
// Disable the Legend
Chart1.Legends[0].Enabled = false;
//Enable 3d
Chart1.ChartAreas["ChartArea1"].Area3DStyle.Enable3D = true;
//Other
Chart1.Series["Default"].IsXValueIndexed = true;
Chart1.Series["Default"].IsVisibleInLegend = false;
Chart1.Series["Default"].IsValueShownAsLabel = true;
Chart1.Series["Default"].LabelAngle = 90;
Chart1.Series["Default"]["BarLabelStyle"] = "Center";
Chart1.Series["Default"]["DrawingStyle"] = "Cylinder";
Chart1.Series["Default"]["ShowMarkerLines"] = "true";
Chart1.Series["Default"]["PointWidth"] = "0.9";
why Chart control not showing all points labels on x-axis? I tried to increase width also but not able to find solution..... Please help me.... After executing above code it shows x-asix label as Jan,Mar,Jun etc... what about other x axis label like Feb,apirl etc.....