Sign in to follow this  
Emilio

tool-tip not rounding

Recommended Posts

Is it possible to have the tool-tip value shown without rounding?

 

Here's the XML for the chart (using MSCombiDY2D.swf)

<chart showBorder="0" adjustDiv="1" alternateHGridColor="FFFFFF" animation="1" baseFont="" baseFontColor="" baseFontSize="" bgAlpha="0" bgColor="0" borderColor="FFFFFF" canvasBorderAlpha="10" canvasBorderThickness="1" canvasPadding="0"chartBottomMargin="0" chartLeftMargin="0" chartRightMargin="0" chartTopMargin="20" Decimals="0" divLineColor="CCCCCC" divLineDecimalPrecision="1" FAKECategoryFormat="" forceDecimals="0" forceSYAxisValueDecimals="0"forceYAxisValueDecimals="0" formatNumberScale="0" labelDisplay="ROTATE" labelPadding="" legendBgAlpha="" legendBorderAlpha="" legendNumColumns="1" legendPadding="" legendPosition="right" limitsDecimalPrecision="1"minimiseWrappingInLegend="1" numberPrefix="" numberSuffix="" outCnvBaseFont="" outCnvBaseFontColor="000000" outCnvBaseFontSize="" palletteColors="" pFormatNumberScale="" plotFillAlpha="100" plotFillAngle="90" plotGradientColor=""PYAxisMaxValue="" PYAxisMinValue="" PYAxisName="" rotateLabels="" SAxisMaxValue="" sDecimals="0" sFormatNumberScale="" showDivLineSecondaryValue="1" showDivLineValues="0" showExportDataMenuItem="" showLegend="0" showLimits="0"showPlotBorder="0" showSecondaryLimits="1" showValues="1" sNumberPrefix="" sNumberSuffix="" SYAxisMinValue="" SYAxisName="Calls" useEllipsesWhenOverflow="" useRoundEdges="" yAxisValueDecimals="0">
<categories font="Arial" fontColor="439EAA">
<category label="9/2"/>
<category label="9/9"/>
<category label="9/16"/>
<category label="9/23"/>
<category label="9/30"/>
<category label="10/7"/>
<category label="10/14"/>
<category label="10/21"/>
<category label="10/28"/>
<category label="11/4"/>
<category label="11/11"/>
<category label="11/18"/>
<category label="11/25"/>
<category label="12/2"/>
<category label="12/9"/>
<category label="12/16"/>
<category label="12/23"/>
<category label="12/30"/>
<category label="1/6"/>
<category label="1/13"/>
</categories>
<dataset showValues="0" color="4CA8B5" seriesname="" parentYAxis="" alpha="1" FAKEDisplayFormat="">
<set showValues="0" Color=""/>
<set showValues="0" Color=""/>
<set showValues="0" Color=""/>
<set showValues="0" Color=""/>
<set showValues="0" Color=""/>
<set showValues="0" Color=""/>
<set showValues="0" Color=""/>
<set showValues="0" Color=""/>
<set showValues="0" Color=""/>
<set showValues="0" Color=""/>
<set showValues="0" Color=""/>
<set showValues="0" Color=""/>
<set showValues="0" Color=""/>
<set showValues="0" Color=""/>
<set showValues="0" Color=""/>
<set showValues="0" Color=""/>
<set showValues="0" Color=""/>
<set showValues="0" Color=""/>
<set showValues="0" Color=""/>
<set showValues="0" Color=""/>
</dataset>
<dataset borderColor="FFFFFF" showValues="0" color="1233AC" seriesname="Actual" parentYAxis="S" Thickness="4" anchorBgColor="1233AC" anchorBorderThickness="4" lineThickness="4" alpha="100" FAKEDisplayFormat="" slantLabels="">
<set showValues="0" displayValue="$5216" value="5216.0000" Color=""/>
<set showValues="0" displayValue="$3531" value="3531.0000" Color=""/>
<set showValues="0" displayValue="$2782" value="2782.0000" Color=""/>
<set showValues="0" displayValue="$3522" value="3522.0000" Color=""/>
<set showValues="0" displayValue="$4594" value="4594.0000" Color=""/>
<set showValues="0" displayValue="$4287" value="4287.0000" Color=""/>
<set showValues="0" displayValue="$3744" value="3744.0000" Color=""/>
<set showValues="0" displayValue="$3002" value="3002.0000" Color=""/>
<set showValues="0" displayValue="$3176" value="3176.0000" Color=""/>
<set showValues="0" displayValue="$2387" value="2387.0000" Color=""/>
<set showValues="0" displayValue="$1563" value="1563.0000" Color=""/>
<set showValues="0" displayValue="$1283" value="1283.0000" Color=""/>
<set showValues="0" displayValue="$1906" value="1906.0000" Color=""/>
<set showValues="0" displayValue="$1605" value="1605.0000" Color=""/>
<set showValues="0" displayValue="$810" value="810.0000" Color=""/>
<set showValues="0" displayValue="$1378" value="1378.0000" Color=""/>
<set showValues="0" displayValue="$3172" value="3172.0000" Color=""/>
<set showValues="0" displayValue="$8189" value="8189.0000" Color=""/>
<set showValues="0" displayValue="$3967" value="3967.0000" Color=""/>
<set showValues="0" displayValue="$2579" value="2579.0000" Color=""/>
</dataset>
<dataset borderColor="FFFFFF" showValues="0" color="8F1822" seriesname="Forecast" parentYAxis="S" Thickness="4" anchorBgColor="8F1822" anchorBorderThickness="4" lineThickness="4" alpha="100" FAKEDisplayFormat="#,###" slantLabels="">
<set showValues="0" displayValue="2,275" value="2275.0000" Color=""/>
<set showValues="0" displayValue="1,950" value="1950.0000" Color=""/>
<set showValues="0" displayValue="1,950" value="1950.0000" Color=""/>
<set showValues="0" displayValue="1,950" value="1950.0000" Color=""/>
<set showValues="0" displayValue="1,950" value="1950.0000" Color=""/>
<set showValues="0" displayValue="1,950" value="1950.0000" Color=""/>
<set showValues="0" displayValue="1,950" value="1950.0000" Color=""/>
<set showValues="0" displayValue="1,950" value="1950.0000" Color=""/>
<set showValues="0" displayValue="1,950" value="1950.0000" Color=""/>
<set showValues="0" displayValue="1,950" value="1950.0000" Color=""/>
<set showValues="0" displayValue="1,950" value="1950.0000" Color=""/>
<set showValues="0" displayValue="1,950" value="1950.0000" Color=""/>
<set showValues="0" displayValue="1,950" value="1950.0000" Color=""/>
<set showValues="0" displayValue="2,075" value="2075.0000" Color=""/>
<set showValues="0" displayValue="2,075" value="2075.0000" Color=""/>
<set showValues="0" displayValue="2,350" value="2350.0000" Color=""/>
<set showValues="0" displayValue="3,650" value="3650.0000" Color=""/>
<set showValues="0" displayValue="5,200" value="5200.0000" Color=""/>
<set showValues="0" displayValue="3,900" value="3900.0000" Color=""/>
<set showValues="0" displayValue="3,250" value="3250.0000" Color=""/>
</dataset>
<trendLines/>
<ChartTitle chart_title="Forecast vs. Total Actions"/>
</chart>

 

Thanks,

Emilio

Share this post


Link to post
Share on other sites
Guest Sumedh

Hello Emilio,

 

If you want to display toolTip without formatting, then you need to set 'formatNumberScale' and 'sFormatNumberScale' attributes to '0'.

 

And for rounding, you need to use 'decimals' and 'sDecimals' attributes.

 

Ref. Code:

<chart ... formatNumberScale='0' sFormatNumberScale='0' decimals='4' sDecimals='4'>

 

Also note, in your chart XML, the values contains 0s after the decimal point, so it will anyway ignore values after decimals (from decimal point towards right) because of 0.

 

For more information, please refer the following link:

http://docs.fusioncharts.com/charts/contents/advanced/number-format/Number_Basics.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