Guest Rajroop

Problem with format of very small numbers

Recommended Posts

Hello!

How can I transform small numbers on y-scale in decimal fraction (ex.: 9,2e-8 to 0,000000092)??

Thanks.

44118f40-a0f8-4e74-b01b-7596.gif

 

<chart showRestoreBtn ='0' showFormBtn='0' borderColor='000000' borderThickness='2' borderAlpha='100' decimals='2' forceDecimals='1' inThousandSeparator='' inDecimalSeparator=',' thousandSeparator='' decimalSeparator=',' toolTipSepChar=';' formatNumber='1' formatNumberScale='0' palette='2' setAdaptiveYMin='1' useRoundEdgesExt='0' plotGradientColor='' labelDisplay='WRAP' areaOverColumns='0' animation = '0' showNames='1' caption='' outCnvBaseFontSize='12' outCnvBaseFontColor='000000' outCnvBaseFont='Arial' canvasBgColor='FFFFFF' bgColor='FFFFFF' showBorder='0' showAlternateHGridColor='0' divLineThickness='1' numVDivLines='2' vDivLineThickness='1' showAlternateVGridColor='0' showValues='0' showLegend='0' useRoundEdges='1' baseFont='Arial' baseFontSize='10' showSecondaryLimits='0' showDivLineSecondaryValue='0' >
<categories>
<category label='Jan 1955' fontSize='5' />
<category label='Feb 1955' fontSize='5' />
<category label='Mar 1955' fontSize='5' />
<category label='Apr 1955' fontSize='5' />
</categories>
<dataset renderAs='LINE' color='516F93' alpha='100' seriesName = '' parentYAxis='P' lineThickness='2' anchorSides='20' anchorRadius='3' anchorBorderThickness='2'>
<set id='row1col2' value='9,11214953271028E-08'/>
<set id='row1col3' value='9,11214953271028E-08'/>
<set id='row1col4' value='9,11214953271028E-08'/>
<set id='row1col5' value='9,19003115264797E-08'/>
</dataset>
<styles>
<definition>
<style name='defaultToolTipFont' type='font' font='Arial' size='11' color='000000'/>
<style name='DataVal' type='font' color='000000' bgColor='FFFFE0' borderColor='000000' />
<style name='CanvasAnim' type='animation' param='_xScale' start='0' duration='1' />
<style name='chartCaption' type='font' face='Arial' size='19' color='000000' bold='1'/>
<style name='axisXFont' type='font' face='Arial' size='10' color='000000'/>
<style name='axisXCaptionFont' type='font' face='Arial' size='13' color='000000' bold='1'/>
<style name='axisYFont' type='font' face='Arial' size='10' color='000000'/>
<style name='axisYCaptionFont' type='font' face='Arial' size='13' color='000000' bold='1'/>
</definition>
<application>
<apply toObject='ToolTip' styles='defaultToolTipFont' />
<apply toObject='DataValues' styles='DataVal' />
<apply toObject='Canvas' styles='CanvasAnim' />
<apply toObject='Caption' styles='chartCaption' />
<apply toObject='DataLabels' styles='axisXFont' />
<apply toObject='XAxisName' styles='axisXCaptionFont' />
<apply toObject='YAxisValues' styles='axisYFont' />
<apply toObject='YAxisName' styles='axisYCaptionFont' />
</application>
</styles>
</chart>

Share this post


Link to post
Share on other sites
Guest Rajroop

Hello,

 

 

 

Welcome to FusionCharts Forum. :)

 

 

 

You can use <chart ... forceDecimals='1' >, if you want your numbers on the chart to have trailing zeroes.

 

E.g.-0.124, 0.134 and 0.130 etc.

 

 

 

Please refer to the documentation page on Number formatting options, given by the links below, and see if it of any help.

 

 

 

http://www.fusioncharts.com/docs/Contents/Number_Scaling.html

 

http://www.fusioncharts.com/docs/Contents/Number_Basics.html

 

 

 

I hope this helps. :)

Share this post


Link to post
Share on other sites

forceDecimals='1' helps with hints, but doesn't help with y-axis-scale

I've read manual, but I can't transform y-asix values with small numbers...

if I use <chart ... formatNumberScale='0'>, it displays zero-values on scale..

Share this post


Link to post
Share on other sites
Guest Rajroop

Hi,

 

 

 

Could you please try using yAxisValueDecimals='9' and formatNumberscale='0'?

Share this post


Link to post
Share on other sites

<chart showRestoreBtn ='0' showFormBtn='0' borderColor='000000' yAxisValueDecimals='9' borderThickness='2' borderAlpha='100' decimals='2' forceDecimals='1' inThousandSeparator='' inDecimalSeparator=',' thousandSeparator='' decimalSeparator=',' toolTipSepChar=';' formatNumber='1' formatNumberScale='0' palette='2' setAdaptiveYMin='1' useRoundEdgesExt='0' plotGradientColor='' labelDisplay='WRAP' areaOverColumns='0' animation = '0' showNames='1' caption='' outCnvBaseFontSize='12' outCnvBaseFontColor='000000' outCnvBaseFont='Arial' canvasBgColor='FFFFFF' bgColor='FFFFFF' showBorder='0' showAlternateHGridColor='0' divLineThickness='1' numVDivLines='2' vDivLineThickness='1' showAlternateVGridColor='0' showValues='0' showLegend='0' useRoundEdges='1' baseFont='Arial' baseFontSize='10' showSecondaryLimits='0' showDivLineSecondaryValue='0' >
<categories>
<category label='Jan 1955' fontSize='5' />
<category label='Feb 1955' fontSize='5' />
<category label='Mar 1955' fontSize='5' />
<category label='Apr 1955' fontSize='5' />
</categories>
<dataset renderAs='LINE' color='516F93' alpha='100' seriesName = '' parentYAxis='P' lineThickness='2' anchorSides='20' anchorRadius='3' anchorBorderThickness='2'>
<set id='row1col2' value='0,000000001'/>
<set id='row1col3' value='0,000000002'/>
<set id='row1col4' value='0,000000001'/>
<set id='row1col5' value='0,000000002'/>
</dataset>
<styles>
<definition>
<style name='defaultToolTipFont' type='font' font='Arial' size='11' color='000000'/>
<style name='DataVal' type='font' color='000000' bgColor='FFFFE0' borderColor='000000' />
<style name='CanvasAnim' type='animation' param='_xScale' start='0' duration='1' />
<style name='chartCaption' type='font' face='Arial' size='19' color='000000' bold='1'/>
<style name='axisXFont' type='font' face='Arial' size='10' color='000000'/>
<style name='axisXCaptionFont' type='font' face='Arial' size='13' color='000000' bold='1'/>
<style name='axisYFont' type='font' face='Arial' size='10' color='000000'/>
<style name='axisYCaptionFont' type='font' face='Arial' size='13' color='000000' bold='1'/>
</definition>
<application>
<apply toObject='ToolTip' styles='defaultToolTipFont' />
<apply toObject='DataValues' styles='DataVal' />
<apply toObject='Canvas' styles='CanvasAnim' />
<apply toObject='Caption' styles='chartCaption' />
<apply toObject='DataLabels' styles='axisXFont' />
<apply toObject='XAxisName' styles='axisXCaptionFont' />
<apply toObject='YAxisValues' styles='axisYFont' />
<apply toObject='YAxisName' styles='axisYCaptionFont' />
</application>
</styles>
</chart>

da28285f-6964-4361-9eca-caf7.gif

Doesn't work again :)

Share this post


Link to post
Share on other sites

Hi,

 

 

 

Owing to the way Flash player treats numbers with high decimal places, I'm afraid, we cannot show them in normal notation.

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