• Content count

  • Joined

  • Last visited

About gurkan

  • Rank
    Forum Newbie
  1. We are trying to export a Fusion Widget gantt chart, and are using a basic chart with: <chart dateFormat='mm/dd/yyyy' outputDateFormat='hh12:mn ampm' hoverCapBorderColor='00ad03' hoverCapBgColor='1f1f1' ganttWidthPercent='98' ganttLineColor='00ad03' ganttLineAlpha='10' gridBorderAlpha='0' canvasBorderColor='00ad03' animation='0' showTaskStartDate='0' showTaskEndDate='0' showTaskNames='1' chartLeftMargin='1' chartRightMargin='1' exportEnabled='1' exportFileName='location' exportHandler='' exportAtClient='0' exportAction='save'> <categories> <category start='11/24/2010 6:00:00' end='11/24/2010 15:59:59' label='Wednesday, 11/24/2010' /> </categories> <categories fontSize='7'> <category start='11/24/2010 06:00:00' end='11/24/2010 06:59:59' label='6' /> <category start='11/24/2010 07:00:00' end='11/24/2010 07:59:59' label='7' /> <category start='11/24/2010 08:00:00' end='11/24/2010 08:59:59' label='8' /> <category start='11/24/2010 09:00:00' end='11/24/2010 09:59:59' label='9' /> <category start='11/24/2010 10:00:00' end='11/24/2010 10:59:59' label='10' /> <category start='11/24/2010 11:00:00' end='11/24/2010 11:59:59' label='11' /> <category start='11/24/2010 12:00:00' end='11/24/2010 12:59:59' label='12' /> <category start='11/24/2010 13:00:00' end='11/24/2010 13:59:59' label='1' /> <category start='11/24/2010 14:00:00' end='11/24/2010 14:59:59' label='2' /> <category start='11/24/2010 15:00:00' end='11/24/2010 15:59:59' label='3' /> </categories> <processes headerText='' align='left'> <process name='' id='1106219' /> <process name='' id='1106218' /> <process name='' id='1106220' /> </processes> <dataTable showProcessName='1' nameAlign='left' headerFontColor='000000' headerFontSize='11' headerFontIsBold='1'></dataTable> <tasks showLabels='1' showStartDate='1'> <task processId='1106219' start='11/24/2010 08:00:00' end='11/24/2010 11:00:00' label='man1 l2, waiter' color='003399' toolText='man1 l2, waiter, 08:00 AM - 11:00 AM, Cost: 22.89'/> <task processId='1106218' start='11/24/2010 08:00:00' end='11/24/2010 12:00:00' label='emp1 l1, cook' color='3366cc' toolText='emp1 l1, cook, 08:00 AM - 12:00 PM'/> <task processId='1106220' start='11/24/2010 08:30:00' end='11/24/2010 13:30:00' label='test last, cook' color='3366cc' toolText='test last, cook, 08:30 AM - 01:30 PM, Cost: 25.00'/> </tasks> <trendlines> </trendlines> </chart> We have some basic JS which looks like: function ExportMyChart() { var chartObject = getChartFromId('chart1Id'); if( chartObject.hasRendered() ) { chartObject.exportChart(); } } We've tested that chartObject is an HTML object, but both the hasRendered() and exportChart() fail as: chartObject.exportChart is not a function We are including FusionCharts.js What else needs to be done? Thanks!
  2. Will PrintManager be available for FusionWidgets? If yes, how soon? Thanks.
  3. Printmanager

    Thanks for reply, Below is what I have tried, actually I have tried other combinations as well but no dice. ... FusionCharts.printManager.enabled(false); .... chart1.render("chart1div"); FusionCharts.printManager.enabled(true); $('printChartDiv').style.display=''; FusionCharts.addEventListener ( FusionChartsEvents.PrintReadyStateChange , function (identifier, parameter) { alert("parameter_ready:"+parameter.ready); if(parameter.ready){ //alert("Chart is now ready for printing."); document.getElementById('printButton').disabled = false; } }); Still not working... For the first chart I get; 'parameter_ready:false' 5sec later 'parameter_ready:true' Once I have update the chart I get; 'parameter_ready:false' and hangs there. Thanks.
  4. My trendline is not shown because threndline value of 18 is greater than series values on parentYAxis='S'. How do I make sure that trendline is shown where trendline value is greater than series values? Thanks. <chart plotGradientColor='' caption='Graph from Wed, 11/03/2010 to Wed, 11/03/2010' subcaption='' lineThickness='1' showValues='0' formatNumberScale='0' anchorRadius='2' divLineAlpha='80' divLineColor='949494' divLineIsDashed='1' showAlternateHGridColor='1' alternateHGridAlpha='5' alternateHGridColor='949494' shadowAlpha='40' labelStep='1' chartRightMargin="35" bgColor='CCCCCC' bgAngle='270' bgAlpha='10,10' animation='0' numVisiblePlot='24' SYAxisName='Schedule Ratios' PYAxisName='Gross Sales Cost'> <categories><category label='4:00AM'/> <category label=''/> <category label='6:00AM'/> <category label=''/> <category label='8:00AM'/>is <category label=''/> <category label='10:00AM'/> <category label=''/> <category label='12:00PM'/> <category label=''/> <category label='2:00PM'/> <category label=''/> <category label='4:00PM'/> <category label=''/> <category label='6:00PM'/> <category label=''/> <category label='8:00PM'/> <category label=''/> <category label='10:00PM'/> <category label=''/> <category label='11/04/10 12:00AM'/> </categories> <dataset seriesName='Projections' color='ffcc00' renderAs='Line'><set value=''/> <set value=''/> <set value='132.69'/> <set value='132.69'/> <set value='132.69'/> <set value='132.69'/> <set value='132.69'/> <set value='132.69'/> <set value='132.69'/> <set value='132.69'/> <set value='132.69'/> <set value='132.69'/> <set value='132.69'/> <set value='132.69'/> <set value='132.69'/> <set value='132.69'/> <set value='132.69'/> <set value='132.65'/> <set value=''/> <set value=''/> <set value=''/> </dataset> <dataset seriesName='Ratio' color='0000cc' parentYAxis='S' renderAs='Line'><set value=''/> <set value=''/> <set value='0.0'/> <set value='0.0'/> <set value='0.0'/> <set value='0.0'/> <set value='0.0'/> <set value='0.0'/> <set value='0.0'/> <set value='0.0'/> <set value='0.0'/> <set value='0.0'/> <set value='0.0'/> <set value='0.0'/> <set value='0.0'/> <set value='5.78'/> <set value='5.78'/> <set value='5.78'/> <set value=''/> <set value=''/> <set value=''/> </dataset> <trendlines><line startvalue='18.0' displayValue='18.0% Threshold' color='009999' thickness='1' isTrendZone='0' parentYAxis='S'/></trendlines></chart>
  5. Printmanager

    Hi, I have been trying to use FusionCharts.printManager for my charts, but it seems like Print button is working when first chart displayed, but once I have changed date or add another line Print button will not be available (stayes as disabled) for printing. I am not sure but it seems FusionCharts.addEventListener not doing working after first chart has been displayed. Thans for help. <input type="button" onclick="FusionCharts.printManager.managedPrint()" value="<fmt:message key="button.printChart"/>" disabled="disabled" id="printButton" > .... .... $('printChartDiv').style.display=''; FusionCharts.addEventListener ( FusionChartsEvents.PrintReadyStateChange , function (identifier, parameter) { if(parameter.ready){ //alert("Chart is now ready for printing."); document.getElementById('printButton').disabled = false; } });