Jump to content
Software FX Community

Does Custom Format for XAxis Labels work?


User (Legacy)

Recommended Posts

Hi,

I am trying to do something like the code below and using a dataTable to

pass in the data I want. I set the label format to be a custom format.

However, I still get a date in the Xaxis like "12/29/2002 12:00:00 AM" in

other words, it seems as if the CustomFormat directive is ignored. I am

setting this before binding to the dataset as mentioned in the doc. Am I

doing things right?

chart1.AxisX.LabelsFormat.CustomFormat = "dd-MMM-yyyy";

Thanks,

Madhan

Link to comment
Share on other sites

Hi,

I am trying to do something like the code below and using a dataTable to

pass in the data I want. I set the label format to be a custom format.

However, I still get a date in the Xaxis like "12/29/2002 12:00:00 AM" in

other words, it seems as if the CustomFormat directive is ignored. I am

setting this before binding to the dataset as mentioned in the doc. Am I

doing things right?

chart1.AxisX.LabelsFormat.CustomFormat = "dd-MMM-yyyy";

Thanks,

Madhan

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...