Search the Community

Showing results for tags 'radar'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Company Forums
    • Company News
  • Product Forums
    • FusionCharts XT
    • FusionWidgets XT
    • PowerCharts XT
    • FusionMaps XT
    • Collabion Charts for SharePoint
    • jQuery Plugin for FusionCharts
    • AngularJS plugin
    • ReactJS plugin
  • General Forums
    • FusionCharts Jobs and Consultation
    • FusionLounge

Found 3 results

  1. I am trying to pass an xml string into the datasource argument and I keep getting an invalid data message when I load the page. Any help would be appreciated. <head> <title>FusionCharts XT - Column 2D Chart - Data from a database</title> <link rel="stylesheet" type="text/css" href="css/style.css" /> <!-- Include the `fusioncharts.js` file. This file is needed to render the chart. Ensure that the path to this JS file is correct. Otherwise, it may lead to JavaScript errors. --> <script src="fusioncharts/fusioncharts.js"></script> </head> <?php include("fusioncharts/fusioncharts.php"); $servername = "localhost"; $username = "*****"; $password = "****"; $dbname = "***"; // Create connection $dbhandle = new mysqli($servername, $username, $password, $dbname); // Check connection if ($dbhandle->connect_error) { die("Connection failed: " . $dbhandle->connect_error); } $dbhandle = new mysqli($servername, $username, $password, $dbname); // Render an error message, to avoid abrupt failure, if the database connection parameters are incorrect if ($dbhandle->connect_error) { exit("There was an error with your connection: ".$dbhandle->connect_error); } // Form the SQL query that returns the top 10 most populous countries $strQuery = "SELECT * FROM scores"; //$retval = mysql_query( $sql, $conn ); // Execute the query, or else return the error message. $result = $dbhandle->query($strQuery) or exit("Error code ({$dbhandle->errno}): {$dbhandle->error}"); //while($row = mysql_fetch_assoc($result)) { // echo "Category :{$row['category']} <br> ". // "score : {$row['score']} <br> ". // "--------------------------------<br>"; // } $strXML ="'<chart><categories>"; // If the query returns a valid response, prepare the XML string if ($result) { // The `$arrData` array holds the chart attributes and data //$arrData["data"] = array(); // Push the data into the array while($row = mysqli_fetch_array($result)) { $strQuery2 = "select * from desirescores where ID =" . $row['ID']; //echo $strQuery2; $result2 = mysqli_query($dbhandle, $strQuery2) or die(mysqli_error()); $ors2 = mysqli_fetch_array($result2); //Generate <set label='..' value='..'/> //free the resultset $strXML .= "<category label='" . $ors2['category'] . "' />"; mysqli_free_result($result2); } } $strXML .= "</categories><dataset seriesName='Athlete Scores'>"; $strXML .="<set value='35' /><set value='48' /><set value='31' /><set value='40' /><set value='36' /><set value='36' /><set value='36' /><set value='36' /></dataset></chart>'"; echo $strXML; $radarChart = new FusionCharts("radar", "myFirstChart" , 600, 300, "chart-1", "XML", $strXML); $radarChart->render(); $dbhandle->close(); ?> <div id="chart-1"><!-- Fusion Charts will render here--></div>
  2. I recently upgraded from FusionCharts 3.2.1 to XT. I followed the instructions here: http://docs.fusioncharts.com/charts/contents/Introduction/Upgrading32.html and am using the following line to render JS charts by default: FusionCharts.setCurrentRenderer('javascript'); Previously, our system was set up to render Flash charts from XML data, and I haven't changed any of the existing code. In our radar chart, I'm now seeing random yellow and green borders in the chart, which previously defaulted to blue and red. No color settings have been changed in the code. Correct borders (before upgrade): Wrong borders (after upgrade): When I inspect the element in Chrome's dev tools, this is the blue area w/yellow border: <path fill="#1875bb" stroke="#f6bd0f" d="M405,188.00464285714287L257.2115117711864,153.14261345436068L232.51679834241202,310.3681652202647L331.6978216117407,423.2135418385827L479.1992330188848,425.07629497297097L597.9277881645809,315.03450867709086L560.1779126402544,147.24974412707877Z" stroke-opacity="1" fill-opacity="0.3" stroke-width="2" style=""></path> Red w/green border: <path fill="#ff0000" stroke="#8bba00" d="M405,259.48107142857145L383.293565791393,253.68969635110923L383.1156538798386,275.99495919322226L399.6176722162467,282.1765188063295L415.3802035829528,292.55471484077833L419.6855480543188,274.35188051124123L423.2426415157442,256.45197884827263Z" stroke-opacity="1" fill-opacity="0.3" stroke-width="2" style=""></path> This is the XML being passed to the chart: <?xml version='1.0' encoding='utf-8'?> <chart showLegend='1' showAboutMenuItem='0' showToolTip='1' seriesNameInToolTip='1' exportEnabled='1' plotFillAlpha='30' radarFillColor='FFFFFF' imageSaveURL='/data/image' exportFormats='PNG=Save as Image' decimals='1' subcaption='Latest data is from 03/11/2014'> <categories> <category label="Buzz"/> <category label="Impression"/> <category label="Quality"/> <category label="Value"/> <category label="Reputation"/> <category label="Satisfaction"/> <category label="Recommend"/> </categories> <dataset plotBorderThickness='0' anchorAlpha='0' plotFillAlpha='20' color='000000' seriesname='' plotBorderAlpha='0'> <set /> <set /> <set /> <set /> <set /> <set /> <set /> </dataset> <dataset plotBorderThickness='2' anchorAlpha='100' plotFillAlpha='10' color='1875bb' seriesname='Amazon.com' plotBorderAlpha='100'> <set value='28.1'/> <set value='64.0'/> <set value='59.9'/> <set value='57.2'/> <set value='57.9'/> <set value='67.0'/> <set value='67.2'/> </dataset> <dataset plotBorderThickness='2' anchorAlpha='100' plotFillAlpha='10' color='ff0000' seriesname='Sector Median' plotBorderAlpha='100'> <set value='3.9'/> <set value='9.4'/> <set value='7.6'/> <set value='4.2'/> <set value='8.1'/> <set value='5.1'/> <set value='7.9'/> </dataset> <styles> <definition> <style color='000000' size='10' type='font' bold='1' name='boldfont' /> <style color='000000' size='10' type='font' bold='0' name='defaultfont' /> </definition> <application> <apply toObject='CAPTION' styles='boldfont' /> <apply toObject='XAXISNAME' styles='defaultfont' /> <apply toObject='YAXISNAME' styles='defaultfont' /> </application> </styles> </chart> Any idea why these border colors changed randomly? Do I now need to specify the color explicitly? Please let me know how to fix. Thanks!
  3. Hi, Is there a way to make radar circles (div lines) in the radar chart even though there are only 3 categories defined? Apparently, when there are 3 categories defined, the div lines are drawn as triangle. The target is to render the chart similar to the photo attached.