Sign in to follow this  
ashday

Chart Randomly Ignoring Y Axis Decimal Precision

Recommended Posts

If anyone could help with this problem, it would be greatly appreciated.  I'm getting seemingly random occurrences where the chart is showing a ton of decimal places on the y axis. This is a MSLine chart. You can see from my xml below that it's set to a precision of 2 decimals. It's strange, because most of the time it doesn't happen, but it does occasionally and I can't figure out any pattern.

I have included a screenshot as well as my javascript to draw the chart.

8d0025e3-699f-4358-a91b-b3e4.jpg

<div id="chartDiv0.994323222799">Chart goes here.</div>

 

 

 <script type="text/javascript">

//Instantiate the chart object

  var myChart = new FusionCharts("/chart/MSLine.swf", "chart_0.28648324832", "510", "389", "0", "0", "f0f0f0");

 

  //This line stops the chart from automatically displaying as the highest layer

  myChart.addParam("wmode","transparent");

 

  //Setup and render the chart

  myChart.setDataURL("/temp/chartDate_020209_time_0405498_0.693811966775_5863.cfm?debugMode=0");

myChart.render("chartDiv0.994323222799");

 </script>

<chart

 imageSave='0'

 bgColor='F0F0F0'

 baseFont='Arial'

 forceDecimals='1'

 adjustDiv='0'

 numDivLines='8'

 alternateHGridColor='c0c0c0'

 showLegend='1'

 formatNumberScale='1'

 sformatNumberScale='1'

 formatNumber='0'

 zeroPlaneAlpha='100'

 zeroPlaneColor='000000'

 yAxisValueDecimals='2' 

 sYAxisValueDecimals='2' 

 showValues='0'

 showToolTip='0'

 slantLabels='1'

 showSecondaryLimits='1'

 decimals='2'

 sdecimals='2'

 showSum='0'

 

 

 

 labelStep='5'

 plotBorderAlpha='70'

 plotFillAlpha='70'

 

 

 useRoundEdges='1'

 canvasbgAlpha='100'

 showCanvasBg='1'

 

 

 showBorder='1'

 borderColor='ffffff'

 borderThickness='2'

 

 

 setAdaptiveYMin='1'

 

 

 

 

 

 height='455'

 width='583'

 

 

 

 

PYAxisMaxValue='90'

 

 

YAxisMaxValue='90'

 

 

 

 

yAxisName='Price ($)'

 

 

 

labelDisplay='rotate'

 

 >

 

 <styles>

   <definition>

<style name='myBevel' type='bevel' distance='3' />

<style name='myGlow' type='glow' color='444444' />

<style name='myHTMLFont' type='font' isHTML='1' />

</definition>

 <application>

  <apply toObject='TOOLTIP' styles='myHTMLFont' />

 

 <apply toObject='ANCHORS' styles='myGlow' />

 

   </application>

 </styles>

 

 

 

 <categories>

 

 <category label='1/01 00'/>

 

 <category label='1/01 01'/>

 

 <category label='1/01 02'/>

 

 <category label='1/01 03'/>

 

 <category label='1/01 04'/>

 

 <category label='1/01 05'/>

 

 <category label='1/01 06'/>

 

 <category label='1/01 07'/>

 

 <category label='1/01 08'/>

 

 <category label='1/01 09'/>

 

 <category label='1/01 10'/>

 

 <category label='1/01 11'/>

 

 <category label='1/01 12'/>

 

 <category label='1/01 13'/>

 

 <category label='1/01 14'/>

 

 <category label='1/01 15'/>

 

 <category label='1/01 16'/>

 

 <category label='1/01 17'/>

 

 <category label='1/01 18'/>

 

 <category label='1/01 19'/>

 

 <category label='1/01 20'/>

 

 <category label='1/01 21'/>

 

 <category label='1/01 22'/>

 

 <category label='1/01 23'/>

 

 <category label='1/02 00'/>

 

 <category label='1/02 01'/>

 

 <category label='1/02 02'/>

 

 <category label='1/02 03'/>

 

 <category label='1/02 04'/>

 

 <category label='1/02 05'/>

 

 <category label='1/02 06'/>

 

 <category label='1/02 07'/>

 

 <category label='1/02 08'/>

 

 <category label='1/02 09'/>

 

 <category label='1/02 10'/>

 

 <category label='1/02 11'/>

 

 <category label='1/02 12'/>

 

 <category label='1/02 13'/>

 

 <category label='1/02 14'/>

 

 <category label='1/02 15'/>

 

 <category label='1/02 16'/>

 

 <category label='1/02 17'/>

 

 <category label='1/02 18'/>

 

 <category label='1/02 19'/>

 

 <category label='1/02 20'/>

 

 <category label='1/02 21'/>

 

 <category label='1/02 22'/>

 

 <category label='1/02 23'/>

 

 <category label='1/03 00'/>

 

 </categories>

 

 

 

 

 

<dataset drawAnchors='0' color='53a30c' seriesName='Hour Ahead'>

 

 

<set value='27.34'/>

 

<set value='42.29'/>

 

<set value='30.31'/>

 

<set value='44.51'/>

 

<set value='14.74'/>

 

<set value='37.72'/>

 

<set value='44.96'/>

 

<set value='48.00'/>

 

<set value='15.42'/>

 

<set value='14.62'/>

 

<set value='0.14'/>

 

<set value='-22.57'/>

 

<set value='-22.58'/>

 

<set value='-14.49'/>

 

<set value='9.81'/>

 

<set value='11.08'/>

 

<set value='11.34'/>

 

<set value='45.63'/>

 

<set value='43.38'/>

 

<set value='44.33'/>

 

<set value='21.67'/>

 

<set value='29.60'/>

 

<set value='6.82'/>

 

<set value='-21.68'/>

 

<set value='0.82'/>

 

<set value='38.47'/>

 

<set value='36.89'/>

 

<set value='34.73'/>

 

<set value='48.94'/>

 

<set value='67.98'/>

 

<set value='42.65'/>

 

<set value='16.23'/>

 

<set value='-1.75'/>

 

<set value='82.09'/>

 

<set value='72.39'/>

 

<set value='65.11'/>

 

<set value='67.26'/>

 

<set value='67.53'/>

 

<set value='47.27'/>

 

<set value='65.01'/>

 

<set value='60.63'/>

 

<set value='66.77'/>

 

<set value='71.05'/>

 

<set value='64.38'/>

 

<set value='37.94'/>

 

<set value='69.96'/>

 

<set value='56.15'/>

<set value='-56.28'/>

<set value='0.00'/>

 </dataset>

 

</chart>

Share this post


Link to post
Share on other sites

Hi,

 
Could you please try using the XML given below?
 
<chart

 imageSave='0'

 bgColor='F0F0F0'

 baseFont='Arial'

 forceDecimals='1'

 decimals='2'

 slantLabels='1'

 labelDisplay='rotate'

 adjustDiv='0'

 numDivLines='8'

 alternateHGridColor='c0c0c0'

 showLegend='1'

 formatNumberScale='1'

 formatNumber='1'

 zeroPlaneAlpha='100'

 zeroPlaneColor='000000'

 yAxisValueDecimals='2'

 showValues='0'

 showToolTip='0'

 labelStep='5'

 plotBorderAlpha='70'

 plotFillAlpha='70'

 canvasbgAlpha='100'

 showCanvasBg='1'

 showBorder='1'

 borderColor='ffffff'

 borderThickness='2'

 setAdaptiveYMin='1'

 YAxisMaxValue='90'

 yAxisName='Price ($)'

 

>

 

<styles>

<definition>

<style name='myBevel' type='bevel' distance='3' />

<style name='myGlow' type='glow' color='444444' />

  <style name='myHTMLFont' type='font' isHTML='1' />

</definition>

<application>

<apply toObject='TOOLTIP' styles='myHTMLFont' />

 

<apply toObject='ANCHORS' styles='myGlow' />

 

</application>

</styles>

 

 

<categories>

 

<category label='1/01 00'/>

 

<category label='1/01 01'/>

 

<category label='1/01 02'/>

 

<category label='1/01 03'/>

 

<category label='1/01 04'/>

 

<category label='1/01 05'/>

 

<category label='1/01 06'/>

 

<category label='1/01 07'/>

 

<category label='1/01 08'/>

 

<category label='1/01 09'/>

 

<category label='1/01 10'/>

 

<category label='1/01 11'/>

 

<category label='1/01 12'/>

 

<category label='1/01 13'/>

 

<category label='1/01 14'/>

 

<category label='1/01 15'/>

 

<category label='1/01 16'/>

 

<category label='1/01 17'/>

 

<category label='1/01 18'/>

 

<category label='1/01 19'/>

 

<category label='1/01 20'/>

 

<category label='1/01 21'/>

 

<category label='1/01 22'/>

 

<category label='1/01 23'/>

 

<category label='1/02 00'/>

 

<category label='1/02 01'/>

 

<category label='1/02 02'/>

 

<category label='1/02 03'/>

 

<category label='1/02 04'/>

 

<category label='1/02 05'/>

 

<category label='1/02 06'/>

 

<category label='1/02 07'/>

 

<category label='1/02 08'/>

 

<category label='1/02 09'/>

 

<category label='1/02 10'/>

 

<category label='1/02 11'/>

 

<category label='1/02 12'/>

 

<category label='1/02 13'/>

 

<category label='1/02 14'/>

 

<category label='1/02 15'/>

 

<category label='1/02 16'/>

 

<category label='1/02 17'/>

 

<category label='1/02 18'/>

 

<category label='1/02 19'/>

 

<category label='1/02 20'/>

 

<category label='1/02 21'/>

 

<category label='1/02 22'/>

 

<category label='1/02 23'/>

 

<category label='1/03 00'/>

 

</categories>

 

 

 

 

 

  <dataset drawAnchors='0' color='53a30c' seriesName='Hour Ahead'>

 

 

  <set value='27.34'/>

 

  <set value='42.29'/>

 

  <set value='30.31'/>

 

  <set value='44.51'/>

 

  <set value='14.74'/>

 

  <set value='37.72'/>

 

  <set value='44.96'/>

 

  <set value='48.00'/>

 

  <set value='15.42'/>

 

  <set value='14.62'/>

 

  <set value='0.14'/>

 

  <set value='-22.57'/>

 

  <set value='-22.58'/>

 

  <set value='-14.49'/>

 

  <set value='9.81'/>

 

  <set value='11.08'/>

 

  <set value='11.34'/>

 

  <set value='45.63'/>

 

  <set value='43.38'/>

 

  <set value='44.33'/>

 

  <set value='21.67'/>

 

  <set value='29.60'/>

 

  <set value='6.82'/>

 

  <set value='-21.68'/>

 

  <set value='0.82'/>

 

  <set value='38.47'/>

 

  <set value='36.89'/>

 

  <set value='34.73'/>

 

  <set value='48.94'/>

 

  <set value='67.98'/>

 

  <set value='42.65'/>

 

  <set value='16.23'/>

 

  <set value='-1.75'/>

 

  <set value='82.09'/>

 

  <set value='72.39'/>

 

  <set value='65.11'/>

 

  <set value='67.26'/>

 

  <set value='67.53'/>

 

  <set value='47.27'/>

 

  <set value='65.01'/>

 

  <set value='60.63'/>

 

  <set value='66.77'/>

 

  <set value='71.05'/>

 

  <set value='64.38'/>

 

  <set value='37.94'/>

 

  <set value='69.96'/>

 

  <set value='56.15'/>

  <set value='-56.28'/>

 
<set value='0.00'/>

</dataset>

 

  </chart>

 

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