defaultConfig = {
return {
minValue: 0,
maxValue: 100,
circleThickness: 0.05,
circleFillGap: 0.05,
circleColor: "#178BCA",
backgroundColor: null,
waveColor: "#178BCA",
width: 0,
height: 0,
fillWithGradient: false,
gradientPoints: [0, 0, 0, 1],
gradientFromColor: "#FFF",
gradientToColor: "#000",
fillCircleWithGradient: false,
circleGradientPoints: [0, 0, 0, 1],
circleGradientFromColor: "red",
circleGradientToColor: "blue",
waveHeight: 0.05,
waveCount: 1,
waveOffset: 0,
waveRise: true,
waveRiseTime: 1000,
waveRiseAtStart: true,
waveAnimate: true, // Controls if the wave scrolls or is static.
waveAnimateTime: 18000, // The amount of time in milliseconds for a full wave to enter the wave circle.
waveHeightScaling: true, // Controls wave size scaling at low and high fill percentages. When true, wave height reaches it's maximum at 50% fill, and minimum at 0% and 100% fill. This helps to prevent the wave from making the wave circle from appear totally full or empty when near it's minimum or maximum fill.
valueCountUp: true, // If true, the displayed value counts up from 0 to it's final value upon loading and updating. If false, the final value is displayed.
valueCountUpAtStart: true, // If set to false and valueCountUp at true, will disable only the initial animation
// Text
textVertPosition: 0.5, // The height at which to display the percentage text withing the wave circle. 0 = bottom, 1 = top.
textSize: 0.8, // The relative height of the text to display in the wave circle. 1 = 50%
displayUnit: true, // If true, a % symbol is displayed after the value.
unit: "%",
textColor: "#045681", // The color of the value text when the wave does not overlap it.
waveTextColor: "#A4DBf8", // The color of the value text when the wave overlaps it.
}
}