User (Legacy) Posted March 1, 2006 Report Share Posted March 1, 2006 This seems to work on the y axis, but not on the x axis. Chart1.AxisX.Labels(1) = "TestLabel" Link to comment Share on other sites More sharing options...
Software FX Posted March 2, 2006 Report Share Posted March 2, 2006 This code works fine fir me. Maybe you are overriding the setting afterwards. Are you using Data-Binding ? DataBinding will override all data including labels. Another possibility is that the X-Axis step is not a multiple of 2 then this label is being skipped. If you try this code in a brand new project/chart it will work as expected. -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
User (Legacy) Posted March 8, 2006 Author Report Share Posted March 8, 2006 It was happening because I wasn´t passing data to the chart before setting the labels. The following code works: Chart1.Data(0, 0) = 10 Chart1.AxisX.Labels(0) = "TestLabel" "SoftwareFX Support" <noreply@softwarefx.com> wrote in message news:Sqt0CPjPGHA.2492@webserver3.softwarefx.com... > This code works fine fir me. Maybe you are overriding the setting > afterwards. Are you using Data-Binding ? DataBinding will override all > data including labels. > > Another possibility is that the X-Axis step is not a multiple of 2 then > this label is being skipped. > > If you try this code in a brand new project/chart it will work as > expected. > > -- > Francisco Padron > www.chartfx.com > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.