Sign in to follow this  
hMayuresh

Want To Display Value And Tooltip On Bar Graph As Days And Hours

Recommended Posts

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

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

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 by hMayuresh

Share this post


Link to post
Share on other sites
Guest Angshu

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.smile.gif

Share this post


Link to post
Share on other sites

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.smile.gif

Share this post


Link to post
Share on other sites

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.smile.gif

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

You are always welcome.smile.gif

 

We are glad to know that you have managed to resolve your problem.

 

Keep smiling and keep FusionCharting!biggrin.gif

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this