<script type="text/javascript">
  FusionCharts.ready(function() {
	<%= @timeSeriesData %>	
    var _fc_chart = new FusionCharts(<%= config %>);
    <% if(dataUrlFormat == 'json') %>
    _fc_chart.setJSONUrl("<%= @jsonUrl %>")
    <% elsif(dataUrlFormat == 'xml') %>
    _fc_chart.setXMLUrl("<%= @xmlUrl %>")
    <% end %>
    
    <%= @fusionchartsEvent %>

    _fc_chart.render();
  });
</script>
