Skip to main content
100%

2018: KLASCE: Aankoopadvies Werktijden Liquid Fill Gauge

✓ Published0🌍 Public
MMisunoKitara
Last edited Jan 15, 2019
Created on Jan 15, 2019

The block displays five liquid fill gauges, each visualizing a single percentage value as a circular, animated water-like fill. The example demonstrates a customizable D3.js (v3) SVG component, where each gauge can be independently configured with distinct colors, wave heights, animation speeds, and text styling. The gauges are interactive: clicking any of them triggers a JavaScript update function that randomly changes the displayed value, and the gauge smoothly re-animates to the new percentage. The code relies on the `loadLiquidFillGauge` function and the `liquidFillGaugeDefaultSettings` configuration object to build each gauge using SVG paths and CSS animations.

AI-generated description

Liquid Fill Gauge v1.1 - 7/14/2015

Changes:

  • Added support for updating the gauge value after loading is complete. The loadLiquidFillGauge method now returns an object with an update method which allows the gauge value to be changed. Click any of the gauges above to randomly update their value.

Configurable features include:

  • Changeable min/max values.
  • All colors.
  • Outer circle thickness.
  • Gap between the outer circle and inner fill area.
  • Wave height.
  • Wave speed.
  • Wave count.
  • Wave rise time.
  • Wave height scaling on/off. Reduces the wave height near the min/max values so that the wave won't make the fill area appear total full or totally empty.
  • Wave starting offset. Most useful when wave animation is turned off and you want the wave min or max at a specific horizontal position in the fill area.
  • Wave rising upon load on/off.
  • Wave animation on/off.
  • Text height.
  • Text vertical position.
  • Text increment from min value upon loading.
  • Display of % symbol on/off.

Open source under BSD 2-clause
Copyright (c) 2015, Curtis Bratton
All rights reserved.

forked from <a href='http://bl.ocks.org/MisunoKitara/'>MisunoKitara</a>'s block: <a href='http://bl.ocks.org/MisunoKitara/a1e3bb1dd258c4c8b98c3854fb8740be'>2018: KLASCE: Servicepunt Reactietijden Liquid Fill Gauge</a>

forked from <a href='http://bl.ocks.org/MisunoKitara/'>MisunoKitara</a>'s block: <a href='http://bl.ocks.org/MisunoKitara/3b6fcf1bc09ff8ac0dde638e3395f138'>2018: KLASCE: Servicepunt Werktijden Liquid Fill Gauge</a>

forked from <a href='http://bl.ocks.org/MisunoKitara/'>MisunoKitara</a>'s block: <a href='http://bl.ocks.org/MisunoKitara/61fd2e1525103b2fb6c787310c0c4f16'>2018: KLASCE: Aankoopadvies Reactietijden Liquid Fill Gauge</a>

mit Licensed

Similar vizzes