Tôôm

Members
  • Content count

    2
  • Joined

  • Last visited

Everything posted by Tôôm

  1. No data to display?

    Hi, Trying to make a simple multi-line chart and get "No data to display" message. I don't understand why, can you help me with code below please? What's wrong? $arrData = array( "chart" => array( "theme" => "candy", "showValues"=> "1" ), "dataset" => array() ); $score_chart["P1"]=array("30", "60", "120", "240", "480", "160"); $score_chart["P2"]=array("-15", "-30", "-60", "", "-240", "-80"); foreach($score_chart as $player=>$player_score) { $datavalues=array(); foreach($player_score as $value) array_push($datavalues, array("value" => $value)); array_push($arrData["dataset"], array("seriesname" => $player, "data" => $datavalues)); unset($datavalues); } $jsonEncodedData = json_encode($arrData); $Chart = new FusionCharts("msline", "Scores" , "100%", "400", "chart-container", "json", $jsonEncodedData); $Chart->render(); Fusioncharts seems amazing, can not wait to use it
  2. No data to display?

    Thanks so much now it works. It seems no to be needed in single line chart. I missed this information in the API Reference and I was thinking to have an error message.