Sign in to follow this  
heika

Input Value Format

Recommended Posts

Hi all,

 

I'm trying to generate charts showing reports about time.Can I use

<set value="00:00:04" /> or <set value="00:04" />

instead of

<set value="4" />

to indicate 4 seconds in MSCombiDY2D.swf?

Or if I input use <set value="4" />, can I change the shown value of it and the axis data to 00:04?

Thanks in advance!!!

Share this post


Link to post
Share on other sites
Guest Sashibhusan

Hi,

 

The feature of "providing time format (hh:mm:ss) to the <set> element "value" attribute", is not supported by FusionCharts, as of now.

 

However, you can show the values as "00:00:04" (custom text), by providing the value as a string to "displayValue" attribute of the <set> element of your XML data.

 

Ref. Code:

<set value='4' displayValue='00:00:04' showValue='1' />

 

But, please note that you can not provide the custom labels for Y-Axis labels, as of now.

 

As an alternative way, if you want you can provide the time scale to your chart.

 

For more information on "Number Scaling > Putting time in scale", please follow the link below:

http://docs.fusioncharts.com/charts/contents/?AttDesc/Number_Scaling.html

 

Hope this helps !

Share this post


Link to post
Share on other sites

Thanks! I will try this. smile.gif

I am using the angular gauge chart too and having the same problem.

<dial value='4' rearExtension='10' />

Is there method to show 00:04 in the chart?

Share this post


Link to post
Share on other sites
Guest Sumedh

Hey,

 

displayValue attribute is not supported for dials in Angular Gauge.

 

You can use annotations to display custom text.

 

The Text annotation looks like just any other text on the chart - just that you can place any number of text annotations anywhere on the chart.

 

Ref. Code:

 

<chart>

...

<annotations>

<annotationGroup id='Grp1' >

<annotation type='text' x='200' y='200' label='Text' />

</annotationGroup>

</annotations>

...

</chart>

 

Please refer the following link for more information:

http://docs.fusioncharts.com/widgets/Contents/?Annotations/Introduction.html

 

http://docs.fusioncharts.com/widgets/Contents/?Annotations/Text.html

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