Jump to content
Software FX Community

How to adjust labels after a zoom


User (Legacy)
 Share

Recommended Posts

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...