“Container is not defined” Google chart

I’m not a jquery fan, but I think that $(‘#pie_today_div’) returns a set of matched elements. The attribute computation works because (from jquery documentation) it “gets the value of an attribute for the first element in the set of matched elements”. So try chart = new google.visualization.PieChart($(‘#pie_today_div’)[0]); or directly chart = new google.visualization.PieChart(document.getElementById(‘pie_today_div’));

Zoomable, Google-Finance-style time series graph in D3 or Rickshaw? [closed]

NVD3 is a very cool project that has a number of reusable charts written upon D3. See here for an example of a line chart with a view finder, along with source code. Update: The NVD3 example now also links to an example of Mike Bostock’s (creator of D3) which demonstrates similar functionality, the ability … Read more

tech