pre Posted May 7, 2008 Report Share Posted May 7, 2008 Hi, I am trying to plot TimeSpan values in a Pareto chart. The Timespan values are all integers i.e., representing the TimeSpan in minutes. The application allows the user to select a custom format to display a duration value, which can either be hh:mm:ss or minutes, seconds etc. What we have currently done, set the following properties for Y axis AxisY.DataFormat.Format = AxisFormat.Number; AxisY.DataFormat.Decimals = 0; AxisY.LabelsFormat.Decimals = 0; AxisY.LabelsFormat.Format = AxisFormat.Number;The problem I am currently facing is that the numbers are not displayed in the right format while hovering the mouse over the series data. I have set the axis.DataFormat.CustomFormat to "hh:mm:ss", but what I see in the tooltip is "hh:mm:ss" instead of the value itself displayed in that format. Any thoughts? Quote Link to comment Share on other sites More sharing options...
Frank Posted May 8, 2008 Report Share Posted May 8, 2008 "hh:mm:ss" is not a number format. It is a DateTime format. You must set the format to AxisFormat.DateTime or AxisFormat.Time. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.