Chart JS Example

node v10.24.1
version: master
endpointsharetweet
const chartjsViewer = require("@runkit/sherlock/5cb55179b319230012cad23f/branches/master"); chartjsViewer(function (ctx){ var chart = new Chart(ctx, { type: 'line', data: { labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'], datasets: [{ label: 'My First dataset', backgroundColor: 'rgb(255, 99, 132)', borderColor: 'rgb(255, 99, 132)', data: [0, 10, 5, 2, 20, 30, 100] }] }, // Configuration options go here options: {} }); });
Loading…

no comments

    sign in to comment