SCYForce

Members
  • Content count

    11
  • Joined

  • Last visited

Posts posted by SCYForce


  1. Hey,

     

    We have been using fusion charts for a long time, recently I got a new request on the bullet chart. Basically, if the target value is larger than the upperlimit, the fusion chart will auto adjust the upperlimit to display the target. Is there a way to let the upper limit stay the same value and the target is on the upper limit not beyond the upperlimit. Also when the user hovers on the target it displays the target value (same case applies when the target is less than the lower limit). Thanks!


  2. I am using HBullet widget,

     

    Here is my xml:

    <chart bgAlpha="0" plotFillColor="#CFCECE" targetColor="#313131" numberSuffix="" showShadow="1" useRoundEdges="1" majorTMNumber="5" plotAsDot="0" showTickValues="1" formatNumberScale="1" lowerLimit="0" upperLimit="0.95" targetFillPercent="100" targetThickness="5" chartTopMargin="15" chartLeftMargin="20" chartRightMargin="20" roundRadius="5" colorRangeFillRatio="20,50,20,10" showBorder="0" bgColor="#FFFFFF">

    <colorRange>

    <color code="#A73C22" minValue="0" maxValue="0.25" />

    <color code="#CA7128" minValue="0.25" maxValue="0.35" />

    <color code="#CF9F2B" minValue="0.35" maxValue="0.6" />

    <color code="#96B53C" minValue="0.6" maxValue="0.95" />

    </colorRange>

    <value>0.44</value>

    <target>0.44</target>

    <styles>

    <definition>

    <style name="tickMarkFont" type="font" bold="1" />

    </definition>

    <application>

    <apply toObject="TICKVALUES" styles="tickMarkFont" />

    </application>

    <application>

    <apply toObject="LIMITVALUES" styles="tickMarkFont" />

    </application>

    </styles>

    </chart>

     

    I am not sure why the tick markers doesn't get displayed.

    The screenshot is attached to this post - post-6915-041809200 1294880752_thumb.jpg

     

    Thanks!


  3. Hi Guys;

     

     

     

    I am rendering a fusion chart using the setDataXML method and when I try to reset the data using setDataXML method, it says chart doesn't have this function.

     

     

     

    I am rendering the chart using:

     

     

     

    var myChart = new FusionCharts('/Column3DChart.swf', 'myChartId','713', '300', '0', '1');

     

     

     

    myChart.setDataXML("sample data here");

     

     

     

    myChart.setTransparent(true);

     

     

     

    myChart.render('chartdiv');

     

     

     

    After the chart is loaded, I have a javascript function to change the chart data,

     

     

     

    myChart.setDataXML(xmlData);

     

     

     

    myChart is a global object.

     

     

     

    hopefully this should updated the chart automatically, but I always get error -

     

    myChart doesn't have this function

     

     

     

    Then I modify the fusionchart.js source code in setDataXML function,

     

     

     

    setDataXML: function(strDataXML){

     

    //If being set initially

     

    if (this.initialDataSet==false){

     

    //This method sets the data XML for the chart INITIALLY.

     

    this.addVariable('dataXML',this.encodeDataXML(strDataXML));

     

    //Update flag

     

    this.initialDataSet = true;

     

    }else{

     

    //Else, we update the chart data using External Interface

     

    //Get reference to chart object

     

    var chartObj = infosoftglobal.FusionChartsUtil.getChartObject(this.getAttribute('id'));

     

    alert(chartObj.setDataXML);

     

    if (!chartObj.setDataXML)

     

    {

     

    __flash__addCallback(chartObj, "setDataXML");

     

    }

     

    alert(chartObj.setDataXML);

     

    chartObj.setDataXML(strDataXML);

     

    }

     

    }

     

     

     

     

     

     

     

     

     

     

     

    However it is still not working, my flash file is hosted on a webserver, and there is no way to change the security settings on that server.

     

     

     

    Do you have any suggestions or insight? Thanks!

     

     

     

    Sincerely

     

    Richard


  4. I put a Column 3D chart in a Extjs portlet, when the homepage is loading for the first time. The chart is in the portlet but there will be delay showing the data - the data is slowly displayed in about 2-3 seconds. Then I find out maybe I should turn off the chart animation and after turning off the chart animation, the chart data will be displayed instantly. But I am wondering what else will cause the lag of showing data? Thanks!