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.
Tags from Webflow:
chart, chartjs, webflow, dashboard, design
The best Webflow projects handpicked & delivered.
We search the entire Webflow showcase to find the most clone-worthy websites. The kind of sites that make you say "wait... this is free?"
Unsubscribe anytime. No spam.
Booyah! The first newsletter will go out early next week.
Oops! Something went wrong while submitting the form.
0 Comments