Jump to content
Software FX Community

Disabling Data-Driven Labels


User (Legacy)

Recommended Posts

I have an X-axis which has a type of Date. ChartFX.Net 6.2 is being

"intelligent" and formatting the dates into groups (months, quarters, etc).

I can see how this would be beneficial in most cases, but for me it is no

good.

I would like to disable Data-Driven Labels. How can I do this?

A solution might be to use a string type instead and format the date myself.

This would work, except that the rows cannot be sorted correctly. The rows

are added in random order, need to be sorted by date, and displayhed without

Data-Driven Labels.

Thanks,

Charlie

post-2106-13922379593034_thumb.jpg

Link to comment
Share on other sites

If you are DataBinding simply do:

chart1.DataSourceSettings.DataStyle |= DataStyle.DatesAsLabels;

Prior to databinding, this will convert your dates to strings and use them

as labels.

--

Francisco Padron

www.chartfx.com

"Charlie" <charlie> wrote in message

news:Tzi7EH$kFHA.2036@webserver3.softwarefx.com...

>I have an X-axis which has a type of Date. ChartFX.Net 6.2 is being

> "intelligent" and formatting the dates into groups (months, quarters,

> etc).

> I can see how this would be beneficial in most cases, but for me it is no

> good.

>

> I would like to disable Data-Driven Labels. How can I do this?

>

> A solution might be to use a string type instead and format the date

> myself.

> This would work, except that the rows cannot be sorted correctly. The rows

> are added in random order, need to be sorted by date, and displayhed

> without

> Data-Driven Labels.

>

> Thanks,

> Charlie

>

>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...