User (Legacy) Posted December 4, 2003 Report Share Posted December 4, 2003 My dataset contains a two column table. The first column is longitued with value between -74.07518529 and -74.06532017. The second column is amplitude with values between 83.00 and 130.00. In the form load event I have the following code, sqlDataAdapter2.Fill(dataSet11); chart1.Gallery = SoftwareFX.ChartFX.Gallery.Scatter; chart1.DataSourceSettings.DataType[0] = SoftwareFX.ChartFX.DataType.XValue; chart1.DataSourceSettings.DataType[1] = SoftwareFX.ChargFX.DataType.Value; chart1.DataSource = dataSet11.Tables[0]; This displays as it should but with the Y min starting at 0. If I use the designer to change the min/max of the Yaxis auto to 83/130 then all the values pile up on the Y axis ie the left side of the graph. What is going on? Dave Link to comment Share on other sites More sharing options...
Software FX Posted December 4, 2003 Report Share Posted December 4, 2003 By default the Y-Axis starts at Zero. To prevent this (and have the Y-Axis starts wherever your data starts) you need to do: chart1.AxisY.ForceZero = false; Prior to setting the data. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.