Marketplace
Made in Webflow

Chart.js X Webflow Integration

4754 views
site profile thumbnail

Description

Hi all. Here's a pretty nifty way to incorporate simple Chart.js features into your Webflow workflow. 1) Add a div, and chuck an HTML Embed inside the div. 2) Apply the chart id - eg: <canvas id="myChart"></canvas>. 3) Inside the HTML Embed (below the canvas tag), chuck in the Chart.JS CDN (grab latest CDN links here: https://cdnjs.com/libraries/Chart.js ). 4) Apply the script content again in the HTML Embed, for example <script> var myPieChart = new Chart(ctx, { type: 'pie', data: data, options: options }); </script> Head over to https://www.chartjs.org/ for a comprehensive insight into it's usability, and feel free to clone this if you want to play around with it inside Webflow.
Feeling inspired?If this Made In Webflow site sparked some inspo, why not get started on a project of your own? Clone a site, purchase a template or start building from scratch.

We miss comments too!

Right now, Made in Webflow doesn't offer all of the same functionality that Showcase did, like the ability to leave comments. But don't worry: We're working to bring comments back as soon as possible!

As always, we'd love to hear your feedback! Click the link below to take a short survey about Made in Webflow.

chartchartjsdashboarddesign

More by Elliot Rylands

See profile
View details
bg-colour-change-7e23af
21
38