Animated ChartsTutuapp

Has anybody been able to create percentage circles like these. They are pretty standard on Wordpress but trying to figure out how to add these or something similar

Bootstrap 4 (and therefore Blocs) don’t have a charting feature or percentage circles. Their are standalone libraries that can add these. Some are straight CSS while others also use javascript to do the job.

The easiest way

Attach the necessary files of a percentage circle library within Blocs.
Here’s one I just found in a quick search


There are a lot fancier ones out there, this is just the first link I clicked on.

Once the CSS file is attached, you can use an HTML Bric to add the Markup. By simply changing class names in the Markup you can get different styles.

The markup for the library above looks like this… Add this to an HTML Bric.

<div class="c100 p33 dark small blue">
     <div class="slice">
     <div class="bar"></div>
     <div class="fill"></div>

This markup above will output a small blue percentage circle with 33% selected.



This could be easy made into a custom Bric.


I will try. It’s been on my todo list to play around with the api. Wish me luck. :grinning:


It took about 10 seconds to add this to Blocs seen here as a live preview.


Please tell me, if you manage to create the bric, otherwise I will create one.

I am playing with this now, but it’s my first attempt at any sort of bric building. Creating the bric was easy, but with my lack of knowledge here I’m struggling to see a way of changing the percentage in the side panel. This needs to work so you can have five of these in a row if necessary and all with different percentages.

Custom Bric: CSS Percentage Circles


That’s awesome thank you!

@Whittfield congratulations to your first bric :+1: You only need to distribute the bex file. I will have a look at your bric this evening


Thank you sir …and good to know about the file. :wink:

One thing I was curious about. How do I get the styles to show up in Blocs. I added the css to both the “resources” and “includes” section but I still don’t see the styles in the Blocs app when I place the bric. I only see the styles when I preview the page. Am I missing something?

Thanks again!