Jump to content
Software FX Community

AxisStyle.NotClipped not working?


User (Legacy)

Recommended Posts

I'm having a problem with a bar chart that has very long labels on each bar.

Currently, the labels for some of the bars show, and others are missing. It

looks to be caused by the very long labels. I saw that the

AxisStyle.NotClipped setting should allow all the labels to show, even if

they would overlap each other, but when I turn on this setting with the

following line of code, it doesn't seem to have any effect.

m_Chart.AxisX.Style |= AxisStyle.NotClipped;

What am I doing wrong?

Link to comment
Share on other sites

m_Chart.AxisX.Style |= AxisStyle.NotClipped;

Will work if labels are actually being clipped.

By default Chart FX doesn't clip labels, it chooses a step so that it

doesn't have to.

If you set a Step manually, for example:

chart.AxisX.Step = 1;

Then clipping may occur if the space allocated for one point is not enough

to display the label, using AxisStyle.NotClipped in this case will eliminate

the clipping.

You have to be careful when using this style, in most circumstances it

produces unreadable results as labels are overlapped on top of each other.

Other settings such as LabelAngle and Staggered will allow you to fit more

labels without loosing readability.

--

FP

Software FX

Link to comment
Share on other sites

I see.

The piece I was missing was that I didn't know Chart FX was automatically

stepping the labels.

Once I set chart.AxisX.Step = 1, things work as expected.

A follow-on question though...

Since Chart FX can obviously tell that there is label collision and

automatically step the labels, is there a way to tell Chart FX to

automatically stagger the labels if there is collision? So, by default all

the labels would line up, but in the case where they would collide, they

would automatically stagger?

"SoftwareFX Support" <noreply@softwarefx.com> wrote in message

news:GCcSeA7iEHA.3080@webserver3.softwarefx.com...

> m_Chart.AxisX.Style |= AxisStyle.NotClipped;

>

> Will work if labels are actually being clipped.

>

> By default Chart FX doesn't clip labels, it chooses a step so that it

> doesn't have to.

>

> If you set a Step manually, for example:

>

> chart.AxisX.Step = 1;

>

> Then clipping may occur if the space allocated for one point is not enough

> to display the label, using AxisStyle.NotClipped in this case will

eliminate

> the clipping.

>

> You have to be careful when using this style, in most circumstances it

> produces unreadable results as labels are overlapped on top of each other.

> Other settings such as LabelAngle and Staggered will allow you to fit more

> labels without loosing readability.

>

> --

> FP

> Software FX

>

>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...