Skip to content

Instantly share code, notes, and snippets.

@frozzare
Created March 20, 2013 09:26
Show Gist options
  • Select an option

  • Save frozzare/5203415 to your computer and use it in GitHub Desktop.

Select an option

Save frozzare/5203415 to your computer and use it in GitHub Desktop.
//Get context with jQuery - using jQuery's .get() method.
var ctx = $("#myChart").get(0).getContext("2d");
//This will get the first returned node in the jQuery collection.
var myNewChart = new Chart(ctx);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment