This patch implements Date Formatting of unix timestamps in Tooltips for Scatter and Scatter Line Charts. When using unix timestamps as X Values there are two new date formatting Magic Values available. The #date# magic value uses a fixed format while #date:____# allows for user specified formatting. The date formatting is consistent with that performed by the PHP date function.
The #date# magic value generates a date string in the format "Y-m-d" which looks like 2008-12-06
The #date:____# allows the user to included any desired formatting commands in place of the "____". Here are a couple of examples:
#date:Y-m-d at H:i# would generate something like this: 2008-12-06 at 14:27
#date:g:i:s a# would generate something like this: 2:27:11 pm
ID #2397865 - Dates in Tooltips for Scatter Points
Built with Rev #400 dated 29 November 2008. Patches are uploaded to the SourceForge SVN at OFC2 Patch Tracker
Download a prebuilt SWF and source code on the Downloads page.
As of 6 December 2008:
Dates in Tooltips for Scatter Points has NOT been included in OFC2
The chart below demonstrates the user specified date formatting used in tooltips.
Here is a link to view the JSON. Here is a quick look at the JSON for the Tooltip text:
"tip": "#date:d M y#<br>#y#\n(left axis)", // User formatted date