Sign in to follow this  
tvarma7091

ToolText-FormatNumber

Recommended Posts

Can we use FomatNumber in ToolText???

 

Currently, i'm using ToolText and the Number is coming from JSON like 123500.00. I want to format the same number to 1,23,500.00.

 

How do I do it?? Because the  formatNumber:"1" is not working. 

 

Please,let me know asap.

 

Thank you.

 

 

 

 

Share this post


Link to post
Share on other sites
dataFormat: 'json',

dataSource: {

"chart": {

   "caption": caption,

"bgColor": "#FFFFFF",

"baseFontColor": "000000",

"showBorder": "0",

"use3DLighting": "0",

"formatNumberScale": "1",

"formatNumber": "1",

"showZeroPies": "0",

"showShadow": "0",

"enableSmartLabels": "1",

"startingAngle": "0",

"showPercentValues": "1",

"showPercentInTooltip": "0",

"plotBorderThickness": "2.5",

"plotBorderColor": "#ffffff",

"numberprefix": "$",

"decimals": "2",

"forceDecimals": "1",

"decimalseparator":",",

    "thousandseparator":".",

    "thousandSeparatorPosition": "2",

    //"thousandSeparatorPosition": "'2,3'",

//"captionFontSize": "14",

"useDataPlotColorForLabels": "1",

"toolTipColor": "#ffffff",

"toolTipBorderThickness": "0",

"toolTipBgColor": "#000000",

"toolTipBgAlpha": "100",

"toolTipBorderRadius": "2",

"toolTipPadding": "5",

"toolTipBorderColor": "#000000",

"showHoverEffect":"1",

"showLegend": "1",

"legendBgColor": "#ffffff",

"legendNumColumns": "4",

//"legendBorderAlpha": '0',

//"legendShadow": '0',

"legendItemFontSize": '10',

"legendItemFontColor": '#666666',

//"placeValuesInside": '0',

"theme": "fint",

"isSmartLineSlanted":"1",

 

 

 

 

I'm using all these properties but they are not applying.

Here are the list of the which are not applying.

 


"formatNumberScale": "1",

"formatNumber": "1",


"decimals": "2",

"forceDecimals": "1",

"decimalseparator":",",

"thousandseparator":".",

"thousandSeparatorPosition": "2",

"useDataPlotColorForLabels": "1",


Share this post


Link to post
Share on other sites

Hi,

 

The attributes shared had been added to the fiddle below:

 

http://jsfiddle.net/moonmi/6gbte7nv/2/

 

It does not seem to be an issue. However, if we are missing out any thing please fork/update the shared fiddle and share it with us to replicate the issue.

 

Also, meanwhile for number formatting on chart please refer the fiddle below:

http://docs.fusioncharts.com/tutorial-configuring-your-chart-number-format.html

 

Hope this helps.

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