shadey

Members
  • Content count

    3
  • Joined

  • Last visited

About shadey

  • Rank
    Forum Newbie
  1. Link For Chart Caption

    Hi. Hoping you can put my mind at ease! Am I right in thinking that you cannot use the ".setDataXML" approach to rendering when with a caption? I cant avoid javascript errors when I do this. My code is as follows: <div id="chartdiv" align="center">The chart will appear within this DIV. This text will be replaced by the chart.</div> <script type="text/javascript"> var myChart = new FusionCharts("charts/Column3D.swf", "myChartId", "900", "300", "0", "0"); myChart.setDataXML("<chart caption="<a href='http://www.fusioncharts.com'> Monthly Sales Summary </a>" xAxisName='Month' yAxisName='Sales' numberPrefix='$'><set label='January' value='17400' /><set label='February' value='19800' /><set label='March' value='21800' /><set label='April' value='23800' /><set label='May' value='29600' /><set label='June' value='27600' /><set label='July' value='31800' /><set label='August' value='39700' /><set label='September' value='37800' /><set label='October' value='21900' /><set label='November' value='32900' /><set label='December' value='39800' /><styles><definition><style name='CaptionLink' type='font' isHTML='1' /></definition><application><apply toObject='Caption' styles='CaptionLink' /></application></styles></chart>"); myChart.render("chartdiv"); </script Javascript error: Error: missing ) after argument list Source File: http://localhost/website/testasp.asp?sdfdfdfsdssssgg Line: 17, Column: 45 Source Code: myChart.setDataXML("<chart caption="<a href='http://www.fusioncharts.com'> Monthly Sales Summary </a>" xAxisName='Month' yAxisName='Sales' numberPrefix='$'><set label='January' value='17400' /><set label='February' value='19800' /><set l i.e. the error caused by double quote in the string, but there are double and single quotes in the string, so cannot change the render to myChart.setDataXML('') using single quotes. Maybe the only solution is to render it using an XML file? Thanks
  2. I am having a problem with the multi series line chart where two or more lines come together at the same X & Y point. The data is driven from a database connection, so I tried a workaround, whereby I changed the set value by a couple of units but this is having an unwanted effect on the legend. The issue is that when you mouse over the point in question only the last written value is included in the tool tip, and any link location would react the same. Any ideas? In the below simple example, Paid Search and Offline Marketing have values of 1,010 on 8/7/2006, the mouse over is not showing both Items, only Paid Search. This issue becomes even more troublesome when two consecutive points are in identical spots for 2 different items in the legend, you then only have one visible line. Problems also arise where you plot an average/high/low line on top of data, further increasing the chance of overlapping data Info: Chart loaded and initialized. Initial Width: 600 Initial Height: 400 Scale Mode: noScale Debug Mode: Yes Application Message Language: EN Version: 3.0.4 Chart Type: Multi Series 2D Line Chart Chart Objects: BACKGROUND CANVAS CAPTION SUBCAPTION YAXISNAME XAXISNAME DIVLINES VDIVLINES YAXISVALUES HGRID VGRID DATALABELS DATAVALUES TRENDLINES TRENDVALUES DATAPLOT ANCHORS TOOLTIP VLINES LEGEND INFO: Chart registered with external script. DOM Id of chart is IssueChart INFO: XML Data provided using dataXML method. XML Data: <chart caption="Daily Visits" subcaption="(from 8/6/2006 to 8/12/2006)" lineThickness="1" showValues="0" formatNumberScale="0" anchorRadius="2" divLineAlpha="20" divLineColor="CC3300" divLineIsDashed="1" showAlternateHGridColor="1" alternateHGridAlpha="5" alternateHGridColor="CC3300" shadowAlpha="40" labelStep="2" numvdivlines="5" chartRightMargin="35" bgColor="FFFFFF,CC3300" bgAngle="270" bgAlpha="10,10"><categories><category label="8/6/2006" /> <category label="8/7/2006" /> <category label="8/8/2006" /> <category label="8/9/2006" /> <category label="8/10/2006" /> <category label="8/11/2006" /> <category label="8/12/2006" /> </categories> <dataset seriesName="Offline Marketing" color="1D8BD1" anchorBorderColor="1D8BD1" anchorBgColor="1D8BD1"><set value="1327" /> <set value="1010" /> <set value="1699" /> <set value="1511" /> <set value="1904" /> <set value="1957" /> <set value="1296" /> </dataset><dataset seriesName="Search" color="F1683C" anchorBorderColor="F1683C" anchorBgColor="F1683C"><set value="2042" /> <set value="3210" /> <set value="2994" /> <set value="3115" /> <set value="2844" /> <set value="3576" /> <set value="1862" /> </dataset><dataset seriesName="Paid Search" color="2AD62A" anchorBorderColor="2AD62A" anchorBgColor="2AD62A"><set value="850" /> <set value="1010" /> <set value="1116" /> <set value="1234" /> <set value="1210" /> <set value="1054" /> <set value="802" /> </dataset><dataset seriesName="From Mail" color="DBDC25" anchorBorderColor="DBDC25" anchorBgColor="DBDC25"><set value="541" /> <set value="781" /> <set value="920" /> <set value="754" /> <set value="840" /> <set value="893" /> <set value="451" /> </dataset><styles><definition><style name="CaptionFont" type="font" size="12" /> </definition><application><apply toObject="CAPTION" styles="CaptionFont" /> <apply toObject="SUBCAPTION" styles="CaptionFont" /> </application></styles> </chart>
  3. Scatter chart

    Hi, I'm using Scatter chart (Scatter.swf) and I want to produce a graph that has 4 quadrants with no dividing lines on x or Y apart from the lines required to produce the quadrants. I have managed it by using the following settings: To hide horizontals backgrounds I'm setting divLineAlpha='0' & showAlternateHGridColor='0' in the graph element; adding a <trendlines><line> to show one specific horizontal line to form the top and bottom of the quadrant To hide verticals: showVerticalLine='0'; adding one specific <category> with showVerticalLine='1' to show the vertical line to define the left and right parts of the quadrants Now what I want to be able to do it to set the background colour for the 4 quadrants. Is this possible? The following is the code that I have been using so far to create the quadrants. Any help or suggestions welcome, I have spent some time looking up online help before posting!! Thanks. <graph palette='3' caption='Strategic Supplier Graph' yAxisName='Spend: Routine -> Leverage' showLegend='1' showNames='1' xAxisName='Complexity: Routine -> Critical' xAxisMaxValue='100' xAxisMinValue='0' showXAxisValues='1' yAxisMaxValue='100' yAxisMinValue='0' showYAxisValues='1' divLineAlpha='0' showAlternateHGridColor='0' baseFont='Arial' baseFontSize ='12' baseFontColor ='000000' ><categories verticalLineColor='000000' verticalLineThickness='1'><category name='30' x='30' showVerticalLine='1'/> <category name='0' x='0' showVerticalLine='0' /> <category name='20' x='20' showVerticalLine='0' /> <category name='40' x='40' showVerticalLine='0' /> <category name='60' x='60' showVerticalLine='0' /> <category name='80' x='80' showVerticalLine='0' /> <category name='100' x='100' showVerticalLine='0' /> </categories><dataSet id='DS1' seriesName='Server 1' Color='ff5904' plotBorderThickness='0' showPlotBorder='1'><set id='S1' x='17' y='5' /> <set id='S2' x='83' y='64' /> <set id='S3' x='89' y='9' /> <set id='S4' x='17' y='91' /> <set id='S5' x='56' y='31' /> <set id='S6' x='22' y='22' /> <set id='S7' x='91' y='69' /> <set id='S8' x='36' y='88' /> </dataSet><dataSet id='DS2' seriesName='Server 2' Color='00aaaa' plotBorderThickness='0' showPlotBorder='1'><set id='S1' x='78' y='88' /> <set id='S2' x='77' y='81' /> <set id='S3' x='23' y='81' /> <set id='S4' x='78' y='69' /> <set id='S5' x='52' y='58' /> <set id='S6' x='65' y='44' /> <set id='S7' x='68' y='1' /> <set id='S8' x='1' y='73' /> </dataSet><dataSet id='DS3' seriesName='Server 3' Color='000000' plotBorderThickness='0' showPlotBorder='5'><set id='S1' x='1' y='88' /> <set id='S2' x='1' y='81' /> <set id='S3' x='1' y='81' /> <set id='S4' x='1' y='69' /> <set id='S5' x='1' y='58' /> <set id='S6' x='1' y='44' /> <set id='S7' x='1' y='1' /> <set id='S8' x='98' y='73' /> </dataSet><styles><definition><style name='myCaptionFont' type='font' font='Arial' size='14' color='666666' bold='1' underline='1' /> </definition><application><apply toObject='Caption' styles='myCaptionFont' /> </application></styles><trendlines><line startValue='50' displayValue='' lineThickness='5' color='000000' valueOnRight='0' dashed='0' dashGap='0'/></trendlines></graph>]sXMLString=[<graph palette='3' caption='Strategic Supplier Graph' yAxisName='Spend: Routine -> Leverage' showLegend='1' showNames='1' xAxisName='Complexity: Routine -> Critical' xAxisMaxValue='100' xAxisMinValue='0' showXAxisValues='1' yAxisMaxValue='100' yAxisMinValue='0' showYAxisValues='1' divLineAlpha='0' showAlternateHGridColor='0' baseFont='Arial' baseFontSize ='12' baseFontColor ='000000' ><categories verticalLineColor='000000' verticalLineThickness='1'><category name='30' x='30' showVerticalLine='1'/> <category name='0' x='0' showVerticalLine='0' /> <category name='20' x='20' showVerticalLine='0' /> <category name='40' x='40' showVerticalLine='0' /> <category name='60' x='60' showVerticalLine='0' /> <category name='80' x='80' showVerticalLine='0' /> <category name='100' x='100' showVerticalLine='0' /> </categories><dataSet id='DS1' seriesName='Server 1' Color='ff5904' plotBorderThickness='0' showPlotBorder='1'><set id='S1' x='17' y='5' /> <set id='S2' x='83' y='64' /> <set id='S3' x='89' y='9' /> <set id='S4' x='17' y='91' /> <set id='S5' x='56' y='31' /> <set id='S6' x='22' y='22' /> <set id='S7' x='91' y='69' /> <set id='S8' x='36' y='88' /> </dataSet><dataSet id='DS2' seriesName='Server 2' Color='00aaaa' plotBorderThickness='0' showPlotBorder='1'><set id='S1' x='78' y='88' /> <set id='S2' x='77' y='81' /> <set id='S3' x='23' y='81' /> <set id='S4' x='78' y='69' /> <set id='S5' x='52' y='58' /> <set id='S6' x='65' y='44' /> <set id='S7' x='68' y='1' /> <set id='S8' x='1' y='73' /> </dataSet><dataSet id='DS3' seriesName='Server 3' Color='000000' plotBorderThickness='0' showPlotBorder='5'><set id='S1' x='1' y='88' /> <set id='S2' x='1' y='81' /> <set id='S3' x='1' y='81' /> <set id='S4' x='1' y='69' /> <set id='S5' x='1' y='58' /> <set id='S6' x='1' y='44' /> <set id='S7' x='1' y='1' /> <set id='S8' x='98' y='73' /> </dataSet><styles><definition><style name='myCaptionFont' type='font' font='Arial' size='14' color='666666' bold='1' underline='1' /> </definition><application><apply toObject='Caption' styles='myCaptionFont' /> </application></styles><trendlines><line startValue='50' displayValue='' lineThickness='5' color='000000' valueOnRight='0' dashed='0' dashGap='0'/></trendlines></graph>