In a Column Chart, I am trying to format a date in a Tooltip's ClientTemplate and I can't seem to figure it out.
On the Y-Axis I have dollar amounts, on the X-Axis I have the 24 hours of the day (12am, 1am, 2am, ... 11pm). The X-Axis labels work fine (well, I wish I could lowercase the AM/PM, but that's another issue) using the following:
Unfortunately, when I use the following ToolTips template the X-Axis value renders as a long format date like "Tue Nov 11 2014 03:00:00 GMT-0600 (Central Standard Time)" rather than "3AM":
How do I get #=category= to format my date like this: 4PM?
On the Y-Axis I have dollar amounts, on the X-Axis I have the 24 hours of the day (12am, 1am, 2am, ... 11pm). The X-Axis labels work fine (well, I wish I could lowercase the AM/PM, but that's another issue) using the following:
<LabelsAppearance DataFormatString="htt" RotationAngle="0" />Unfortunately, when I use the following ToolTips template the X-Axis value renders as a long format date like "Tue Nov 11 2014 03:00:00 GMT-0600 (Central Standard Time)" rather than "3AM":
<TooltipsAppearance BackgroundColor="#ffffff" Color="#5ab7de"> <ClientTemplate> <div><b>#=category#</b></div> <div>$#=value#</div> </ClientTemplate></TooltipsAppearance>How do I get #=category= to format my date like this: 4PM?