tobyjoiner

Members
  • Content count

    8
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by tobyjoiner

  1. I am sure that I am doing something wrong and I am guessing it is easily fixed. I have the following html outputting: Can you please point me in the right direction? <!-- START Code Block for Chart total_pl_chart --> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" height="600" id="total_pl_chart" width="800"> <param name="allowscriptaccess" value="always"></param> <param name="movie" value="/chart/MSCombi3D.swf"></param> <param name="FlashVars" value="chartWidth=800&amp;chartHeight=600&amp;debugmode=0&amp;dataXML=&lt;chart bgColor=&quot;FFFFFF&quot; outCnvBaseFontColor=&quot;666666&quot; caption=&quot;Total Profit / Loss&quot; formatNumberScale=&quot;0&quot; decimalPrecision=&quot;4&quot; xAxisName=&quot;Month&quot; yAxisName=&quot;Sales&quot; numberPrefix=&quot;$&quot; showNames=&quot;1&quot; showValues=&quot;0&quot; plotFillAlpha=&quot;70&quot; numVDivLines=&quot;10&quot; showAlternateVGridColor=&quot;1&quot; AlternateVGridColor=&quot;e1f5ff&quot; divLineColor=&quot;999999&quot; baseFontColor=&quot;666666&quot; canvasBorderThickness=&quot;1&quot; showPlotBorder=&quot;0&quot; plotBorderThickness=&quot;0&quot; zgapplot=&quot;0&quot; zdepth=&quot;120&quot; exeTime=&quot;1.2&quot; dynamicShading=&quot;1&quot; YZWallDepth=&quot;5&quot; ZXWallDepth=&quot;5&quot; XYWallDepth=&quot;5&quot; canvasBgColor=&quot;FBFBFB&quot; startAngX=&quot;0&quot; startAngY=&quot;0&quot; endAngX=&quot;5&quot; endAngY=&quot;-25&quot; divLineEffect=&quot;bevel&quot;&gt;&lt;categories&gt;&lt;category label=&quot;Jan&quot; /&gt;&lt;category label=&quot;Feb&quot; /&gt;&lt;category label=&quot;Mar&quot; /&gt;&lt;category label=&quot;Apr&quot; /&gt;&lt;category label=&quot;May&quot; /&gt;&lt;category label=&quot;Jun&quot; /&gt;&lt;category label=&quot;Jul&quot; /&gt;&lt;category label=&quot;Aug&quot; /&gt;&lt;category label=&quot;Sep&quot; /&gt;&lt;category label=&quot;Oct&quot; /&gt;&lt;category label=&quot;Nov&quot; /&gt;&lt;category label=&quot;Dec&quot; /&gt;&lt;/categories&gt;&lt;dataset seriesName=&quot;$3.0 Down&quot; color=&quot;CC3333&quot; plotBorderColor=&quot;C8A1D1&quot; renderAs=&quot;line&quot;&gt;&lt;set value=&quot;235594.33638000028&quot; /&gt;&lt;set value=&quot;234661.98344752024&quot; /&gt;&lt;set value=&quot;206449.26355196006&quot; /&gt;&lt;set value=&quot;178837.94903696014&quot; /&gt;&lt;set value=&quot;85770.30343587989&quot; /&gt;&lt;set value=&quot;82176.69611491996&quot; /&gt;&lt;set value=&quot;50124.740000000005&quot; /&gt;&lt;set value=&quot;39938.14&quot; /&gt;&lt;set value=&quot;-60561.55&quot; /&gt;&lt;set value=&quot;12327.88&quot; /&gt;&lt;set value=&quot;-30806.0&quot; /&gt;&lt;set value=&quot;-26129.46&quot; /&gt;&lt;/dataset&gt;&lt;dataset seriesName=&quot;$3.0 Up&quot; color=&quot;006633&quot; plotBorderColor=&quot;C8A1D1&quot; renderAs=&quot;line&quot;&gt;&lt;set value=&quot;389391.1363800003&quot; /&gt;&lt;set value=&quot;149190.54344752023&quot; /&gt;&lt;set value=&quot;32848.38355196008&quot; /&gt;&lt;set value=&quot;23637.629036960163&quot; /&gt;&lt;set value=&quot;24891.423435880162&quot; /&gt;&lt;set value=&quot;-75978.62388507996&quot; /&gt;&lt;set value=&quot;-80150.26000000001&quot; /&gt;&lt;set value=&quot;-108996.86&quot; /&gt;&lt;set value=&quot;-105919.05&quot; /&gt;&lt;set value=&quot;-105032.12&quot; /&gt;&lt;set value=&quot;11681.5&quot; /&gt;&lt;set value=&quot;21870.54&quot; /&gt;&lt;/dataset&gt;&lt;dataset seriesName=&quot;Current&quot; color=&quot;3366CC&quot; plotBorderColor=&quot;C8A1D1&quot; renderAs=&quot;line&quot;&gt;&lt;set value=&quot;312492.73638000025&quot; /&gt;&lt;set value=&quot;191926.26344752026&quot; /&gt;&lt;set value=&quot;142598.82355196006&quot; /&gt;&lt;set value=&quot;124187.78903696015&quot; /&gt;&lt;set value=&quot;47005.86343587986&quot; /&gt;&lt;set value=&quot;11986.53611491997&quot; /&gt;&lt;set value=&quot;-2150.2599999999998&quot; /&gt;&lt;set value=&quot;-18996.86&quot; /&gt;&lt;set value=&quot;-66919.05&quot; /&gt;&lt;set value=&quot;-42632.12&quot; /&gt;&lt;set value=&quot;-2718.5&quot; /&gt;&lt;set value=&quot;-2129.46&quot; /&gt;&lt;/dataset&gt;&lt;/chart&gt;&amp;scaleMode=&amp;lang="></param> <param name="quality" value="high"></param> <param name="wmode" value="window"></param> <param name="bgcolor" value=""></param> <embed FlashVars="chartWidth=800&amp;chartHeight=600&amp;debugmode=0&amp;dataXML=&lt;chart bgColor=&quot;FFFFFF&quot; outCnvBaseFontColor=&quot;666666&quot; caption=&quot;Total Profit / Loss&quot; formatNumberScale=&quot;0&quot; decimalPrecision=&quot;4&quot; xAxisName=&quot;Month&quot; yAxisName=&quot;Sales&quot; numberPrefix=&quot;$&quot; showNames=&quot;1&quot; showValues=&quot;0&quot; plotFillAlpha=&quot;70&quot; numVDivLines=&quot;10&quot; showAlternateVGridColor=&quot;1&quot; AlternateVGridColor=&quot;e1f5ff&quot; divLineColor=&quot;999999&quot; baseFontColor=&quot;666666&quot; canvasBorderThickness=&quot;1&quot; showPlotBorder=&quot;0&quot; plotBorderThickness=&quot;0&quot; zgapplot=&quot;0&quot; zdepth=&quot;120&quot; exeTime=&quot;1.2&quot; dynamicShading=&quot;1&quot; YZWallDepth=&quot;5&quot; ZXWallDepth=&quot;5&quot; XYWallDepth=&quot;5&quot; canvasBgColor=&quot;FBFBFB&quot; startAngX=&quot;0&quot; startAngY=&quot;0&quot; endAngX=&quot;5&quot; endAngY=&quot;-25&quot; divLineEffect=&quot;bevel&quot;&gt;&lt;categories&gt;&lt;category label=&quot;Jan&quot; /&gt;&lt;category label=&quot;Feb&quot; /&gt;&lt;category label=&quot;Mar&quot; /&gt;&lt;category label=&quot;Apr&quot; /&gt;&lt;category label=&quot;May&quot; /&gt;&lt;category label=&quot;Jun&quot; /&gt;&lt;category label=&quot;Jul&quot; /&gt;&lt;category label=&quot;Aug&quot; /&gt;&lt;category label=&quot;Sep&quot; /&gt;&lt;category label=&quot;Oct&quot; /&gt;&lt;category label=&quot;Nov&quot; /&gt;&lt;category label=&quot;Dec&quot; /&gt;&lt;/categories&gt;&lt;dataset seriesName=&quot;$3.0 Down&quot; color=&quot;CC3333&quot; plotBorderColor=&quot;C8A1D1&quot; renderAs=&quot;line&quot;&gt;&lt;set value=&quot;235594.33638000028&quot; /&gt;&lt;set value=&quot;234661.98344752024&quot; /&gt;&lt;set value=&quot;206449.26355196006&quot; /&gt;&lt;set value=&quot;178837.94903696014&quot; /&gt;&lt;set value=&quot;85770.30343587989&quot; /&gt;&lt;set value=&quot;82176.69611491996&quot; /&gt;&lt;set value=&quot;50124.740000000005&quot; /&gt;&lt;set value=&quot;39938.14&quot; /&gt;&lt;set value=&quot;-60561.55&quot; /&gt;&lt;set value=&quot;12327.88&quot; /&gt;&lt;set value=&quot;-30806.0&quot; /&gt;&lt;set value=&quot;-26129.46&quot; /&gt;&lt;/dataset&gt;&lt;dataset seriesName=&quot;$3.0 Up&quot; color=&quot;006633&quot; plotBorderColor=&quot;C8A1D1&quot; renderAs=&quot;line&quot;&gt;&lt;set value=&quot;389391.1363800003&quot; /&gt;&lt;set value=&quot;149190.54344752023&quot; /&gt;&lt;set value=&quot;32848.38355196008&quot; /&gt;&lt;set value=&quot;23637.629036960163&quot; /&gt;&lt;set value=&quot;24891.423435880162&quot; /&gt;&lt;set value=&quot;-75978.62388507996&quot; /&gt;&lt;set value=&quot;-80150.26000000001&quot; /&gt;&lt;set value=&quot;-108996.86&quot; /&gt;&lt;set value=&quot;-105919.05&quot; /&gt;&lt;set value=&quot;-105032.12&quot; /&gt;&lt;set value=&quot;11681.5&quot; /&gt;&lt;set value=&quot;21870.54&quot; /&gt;&lt;/dataset&gt;&lt;dataset seriesName=&quot;Current&quot; color=&quot;3366CC&quot; plotBorderColor=&quot;C8A1D1&quot; renderAs=&quot;line&quot;&gt;&lt;set value=&quot;312492.73638000025&quot; /&gt;&lt;set value=&quot;191926.26344752026&quot; /&gt;&lt;set value=&quot;142598.82355196006&quot; /&gt;&lt;set value=&quot;124187.78903696015&quot; /&gt;&lt;set value=&quot;47005.86343587986&quot; /&gt;&lt;set value=&quot;11986.53611491997&quot; /&gt;&lt;set value=&quot;-2150.2599999999998&quot; /&gt;&lt;set value=&quot;-18996.86&quot; /&gt;&lt;set value=&quot;-66919.05&quot; /&gt;&lt;set value=&quot;-42632.12&quot; /&gt;&lt;set value=&quot;-2718.5&quot; /&gt;&lt;set value=&quot;-2129.46&quot; /&gt;&lt;/dataset&gt;&lt;/chart&gt;&amp;scaleMode=&amp;lang=" allowScriptAccess="always" bgColor="" height="600" name="total_pl_chart" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" src="/chart/MSCombi3D.swf" type="application/x-shockwave-flash" width="800" wmode="window"></embed> </object>
  2. I had to add the following to config/application.rb config.autoload_paths += %W(#{config.root}/lib) config.autoload_paths += Dir["#{config.root}/lib/**/"] It is fixed now.
  3. I have the following haml = render_chart '/chart/MSCombi3D.swf', '', @total_xml, "myNextHTML1", 800, 400, 0, 1 = render_chart '/chart/MSCombi3D.swf', '', @cattle_xml, "myNextHTML2", 800, 400, 0, 1 = render_chart '/chart/MSCombi3D.swf', '', @hedging_xml, "myNextHTML3", 800, 400, 0, 1 This is causing them to output as follows: myNextHTML1 myNextHTML2 myNextHTML3 myNextHTML1 myNextHTML1 myNextHTML2 myNextHTML1 myNextHTML2 myNextHTML3 I can't figure out what is going on, is there an issue with render_chart or am I just an idiot and did something wrong?
  4. multiple charts duplicating

    I figured this out... If anyone else runs across this problem, just take out the = to make: = render_chart '/chart/MSCombi3D.swf', '', @total_xml, "myNextHTML1", 800, 400, 0, 1 become: render_chart '/chart/MSCombi3D.swf', '', @total_xml, "myNextHTML1", 800, 400, 0, 1
  5. multiple charts duplicating

    Just to add to this: I changed it to just one chart and am still getting 2 charts showing on the page. I tried changing it to render_chart_html also.
  6. I have been trying to get 2 charts that are basically the same to work in the same page. I can take either one out and the other works fine, but when I have both and I try to run the function on either one of them, it only updates the first one on the page. I am sure I am just missing something easy, but can't find it. These are the 2 functions I use to call get the new chart data. chartdata.php returns xml code, and that looks fine, and like I said above, works fine with either one of the charts. This is in the head section of the page. function changeChart1Date(modDate, modLength) { chart1.setDataURL("chartdata.php?date="+modDate+"&length="+modLength); } function changeChart2Date(modDate, modLength) { chart2.setDataURL("chartdata.php?date="+modDate+"&length="+modLength); } This is in the body and obviously loads the charts to begin with. If I change the data on one of them from here they both work fine, and show separate data. Its just the reload that is broken. The code below is in the body section and has the 2 divs nearby. var chart1 = new FusionCharts("/chart/MSLine.swf", "sampleChart", "650", "300", "0", "1"); chart1.setDataURL("chartdata.php"); chart1.render("chart1div"); var chart2 = new FusionCharts("/chart/MSLine.swf", "sampleChart", "650", "300", "0", "1"); chart2.setDataURL("chartdata.php"); chart2.render("chart2div"); Thanks for any help, Toby
  7. 2 dynamic charts in one page

    That worked perfectly. Good to know these forums have people that respond. Thank you very much Toby