WF Weekly - Episode 20

This video is your complete guide to leaving Chart.js behind and leveraging Recharts to build beautiful, responsive, and fully customizable charts using Webflow's native Code Components feature.

TABLE OF CONTENTS
Julian Galluzzo & Duncan Hamra

Introduction:

Tired of blurry, hard-to-manage charts on your Webflow sites? This video is your complete guide to leaving Chart.js behind and leveraging Recharts to build beautiful, responsive, and fully customizable charts using Webflow's native Code Components feature. You'll learn how to create a library of reusable, high-performance charts that perfectly integrate with your site's branding and styles.

Discovering the Power of Recharts:

"There's something called recharts which you can see here which is super customizable, super beautiful, and super performant. So, what I'm going to try to do in this video is use Recharts  as an interactive Web Flow component, which I can use across sites."

Building a Custom Line Chart Component:

"All right, so one prompt. It did take a little while. I think it took like 5 minutes to go ahead and do its thing, but we ended up with this line chart right here in Web Flow. And if I look at it in preview mode, then as we can see, it's got the tool tips. It's nice and animated."

Customizing Your Chart's Data and Appearance:

"Now, let's go ahead and try to configure it and see how things are. There's like a lot of different props in here. That being said, it's it's a complicated chart, so you kind of get what you get."

Integrating Webflow Variables for Dynamic Colors:

"I go ahead right now and like change my blue to be a different blue. Let's go ahead and make it like that. Even though it's kind of ugly, I just want to show you. As you can see, it has now updated.  I can set this to let's say like not show the y-axis, not show the x-axis, just make it like a chart, you know."

Creating a Reusable Bar Chart from Scratch:

"I'm thinking either a pie chart or a bar chart. Maybe a bar chart. I think bar charts are probably a lot more common. So, let's say uh we got all sorts of different bar charts. That one is hideous. Not tiny. Okay, let's go with this one right here. Simple bar chart. And let's just copy this code."

Fine-Tuning Axis and Tooltip Properties:

"So, the last thing that I want to do, actually there's two things. One is I want to make it so you can change the color of the axes. So, like this thing here that says like January, February, March, April, I want to be able to set a color to that because what if I want it to be like, you know, white. Let's say it's on like a dark background or let's say I just want it to not be so dark. I want it to be like gray. And then also same thing when I hover over the bar chart here, there's this like gray background, you know? So I want to be able to let's say set the color of that. So those are just like finishing touches."

Reviewing the Final Interactive Charts:

"I'm super happy with this. I have never had such good looking and customizable charts inside of Web Flow. Finally, I don't need to use Charts.js anymore."

Add memberships to your Webflow project in minutes.

Learn more

Over 200 free cloneable Webflow components. No sign up needed.

View Library

Add memberships to your React project in minutes.

Get started
What is Memberstack?

Auth & payments for Webflow sites

Add logins, subscriptions, gated content, and more to your Webflow site - easy, and fully customizable.

Learn more
Start building

Try out Memberstack & discover what you can build!

Memberstack is 100% free until you're ready to launch - so, what are you waiting for? Create your first app and start building today.