bluehillsolutions

Members
  • Content count

    3
  • Joined

  • Last visited

About bluehillsolutions

  • Rank
    Forum Newbie
  1. Passing Array in Data URL

    Hi, This seems like a simple task. I want to pass an array to the page that generates the graph, like so: $array = serialize($options); $strDataURL = encodeDataURL("searchgraph.php?player=0&club=$clubid&team=$team[b]&data=$array[/b]"); I can unserialse the array at the other end with no problems - the page is generating valid XML for the chart and yet the graph will not display with the following error: ERROR: An error occurred while loading data. Please check your dataURL, by clicking on the "dataURL invoked" link above, to see if it's returing valid XML data. Common causes for error are: No URL Encoding provided for querystrings in dataURL. If your dataURL contains querystrings as parameters, you'll need to URL Encode the same. e.g., Data.asp?id=101&subId=242 should be Data%2Easp%3Fid%3D101%26subId%3D242 Different sub-domain of chart .swf and dataURL. Both need to be same owing to sandbox security. Network error Clicking on the link displays totally valid chart XML. I've also tried urlencoding the serialised array with no luck. I've had this before with a single array and ended up parsing the array into a comma separated string and passing that way but I don't want to do this now. Any idea of what I'm doing wrong ? Cheers Steve
  2. No problem - thanks for the reply. I managed to talk the client into 2 dataset series and all is well thanks again Steve
  3. Hi I need to add a dynamic number of data series to a bar chart. For example the graph will run Monday to Sunday and for each day will show a bar representing 2 different types of session in minutes. This is fine for days where there is one session of each but when there is more than one session I seem to be running into trouble. For example: Monday: May have 6 sessions, 3 or type A and 3 of type B. The total time for all sessions might be 560 minutes but I need to show each individual session in the stacked bar. Tuesday might have 10 sessions, 2 of type A and 8 of type B and so on. Is there any way of representing thsi type of data in a stacked bar chart ? TIA Steve