Isaac

Members
  • Content count

    2
  • Joined

  • Last visited

About Isaac

  • Rank
    Forum Newbie
  1. Multiple Charts, Jquery, And Json

    Ah, nevermind. I see now that the renderAt parameter does take an actual DOM element as an argument, so that works.
  2. So, I have a simple scenario: I have multiple charts and I'd like to provide them JSON data. I'm on the latest version. Now, I know I can go through the work of giving them unique IDs and provide them individually to the render() function, but my code would be much cleaner if I could just generate a chart for each <div class='chart' dataUrl= '/getSomeSpecificJson'/>. All I need to make that easy is to have the render function take the div itself instead of the ID of that div. Then I could loop through $(".chart") and call render() on each one. Is that possible? I have noticed that the experimental jquery plugin lets you do this: $(".chart").each(function(){$(this).insertFusionCharts(...)}), which is great, but without learning my way around the plugin code, it's not clear how it's doing that under the covers and thus difficult to replicate in my own code. I'd be happy to just use the plugin (it's really quite nice), but I don't see how to configure JSON data from that plugin; as far as I can tell, it only provides the functionality to use XML. So another, even better, way to solve my problem would be to tell me how to use the jquery plugin to set a json data URL. Answers to either of those issues would rock my world. Thanks!