Jump to content
Software FX Community

Unable to set custom labels on X axis


User (Legacy)

Recommended Posts

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

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

Archived

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

×
×
  • Create New...