Jump to content
Software FX Community

Formatting minute values


User (Legacy)

Recommended Posts

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

Archived

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

×
×
  • Create New...