XY Scatter Plot graph not showing like Excel.


  • I have data see below.  It is showing in XY scatter plot in Excel is correct. When I add same data in chart control XY axis lables are showing wrong


     In Excel XY lables are showing correct. the X-axis values are between 0 and 100. The Y-Axis values are between 0 and 1.


    But Chart control is showing wrong axies values. the X-axis values are between 0 and 3000. The Y-Axis values are between 0 and 10000.


    <asp:Series Name="Series1" ChartType="Point" BorderWidth="2" BorderColor="180, 26, 59, 105" LegendText=" " Color="#9DDAFA"
    ChartArea="ChartArea1" YValueMembers="y" XValueMember="x"></asp:Series> 

    YValueMembers="y" XValueMember="x" columns are assigned to series1. So How to show same like Excel graph (0 to 100 and 0 to 1)?

    Please help needed


    Saturday, July 24, 2010 3:09 AM


  • what happens when you set the AxisX and AxisY Min and Max properties?

        Chart1.ChartAreas(0).AxisX.Minimum = 0
        Chart1.ChartAreas(0).AxisY.Minimum = 0
        Chart1.ChartAreas(0).AxisX.Maximum = 100
        Chart1.ChartAreas(0).AxisY.Maximum = 1
    Saturday, July 24, 2010 6:06 AM

All replies