Click here to Skip to main content
15,894,405 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to show the zeroth line of X axix.I just fix the interwal of y axis but zeroth line is now where is shown. I am using Chart control in asp.net

My Code snippest is as follows

XML
<td  align="left">
                <asp:Chart ID="Chart1" runat="server" Height="50px" Width="100px">
                    <Series>
                        <asp:Series Name="Series1" ChartType="Spline" LabelForeColor="DarkRed"
                            MarkerBorderColor="Red" Font="Times New Roman, 7.25pt">

                        </asp:Series>
                     </Series>
                    <ChartAreas>
                        <asp:ChartArea Name="ChartArea1">
                            <AxisY LineColor="White" IsLabelAutoFit="False" LabelAutoFitMaxFontSize="5"  IsLogarithmic="False" >
                                <MajorGrid Enabled="True" Interval="7" LineColor="Black" />
                                <MinorGrid Enabled="True" Interval="7" LineColor="Black" />
                                <MajorTickMark Interval="10" LineColor="White" />
                                <MinorTickMark LineColor="DimGray" />
                                <LabelStyle Enabled="False"  Interval="1"/>
                            </AxisY>
                            <AxisX LineColor="White" IsLabelAutoFit="False" LabelAutoFitMaxFontSize="5"  IsLogarithmic="False">
                                <MajorGrid Enabled="True" Interval="1" LineColor="Silver" />
                                <MinorGrid Enabled="True" LineColor="Silver" />
                                <MajorTickMark LineColor="Silver" />
                                <LabelStyle Enabled="False" Interval="1" />
                             </AxisX>
                        </asp:ChartArea>
                    </ChartAreas>
                </asp:Chart>
            </td>
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900