window.onload = function() {
var ctx = document.getElementById('canvas').getContext('2d');
- window.myLine = Chart.Line(ctx, {
+ window.myLine = new Chart(ctx, {
+ type: 'line',
data: lineChartData,
options: {
responsive: true,
var color = Chart.helpers.color;
var config = {
data: {
+ type: 'polarArea',
datasets: [{
data: [
randomScalingFactor(),
window.onload = function() {
var ctx = document.getElementById('chart-area');
- window.myPolarArea = Chart.PolarArea(ctx, config);
+ window.myPolarArea = new Chart(ctx, config);
};
document.getElementById('randomizeData').addEventListener('click', function() {
window.onload = function() {
var ctx = document.getElementById('canvas').getContext('2d');
- window.myScatter = Chart.Scatter(ctx, {
+ window.myScatter = new Chart(ctx, {
+ type: 'scatter',
data: scatterChartData,
options: {
title: {
window.onload = function() {
var ctx = document.getElementById('canvas').getContext('2d');
- window.myScatter = Chart.Scatter(ctx, {
+ window.myScatter = new Chart(ctx, {
+ type: 'scatter',
data: scatterChartData,
options: {
responsive: true,
window.onload = function() {
var ctx = document.getElementById('canvas').getContext('2d');
- window.myScatter = Chart.Scatter(ctx, {
+ window.myScatter = new Chart(ctx, {
+ type: 'scatter',
data: scatterChartData,
options: {
title: {