User (Legacy) Posted April 28, 2003 Report Share Posted April 28, 2003 Hello, I want to display a chart where each bar represents a number of minutes. I want the label displayed for each bar formatted as "<hours>:<minutes>". (Example: For a value of 3700 minutes I want a label of "61:40"). Is this possible with ChartFX? Thanks in advance, Thorsten Link to comment Share on other sites More sharing options...
Software FX Posted April 29, 2003 Report Share Posted April 29, 2003 There is no pre-defined format in Chart FX that will do this, we provide formats for date and time but what you have is a "time span". If this is an X/Y chart (you are passing X values to the chart) you can achieve this by capturing the GetAxisLabel event, if you don't have X-Values then simply set the label of each point as a string. The conversion from the number of minutes to hh:mm is pretty straight forward: int hh = timespan/60; int mm = timespan%60; string s = hh.ToString + ":" + mm.toString; -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.