Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Transform Datetime in Tooltip of a Chart
evgeny
Hi,
I have a chart with a the x-axis (date) and y-axis (amount of orders) and have created histogram on the amount of orders per date.
When I am on a dot of the chart, I would like the follwing tooltip to show:
100 Orders on 01/09/2009
Currently I have the following comand in the mouse over:
valueData + new String(" Orders on ") + categoryData
However, my date object is displayed as: Tue Sep 01 00:00:00 CEST 2009
I was trying to change output format of the categoryData with the Java Script functions but without success. Can somebody please give me a hint on how to customize the output format.
Thanks for your help
Evgeny
Find more posts tagged with
Comments
bhanley
You can either try and format the underlying source data or build the date string you need using "getDay()", "getMonth()" and "getFullYear()".
Also, where are you configuring the interactivity? I am concerned you are using the categoryData and valueData variables and not the actual data (using row["name"] syntax.
evgeny
Thanks a lot!