Logo v4.3.1
Image Description

No Results

  • Get Support
  • Preview Demo
Logo v4.3.1
  • Docs
  • Snippets
  • Documentation
  • Introduction
  • Getting started
  • Getting Started
  • Gulp
  • Customization
  • Credits
  • Changelog
  • Design & Graphics
  • Bootstrap Icons
  • Duotone Icons
  • Illustrations
  • Components
  • Accordion
  • Alerts
  • Avatars
  • Badge
  • Breadcrumb
  • Buttons
  • Cards
  • Collapse
  • Column Divider
  • Devices
  • Divider
  • Dropdowns
  • Icons
  • List Group
  • Lists
  • Legend Indicator
  • Modal
  • Offcanvas
  • Page Header
  • Pagination
  • Popovers
  • Progress
  • Profile
  • Shapes
  • Spinners
  • Steps
  • Tab
  • Tables
  • Text Highlight
  • Toasts
  • Tooltips
  • Typography
  • Navbars
  • Navbar
  • Navs
  • Mega Menu
  • Scrollspy
  • Basic forms
  • Basic Forms
  • Checks & Switches
  • Input Group
  • Advanced Forms
  • Advanced Select
  • File Attachments
  • Drag’ n’ Drop File Uploads
  • WYSIWYG Editor
  • Quantity Counter
  • Input Mask
  • Step Forms (Wizards)
  • Range Slider (noUiSlider)
  • Add Field
  • Toggle Password
  • Count Characters
  • Toggle Switch
  • Toggle State
  • Switch
  • Media
  • Fullscreen Lightbox
  • Video Background
  • Video Player
  • Swiper
  • Others
  • Maps (Leaflet)
  • Chart.js
  • Circles.js (Pie Chart)
  • Sticky Block
  • Countdown
  • Sorting (Shuffle.js)
  • Go To
  • Show Animation
  • Typed.js
  • Utilities
  • Backgrounds
  • Borders
  • Colors
  • Links
  • Position
  • Rotations
  • Shadows
  • Sizing
  • Spacing
  • Z-index

Circles (Pie chart)

A lightweight JavaScript library that generates circular graphs in SVG.

Circles documentation

How to use

Copy-paste the following <script> near the end of your pages under JS Implementing Plugins to enable it.

        
          <script src="./assets/vendor/appear/dist/appear.min.js"></script>
          <script src="./assets/vendor/circles.js/circles.js"></script>
        
      

Copy-paste the following <script> near the end of your pages under JS Implementing Plugins to enable it.

        
        
      

Copy-paste the init function under JS Plugins Init., before the closing </body> tag, to enable it.

        
          <script>
            (function() {
              // INITIALIZATION OF CIRCLES
              // =======================================================
              setTimeout(() => {
                HSCore.components.HSCircles.init('.js-circle')
              })
            })()
          </script>
        
      

Basic example

  • Preview
  • HTML
              
                <!-- Circle -->
                <div class="js-circle"
                     data-hs-circles-options='{
                       "value": 54,
                       "maxValue": 100,
                       "duration": 2000,
                       "isViewportInit": true,
                       "colors": ["rgba(30, 32, 34, 0.1)", "#1e2022"],
                       "radius": 50,
                       "width": 4,
                       "additionalText": "",
                       "textFontSize": 26,
                       "textClass": "circles-chart-content",
                       "textColor": "#1e2022"
                     }'></div>
                <!-- End Circle -->
              
            

Text class

Use "secondaryText": "" to add a secondary text.

  • Preview
  • HTML
              
                <!-- Circle -->
                <div class="js-circle"
                     data-hs-circles-options='{
                       "value": 10,
                       "maxValue": 100,
                       "duration": 2000,
                       "isViewportInit": true,
                       "fgStrokeLinecap": "round",
                       "fgStrokeMiterlimit": "10",
                       "colors": ["rgba(55, 125, 255, 0.1)", "#377dff"],
                       "radius": 50,
                       "width": 6,
                       "additionalText": "",
                       "textClass": "circles-chart-content",
                       "textColor": "#377dff",
                       "textFontSize": 32,
                       "secondaryText": "some text",
                       "secondaryTextColor": "#77838f",
                       "secondaryTextFontSize": "13",
                       "secondaryTextFontWeight": "400",
                       "dividerSpace": "10"
                     }'></div>
                <!-- End Circle -->
              
            

Colors

An array of colors. Add any color code "colors": ["rgba(55, 125, 255, 0.1)", "#377dff"] to change the appearance of a circle.

  • Preview
  • HTML
              
                <!-- Circle -->
                <div class="js-circle"
                     data-hs-circles-options='{
                       "value": 54,
                       "maxValue": 100,
                       "duration": 2000,
                       "isViewportInit": true,
                       "colors": ["rgba(55, 125, 255, 0.1)", "#377dff"],
                       "radius": 50,
                       "width": 4,
                       "additionalText": "",
                       "textFontSize": 26,
                       "textClass": "circles-chart-content",
                       "textColor": "#377dff"
                     }'></div>
                  <!-- End Circle -->

                  <!-- Circle -->
                  <div class="js-circle"
                     data-hs-circles-options='{
                       "value": 54,
                       "maxValue": 100,
                       "duration": 2000,
                       "isViewportInit": true,
                       "colors": ["rgba(0, 201, 167, 0.1)", "#00c9a7"],
                       "radius": 50,
                       "width": 4,
                       "additionalText": "",
                       "textFontSize": 26,
                       "textClass": "circles-chart-content",
                       "textColor": "#00c9a7"
                     }'></div>
                  <!-- End Circle -->

                  <!-- Circle -->
                  <div class="js-circle"
                     data-hs-circles-options='{
                       "value": 54,
                       "maxValue": 100,
                       "duration": 2000,
                       "isViewportInit": true,
                       "colors": ["rgba(0, 223, 252, 0.1)", "#00dffc"],
                       "radius": 50,
                       "width": 4,
                       "additionalText": "",
                       "textFontSize": 26,
                       "textClass": "circles-chart-content",
                       "textColor": "#00dffc"
                     }'></div>
                  <!-- End Circle -->

                  <!-- Circle -->
                  <div class="js-circle"
                     data-hs-circles-options='{
                       "value": 54,
                       "maxValue": 100,
                       "duration": 2000,
                       "isViewportInit": true,
                       "colors": ["rgba(255, 193, 7, 0.1)", "#ffc107"],
                       "radius": 50,
                       "width": 4,
                       "additionalText": "",
                       "textFontSize": 26,
                       "textClass": "circles-chart-content",
                       "textColor": "#ffc107"
                     }'></div>
                  <!-- End Circle -->

                  <!-- Circle -->
                  <div class="js-circle"
                     data-hs-circles-options='{
                       "value": 54,
                       "maxValue": 100,
                       "duration": 2000,
                       "isViewportInit": true,
                       "colors": ["rgba(222, 68, 55, 0.1)", "#de4437"],
                       "radius": 50,
                       "width": 4,
                       "additionalText": "",
                       "textFontSize": 26,
                       "textClass": "circles-chart-content",
                       "textColor": "#de4437"
                     }'></div>
                  <!-- End Circle -->

                  <!-- Circle -->
                  <div class="js-circle"
                     data-hs-circles-options='{
                       "value": 54,
                       "maxValue": 100,
                       "duration": 2000,
                       "isViewportInit": true,
                       "colors": ["rgba(30, 32, 34, 0.1)", "#1e2022"],
                       "radius": 50,
                       "width": 4,
                       "additionalText": "",
                       "textFontSize": 26,
                       "textClass": "circles-chart-content",
                       "textColor": "#1e2022"
                     }'></div>
                  <!-- End Circle -->

                  <!-- Circle -->
                  <div class="js-circle"
                     data-hs-circles-options='{
                       "value": 54,
                       "maxValue": 100,
                       "duration": 2000,
                       "isViewportInit": true,
                       "colors": ["rgba(119, 131, 143, 0.1)", "#77838f"],
                       "radius": 50,
                       "width": 4,
                       "additionalText": "",
                       "textFontSize": 26,
                       "textClass": "circles-chart-content",
                       "textColor": "#77838f"
                     }'></div>
                  <!-- End Circle -->

                  <!-- Circle -->
                  <div class="js-circle"
                     data-hs-circles-options='{
                       "value": 54,
                       "maxValue": 100,
                       "duration": 2000,
                       "isViewportInit": true,
                       "colors": ["rgba(255, 255, 255, 0.1)", "#ffffff"],
                       "radius": 50,
                       "width": 4,
                       "additionalText": "",
                       "textFontSize": 26,
                       "textClass": "circles-chart-content",
                       "textColor": "#ffffff"
                     }'></div>
                  <!-- End Circle -->
              
            

Size

Fancy larger or smaller circles? Control them with "radius":

  • Preview
  • HTML
              
                <!-- Circle -->
                <div class="js-circle"
                     data-hs-circles-options='{
                       "value": 54,
                       "maxValue": 100,
                       "duration": 2000,
                       "isViewportInit": true,
                       "colors": ["rgba(55, 125, 255, 0.1)", "#377dff"],
                       "radius": 80,
                       "width": 4,
                       "textFontSize": 40,
                       "textFontWeight": 700,
                       "additionalText": "",
                       "textClass": "circles-chart-content",
                       "textColor": "#377dff"
                     }'></div>
                <!-- End Circle -->

                <!-- Circle -->
                <div class="js-circle"
                     data-hs-circles-options='{
                       "value": 54,
                       "maxValue": 100,
                       "duration": 2000,
                       "isViewportInit": true,
                       "colors": ["rgba(55, 125, 255, 0.1)", "#377dff"],
                       "radius": 60,
                       "width": 4,
                       "textFontSize": 28,
                       "additionalText": "",
                       "textClass": "circles-chart-content",
                       "textColor": "#377dff"
                     }'></div>
                <!-- End Circle -->

                <!-- Circle -->
                <div class="js-circle"
                     data-hs-circles-options='{
                       "value": 54,
                       "maxValue": 100,
                       "duration": 2000,
                       "isViewportInit": true,
                       "colors": ["rgba(55, 125, 255, 0.1)", "#377dff"],
                       "radius": 40,
                       "width": 4,
                       "textFontSize": 22,
                       "additionalText": "",
                       "textClass": "circles-chart-content",
                       "textColor": "#377dff"
                     }'></div>
                <!-- End Circle -->

                <!-- Circle -->
                <div class="js-circle"
                     data-hs-circles-options='{
                       "value": 54,
                       "maxValue": 100,
                       "duration": 2000,
                       "isViewportInit": true,
                       "colors": ["rgba(55, 125, 255, 0.1)", "#377dff"],
                       "radius": 30,
                       "width": 4,
                       "textFontSize": 16,
                       "additionalText": "",
                       "textClass": "circles-chart-content",
                       "textColor": "#377dff"
                     }'></div>
                <!-- End Circle -->
              
            

Stroke width

Adjusted with of a ring with "width":

  • Preview
  • HTML
              
                <!-- Circle -->
                <div class="js-circle"
                     data-hs-circles-options='{
                       "value": 54,
                       "maxValue": 100,
                       "duration": 2000,
                       "isViewportInit": true,
                       "colors": ["rgba(55, 125, 255, 0.1)", "#377dff"],
                       "radius": 50,
                       "width": 1,
                       "textFontSize": 22,
                       "additionalText": "",
                       "textClass": "circles-chart-content",
                       "textColor": "#377dff"
                     }'></div>
                  <!-- End Circle -->

                  <!-- Circle -->
                  <div class="js-circle"
                     data-hs-circles-options='{
                       "value": 54,
                       "maxValue": 100,
                       "duration": 2000,
                       "isViewportInit": true,
                       "colors": ["rgba(55, 125, 255, 0.1)", "#377dff"],
                       "radius": 50,
                       "width": 3,
                       "textFontSize": 22,
                       "additionalText": "",
                       "textClass": "circles-chart-content",
                       "textColor": "#377dff"
                     }'></div>
                  <!-- End Circle -->

                  <!-- Circle -->
                  <div class="js-circle"
                     data-hs-circles-options='{
                       "value": 54,
                       "maxValue": 100,
                       "duration": 2000,
                       "isViewportInit": true,
                       "colors": ["rgba(55, 125, 255, 0.1)", "#377dff"],
                       "radius": 50,
                       "width": 6,
                       "textFontSize": 22,
                       "additionalText": "",
                       "textClass": "circles-chart-content",
                       "textColor": "#377dff"
                     }'></div>
                  <!-- End Circle -->

                  <!-- Circle -->
                  <div class="js-circle"
                     data-hs-circles-options='{
                       "value": 54,
                       "maxValue": 100,
                       "duration": 2000,
                       "isViewportInit": true,
                       "colors": ["rgba(55, 125, 255, 0.1)", "#377dff"],
                       "radius": 50,
                       "width": 10,
                       "textFontSize": 22,
                       "additionalText": "",
                       "textClass": "circles-chart-content",
                       "textColor": "#377dff"
                     }'></div>
                  <!-- End Circle -->

                  <!-- Circle -->
                  <div class="js-circle"
                     data-hs-circles-options='{
                       "value": 54,
                       "maxValue": 100,
                       "duration": 2000,
                       "isViewportInit": true,
                       "colors": ["rgba(55, 125, 255, 0.1)", "#377dff"],
                       "radius": 50,
                       "width": 16,
                       "textFontSize": 22,
                       "additionalText": "",
                       "textClass": "circles-chart-content",
                       "textColor": "#377dff"
                     }'></div>
                  <!-- End Circle -->
              
            

Stroke linecap

The stroke-linecap attribute is a presentation attribute defining the shape to be used at the end of open subpaths when they are stroked.

  • Preview
  • HTML
              
                <!-- Circle -->
                <div class="js-circle"
                     data-hs-circles-options='{
                       "value": 54,
                       "maxValue": 100,
                       "duration": 2000,
                       "isViewportInit": true,
                       "colors": ["rgba(55, 125, 255, 0.1)", "#377dff"],
                       "radius": 60,
                       "width": 6,
                       "textFontSize": 22,
                       "fgStrokeLinecap": "square",
                       "additionalText": "",
                       "textClass": "circles-chart-content",
                       "textColor": "#377dff"
                     }'></div>
                  <!-- End Circle -->

                  <!-- Circle -->
                  <div class="js-circle"
                     data-hs-circles-options='{
                       "value": 54,
                       "maxValue": 100,
                       "duration": 2000,
                       "isViewportInit": true,
                       "colors": ["rgba(55, 125, 255, 0.1)", "#377dff"],
                       "radius": 60,
                       "width": 6,
                       "textFontSize": 22,
                       "fgStrokeLinecap": "round",
                       "additionalText": "",
                       "textClass": "circles-chart-content",
                       "textColor": "#377dff"
                     }'></div>
                  <!-- End Circle -->
              
            

Max value

Returns the max value of a circle.

  • Preview
  • HTML
              
                <!-- Circle -->
                <div class="js-circle"
                     data-hs-circles-options='{
                       "value": 17,
                       "maxValue": 25,
                       "duration": 2000,
                       "isViewportInit": true,
                       "colors": ["rgba(55, 125, 255, 0.1)", "#377dff"],
                       "radius": 60,
                       "width": 6,
                       "textFontSize": 22,
                       "additionalText": "",
                       "textClass": "circles-chart-content",
                       "textColor": "#377dff"
                     }'></div>
                  <!-- End Circle -->

                  <!-- Circle -->
                  <div class="js-circle"
                     data-hs-circles-options='{
                       "value": 29,
                       "maxValue": 50,
                       "duration": 2000,
                       "isViewportInit": true,
                       "colors": ["rgba(55, 125, 255, 0.1)", "#377dff"],
                       "radius": 60,
                       "width": 6,
                       "textFontSize": 22,
                       "additionalText": "",
                       "textClass": "circles-chart-content",
                       "textColor": "#377dff"
                     }'></div>
                  <!-- End Circle -->
              
            

Type

Any unit measurements or icons can be used to demonstrate the stats. Use "type": "" to show texts or numbers, or use "type": "iconic", "icon": "<i class=\"far fa-bell\"></i>", for icons.

  • Preview
  • HTML
              
                <!-- Circle -->
                <div class="js-circle"
                     data-hs-circles-options='{
                       "value": 54,
                       "maxValue": 100,
                       "duration": 2000,
                       "isViewportInit": true,
                       "colors": ["rgba(55, 125, 255, 0.1)", "#377dff"],
                       "radius": 60,
                       "width": 6,
                       "textFontSize": 22,
                       "type": "iconic",
                       "icon": "<i class=\"tio-notifications-on-outlined\"></i>",
                       "textClass": "circles-chart-content",
                       "textColor": "#377dff"
                     }'></div>
                  <!-- End Circle -->

                  <!-- Circle -->
                  <div class="js-circle"
                     data-hs-circles-options='{
                       "value": 54,
                       "maxValue": 100,
                       "duration": 2000,
                       "isViewportInit": true,
                       "colors": ["rgba(55, 125, 255, 0.1)", "#377dff"],
                       "radius": 60,
                       "width": 6,
                       "textFontSize": 22,
                       "additionalText": "%",
                       "textClass": "circles-chart-content",
                       "textColor": "#377dff"
                     }'></div>
                  <!-- End Circle -->

                  <!-- Circle -->
                  <div class="js-circle"
                     data-hs-circles-options='{
                       "value": 54,
                       "maxValue": 100,
                       "duration": 2000,
                       "isViewportInit": true,
                       "colors": ["rgba(55, 125, 255, 0.1)", "#377dff"],
                       "radius": 60,
                       "width": 6,
                       "textFontSize": 22,
                       "additionalText": "k",
                       "textClass": "circles-chart-content",
                       "textColor": "#377dff"
                     }'></div>
                  <!-- End Circle -->
              
            

Animation speed

Value in ms of animation's duration. For example, "duration": 500

  • Preview
  • HTML
              
                <!-- Circle -->
                <div class="js-circle"
                     data-hs-circles-options='{
                       "value": 54,
                       "maxValue": 100,
                       "duration": 500,
                       "isViewportInit": true,
                       "colors": ["rgba(55, 125, 255, 0.1)", "#377dff"],
                       "radius": 60,
                       "width": 6,
                       "textFontSize": 22,
                       "additionalText": "",
                       "textClass": "circles-chart-content",
                       "textColor": "#377dff"
                     }'></div>
                  <!-- End Circle -->

                  <!-- Circle -->
                  <div class="js-circle"
                     data-hs-circles-options='{
                       "value": 54,
                       "maxValue": 100,
                       "duration": 2000,
                       "isViewportInit": true,
                       "colors": ["rgba(55, 125, 255, 0.1)", "#377dff"],
                       "radius": 60,
                       "width": 6,
                       "textFontSize": 22,
                       "additionalText": "",
                       "textClass": "circles-chart-content",
                       "textColor": "#377dff"
                     }'></div>
                  <!-- End Circle -->

                  <!-- Circle -->
                  <div class="js-circle"
                     data-hs-circles-options='{
                       "value": 54,
                       "maxValue": 100,
                       "duration": 5000,
                       "isViewportInit": true,
                       "colors": ["rgba(55, 125, 255, 0.1)", "#377dff"],
                       "radius": 60,
                       "width": 6,
                       "textFontSize": 22,
                       "additionalText": "",
                       "textClass": "circles-chart-content",
                       "textColor": "#377dff"
                     }'></div>
                  <!-- End Circle -->
              
            

Additional text

Additional texts are useful to describe/highlight the main values and they can be added to the value either after, like this:

  • Preview
  • HTML
              
                <!-- Circle -->
                <div class="js-circle"
                     data-hs-circles-options='{
                       "value": 25,
                       "maxValue": 100,
                       "duration": 2000,
                       "isViewportInit": true,
                       "colors": ["rgba(55, 125, 255, 0.1)", "#377dff"],
                       "radius": 80,
                       "width": 6,
                       "fgStrokeLinecap": "round",
                       "additionalText": " Top",
                       "textFontSize": 24,
                       "textClass": "circles-chart-content",
                       "textColor": "#377dff"
                     }'></div>
                  <!-- End Circle -->
              
            

Or before the value, like this: "additionalTextType": "prefix" should be added to put the additional text before the value.

  • Preview
  • HTML
              
                <!-- Circle -->
                <div class="js-circle"
                     data-hs-circles-options='{
                       "value": 70,
                       "maxValue": 100,
                       "duration": 2000,
                       "isViewportInit": true,
                       "colors": ["rgba(55, 125, 255, 0.1)", "#377dff"],
                       "radius": 80,
                       "width": 6,
                       "fgStrokeLinecap": "round",
                       "additionalText": " Top ",
                       "additionalTextType": "prefix",
                       "textFontSize": 24,
                       "textClass": "circles-chart-content",
                       "textColor": "#377dff"
                     }'></div>
                  <!-- End Circle -->
              
            

Control additional text size with "textFontSize":

  • Preview
  • HTML
              
                <!-- Circle -->
                <div class="js-circle"
                     data-hs-circles-options='{
                       "value": 10,
                       "maxValue": 100,
                       "duration": 2000,
                       "isViewportInit": true,
                       "colors": ["rgba(55, 125, 255, 0.1)", "#377dff"],
                       "radius": 80,
                       "width": 6,
                       "fgStrokeLinecap": "round",
                       "additionalText": " Top ",
                       "additionalTextType": "prefix",
                       "textFontSize": 10,
                       "textClass": "circles-chart-content",
                       "textColor": "#377dff"
                     }'></div>
                  <!-- End Circle -->

                  <!-- Circle -->
                  <div class="js-circle"
                     data-hs-circles-options='{
                       "value": 10,
                       "maxValue": 100,
                       "duration": 2000,
                       "isViewportInit": true,
                       "colors": ["rgba(55, 125, 255, 0.1)", "#377dff"],
                       "radius": 80,
                       "width": 6,
                       "fgStrokeLinecap": "round",
                       "additionalText": " Top ",
                       "additionalTextType": "prefix",
                       "textFontSize": 16,
                       "textClass": "circles-chart-content",
                       "textColor": "#377dff"
                     }'></div>
                  <!-- End Circle -->

                  <!-- Circle -->
                  <div class="js-circle"
                     data-hs-circles-options='{
                       "value": 10,
                       "maxValue": 100,
                       "duration": 2000,
                       "isViewportInit": true,
                       "colors": ["rgba(55, 125, 255, 0.1)", "#377dff"],
                       "radius": 80,
                       "width": 6,
                       "fgStrokeLinecap": "round",
                       "additionalText": " Top ",
                       "additionalTextType": "prefix",
                       "textFontSize": 22,
                       "textClass": "circles-chart-content",
                       "textColor": "#377dff"
                     }'></div>
                  <!-- End Circle -->

                  <!-- Circle -->
                  <div class="js-circle"
                     data-hs-circles-options='{
                       "value": 10,
                       "maxValue": 100,
                       "duration": 2000,
                       "isViewportInit": true,
                       "colors": ["rgba(55, 125, 255, 0.1)", "#377dff"],
                       "radius": 80,
                       "width": 6,
                       "fgStrokeLinecap": "round",
                       "additionalText": " Top ",
                       "additionalTextType": "prefix",
                       "textFontSize": 32,
                       "textClass": "circles-chart-content",
                       "textColor": "#377dff"
                     }'></div>
                  <!-- End Circle -->
              
            

Control text font weight with "textFontWeight":

  • Preview
  • HTML
              
                <!-- Circle -->
                <div class="js-circle"
                     data-hs-circles-options='{
                       "value": 10,
                       "maxValue": 100,
                       "duration": 2000,
                       "isViewportInit": true,
                       "colors": ["rgba(55, 125, 255, 0.1)", "#377dff"],
                       "radius": 80,
                       "width": 6,
                       "fgStrokeLinecap": "round",
                       "additionalText": " Top ",
                       "additionalTextType": "prefix",
                       "textFontSize": 32,
                       "textFontWeight": 400,
                       "textClass": "circles-chart-content",
                       "textColor": "#377dff"
                     }'></div>
                  <!-- End Circle -->

                  <!-- Circle -->
                  <div class="js-circle"
                     data-hs-circles-options='{
                       "value": 10,
                       "maxValue": 100,
                       "duration": 2000,
                       "isViewportInit": true,
                       "colors": ["rgba(55, 125, 255, 0.1)", "#377dff"],
                       "radius": 80,
                       "width": 6,
                       "fgStrokeLinecap": "round",
                       "additionalText": " Top ",
                       "additionalTextType": "prefix",
                       "textFontSize": 32,
                       "textFontWeight": 600,
                       "textClass": "circles-chart-content",
                       "textColor": "#377dff"
                     }'></div>
                  <!-- End Circle -->
              
            

Hide value

Hide the value of a circle to make the additional text main value via "isHideValue": true

  • Preview
  • HTML
              
                <!-- Circle -->
                <div class="js-circle"
                     data-hs-circles-options='{
                       "value": 10,
                       "maxValue": 100,
                       "duration": 2000,
                       "isViewportInit": true,
                       "colors": ["rgba(55, 125, 255, 0.1)", "#377dff"],
                       "radius": 80,
                       "width": 6,
                       "fgStrokeLinecap": "round",
                       "isHideValue": true,
                       "additionalText": "Tripling",
                       "additionalTextType": "prefix",
                       "textFontSize": 22,
                       "textFontWeight": 300,
                       "textClass": "circles-chart-content",
                       "textColor": "#377dff"
                     }'></div>
                  <!-- End Circle -->
              
            

Methods

Parameters Description Default value

radius

The radius of the circles. 80

duration

Value in ms of animation's duration; defaults to 500; if 0 or null is passed, the animation will not run. 1000

wrpClass

Class name to apply on the generated element wrapping the whole circle. 'circles-wrap'

colors

An array of colors, with the first item coloring the full circle (optional, it will be ['#EEE', '#F00'] if not specified). ["#377dff", "#e7eaf3"]

isHideValue

Hides the animated value of the graph. false

dividerSpace

Distance between main and secondary texts. null

fgStrokeLinecap

The stroke-linecap attribute is a presentation attribute defining the shape to be used at the end of open subpaths when they are stroked. Available values:
  • square
  • round
  • butt
null

fgStrokeMiterlimit

The stroke-miterlimit attribute is a presentation attribute defining a limit on the ratio of the miter length to the stroke-width used to draw a miter join. When the limit is exceeded, the join is converted from a miter to a bevel. null

additionalTextType

additionalTextType - if the value is "prefix", then the value of the additionalText parameter will be displayed before the numerical value of the chart, otherwise after that. null

additionalText

Postfix/prefix that is added to the numeric value of the graph. null

textFontSize

Font size of the numerical value of the graph. null

textFontWeight

Font weight of the numerical value of the graph. null

textColor

Graph numerical color. null

secondaryText

Text helper displayed below the numerical value of the graph. null

secondaryTextFontWeight

Font weight of the text helper. null

secondaryTextFontSize

Font size of the text helper. null

secondaryTextColor

Color of the text helper. null