Live icon · Progress · 34 styles · free

Bar chart values live icon

A small bar chart with three to five bars whose heights you choose. Set it here, then download it or paste it anywhere.

Showing: 4 · 45% · 75%

Use it in code

Try an example

Set what it shows

Style Line clean outlines

Colour Style colours

On this page

Bar chart values in all 34 styles

Same values, 34 personalities. Pick one to use it above.

For developers

Use it in code

One element, or a React or Vue component, with everything you set above. Change a value after the page loads and it redraws, or moves there with animate.

48 px
  1. Install or skip it: the script tag below loads it from a CDN

    npm i @withicons/dynamic
  2. Your element follows the values, style, colours and size you set

    HTML
    <script src="https://cdn.jsdelivr.net/npm/@withicons/dynamic@latest/dist/cdn/lite.js"></script>
    
    <with-live-icon name="bar-values" bars="4" bar1="0.45" bar2="0.75" bar3="0.55" bar4="1" bar5="0.7" baseline size="48"></with-live-icon>
  3. Change it live from an API, a WebSocket, a timer or a click; with animate it moves to each new value

    Bar 1 height 45% · Bar 2 height 75% · Bar 3 height 55%

    API: fetch() polling

    HTML · API
    <script src="https://cdn.jsdelivr.net/npm/@withicons/dynamic@latest/dist/cdn/lite.js"></script>
    
    <with-live-icon id="bar" name="bar-values" bar1="0.45" bar2="0.75" bar3="0.55" size="48" animate></with-live-icon>
    
    <script>
      const icon = document.getElementById('bar')
      // ask your API now and every 5 seconds. It answers {"bar1": 0.35, "bar2": 0.65, "bar3": 1}
      async function update() {
        try {
          const data = await fetch('/api/bar').then(r => r.json())
          icon.setAttribute('bar1', data.bar1)
          icon.setAttribute('bar2', data.bar2)
          icon.setAttribute('bar3', data.bar3)
        } catch (e) { /* offline: keep the last value */ }
      }
      update()
      setInterval(update, 5000)
    </script>

    Numbers roll, levels ease, clock hands take the short way round and words cross-fade. One change without the attribute: icon.animateTo({ bar1: 0.45, bar2: 0.75, bar3: 0.55 }). Each redraw fires a with-live-render event; with reduced motion, values change at once.

  4. Attributes 7 for this icon, plus the ones every live icon takes

    SettingWhat you can setDefaultAttribute
    Number of barsNumber3 to 54bars
    Bar 1 heightLevel0% to 100%45%bar1
    Bar 2 heightLevel0% to 100%75%bar2
    Bar 3 heightLevel0% to 100%55%bar3
    Bar 4 heightLevel0% to 100%100%bar4
    Bar 5 heightLevel0% to 100%70%bar5
    Show the baselineOn / offon or offonbaseline
    variantany of the 34 styles (default line)
    sizepx or any CSS length (default 24)
    colorthe outline colour (default: the text colour)
    varsstyle colours as JSON: vars='{"glass-pane":"#cde"}'
    animatevalue changes move instead of jumping; animate="900" sets the ms
    labelthe accessible name (default: what it shows); label="" for decoration

Questions

How do I change the number of bars on the bar chart values icon?

Use the controls next to the preview. Number of bars, Bar 1 height, Bar 2 height, Bar 3 height, Bar 4 height, Bar 5 height, and Show the baseline can all be changed, the icon redraws as you go, and the download uses exactly what you see.

Is the bar chart values icon free?

Yes. It is free for personal and commercial use under the MIT license, in all 34 styles. No sign-up, no credit needed.

Can I use it in PowerPoint, Google Slides or Canva?

Yes. Download a PNG (see-through background), an SVG or a ready PowerPoint slide, then drag it into your slide or design. SVG stays sharp at any size.

How do I add it to a website?

Add the @withicons/dynamic script and write <with-live-icon name="bar-values"> with your values as attributes. React and Vue get a LiveIcon component.

Also called

bar chart values mini bar chart column values sparkbars bar graph values histogram values stats bars

Search any of these words to find this icon.

Bar chart values studio

Outline colour