hMayuresh Report post Posted May 11, 2011 Hello Friends, Can any one help me to solve following thing : I have generated a bargraph, but i am not able to show value on bar graph and tooltip with format days and hours. For ex. I need to display value on bar as "7d 13hr" as a value as well as tooltip. Thanks, Mayuresh Share this post Link to post Share on other sites
Sanjukta Report post Posted May 11, 2011 Hi Mayuresh, Please try setting the string value ( "7d 13hr") as the value for the attributes "displayValue" and "toolText" in the <set> element. Please note that FusionCharts does not support date/time format natively. The chart accepts date/time data as string values. Hope this helps. Share this post Link to post Share on other sites
hMayuresh Report post Posted May 11, 2011 (edited) Hi, Thanks for your quick reply. Actualy I am trying to show like this $FusionChartObject->addChartData( ( ( $intSecondValue/ 3600 ) / 24 ), 'name=abc' ); When i try with following $FusionChartObject->addChartData( ( ( $intSecondValue/ 3600 ) / 24 ) . 'd' . '2 hr', 'name=abc' ); it shows blank graph. How to modify this? Thanks, Mayuresh Hi Mayuresh, Please try setting the string value ( "7d 13hr") as the value for the attributes "displayValue" and "toolText" in the <set> element. Please note that FusionCharts does not support date/time format natively. The chart accepts date/time data as string values. Hope this helps. Edited May 11, 2011 by hMayuresh Share this post Link to post Share on other sites
Guest Angshu Report post Posted May 11, 2011 Hi, Thanks for your response. "AddChartData" takes the first and second parameter as a numerical value, which you have specified as a string value. In case if you want to display something, please try the same by using <displayValue> attribute. Hope this helps. Share this post Link to post Share on other sites
hMayuresh Report post Posted May 13, 2011 Hi, thanks for reply, Could you please provide me the same with proper example. That would really help me. Please provide proper example for this. Thanks. Hi, Thanks for your response. "AddChartData" takes the first and second parameter as a numerical value, which you have specified as a string value. In case if you want to display something, please try the same by using <displayValue> attribute. Hope this helps. Share this post Link to post Share on other sites
hMayuresh Report post Posted May 13, 2011 Hi, Sorry to trouble you, but i got my mistake..i was just missing semicolon before using "displayValue". Thanks for your help. Thanks, Mayuresh Hi, Thanks for your response. "AddChartData" takes the first and second parameter as a numerical value, which you have specified as a string value. In case if you want to display something, please try the same by using <displayValue> attribute. Hope this helps. Share this post Link to post Share on other sites
Guest Angshu Report post Posted May 16, 2011 Hi, You are always welcome. We are glad to know that you have managed to resolve your problem. Keep smiling and keep FusionCharting! Share this post Link to post Share on other sites