User (Legacy) Posted April 8, 2003 Report Share Posted April 8, 2003 When the user zooms in, I would like to provide more frequent labels. Are labels shown only based on the axis's MajorStep property, meaning that after a zoom, I'd have to change the value of MajorStep? What event is fired when a zoom occurs? Nothing seems obvious. Thanks, Mitch Link to comment Share on other sites More sharing options...
Software FX Posted April 8, 2003 Report Share Posted April 8, 2003 No. If MajorStep is set to Auto (default) it will re-calculate itself after Zoomin-in or out. Can you please explain a little better (with an specific example) what you are trying to achieve ? -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
User (Legacy) Posted April 9, 2003 Author Report Share Posted April 9, 2003 I have an X scale that is 0-100 mm with a major grid line ever 10 mm. So the labels are 0, 10, 20, 30 etc. If I zoom in to see the area between 11 and 19 mm I no longer have any labels, because they are at 10 and 20. When I zoom in to this level for example, I'd like to change the lableing to 10, 12, 14, 16 etc. That way I can see the X axis labels when zoomed in. It would be too cluttered if I also labeled every 2 mm when zoomed out. My X axis code is: this.chart1.AxisX.LabelsFormat.Decimals=0; this.chart1.AxisX.DataFormat.Decimals=2; this.chart1.AxisX.Title.Text = "Height"; this.chart1.AxisX.Min = 0; this.chart1.AxisX.Step = 10; this.chart1.AxisX.MinorStep = 1; this.chart1.AxisX.Max = 100; this.chart1.AxisX.Gridlines = true; this.chart1.AxisX.MinorGridlines = true; this.chart1.AxisX.MinorTickMark = SoftwareFX.ChartFX.TickMark.Outside; this.chart1.AxisX.TickMark = SoftwareFX.ChartFX.TickMark.Outside; Thanks. Mitch "SoftwareFX Support" <support@softwarefx.com> wrote in message news:4fPfPBi$CHA.3020@webserver1.softwarefx.com... > No. If MajorStep is set to Auto (default) it will re-calculate itself after > Zoomin-in or out. > > Can you please explain a little better (with an specific example) what you > are trying to achieve ? > > -- > FP > Software FX, Inc. > > Link to comment Share on other sites More sharing options...
Software FX Posted April 9, 2003 Report Share Posted April 9, 2003 Simply not set the step at all. eliminate the line: this.chart1.AxisX.Step = 10; and the chart will chose the most appropriate step for the available size. -- 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.