User (Legacy) Posted May 15, 2006 Author Report Share Posted May 15, 2006 I am showing date intervals in my X Axis, like 1 Year, 2 Years, 3 Years... It works fine, I am passing the data as # of days, then I add custom labels every 365.25 (LabelValue=365.25). It works ok, except when the window is big, and the data is over a small period of time. For example, if my data goes from 0 to 2 years, and the window is resized to be full screen, there would be only 3 ticks on the XAxis. 0, 1 & 2. But there is space for many more. The AxisFormat_DateTime would be lovely, but I don't want the labels to ever say 1-Jan-1901 or something like that. Link to comment Share on other sites More sharing options...
User (Legacy) Posted May 15, 2006 Report Share Posted May 15, 2006 I am showing date intervals in my X Axis, like 1 Year, 2 Years, 3 Years... It works fine, I am passing the data as # of days, then I add custom labels every 365.25 (LabelValue=365.25). It works ok, except when the window is big, and the data is over a small period of time. For example, if my data goes from 0 to 2 years, and the window is resized to be full screen, there would be only 3 ticks on the XAxis. 0, 1 & 2. But there is space for many more. The AxisFormat_DateTime would be lovely, but I don't want the labels to ever say 1-Jan-1901 or something like that. Link to comment Share on other sites More sharing options...
Software FX Posted May 15, 2006 Report Share Posted May 15, 2006 The automatic step will never go under the LabelValue setting, this is why you don't see more labels even when there is room for them. If you want the labels to behave as dates, you MUST set the LabelsFormat to DateTime. This is the only way Chart FX will know these are dates and not numbers. You can use the CustomFormat to select how you want these dates to be displayed. You don't have to display them as 1-Jan-1901, you can display the as Jan-01, or any other custom format you require. -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
Software FX Posted May 15, 2006 Report Share Posted May 15, 2006 The automatic step will never go under the LabelValue setting, this is why you don't see more labels even when there is room for them. If you want the labels to behave as dates, you MUST set the LabelsFormat to DateTime. This is the only way Chart FX will know these are dates and not numbers. You can use the CustomFormat to select how you want these dates to be displayed. You don't have to display them as 1-Jan-1901, you can display the as Jan-01, or any other custom format you require. -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.