From 6f98f6b781cc8458513a1d74014d6841e53b8930 Mon Sep 17 00:00:00 2001 From: vargburz Date: Wed, 20 Jan 2021 18:27:49 +0300 Subject: [PATCH] update circles with and add min value --- examples/01-basic.html | 6 ++++-- src/index.ts | 36 ++++++++++++++++++++++++++++++------ src/types.ts | 1 + 3 files changed, 35 insertions(+), 8 deletions(-) diff --git a/examples/01-basic.html b/examples/01-basic.html index c68bb45..4d89050 100644 --- a/examples/01-basic.html +++ b/examples/01-basic.html @@ -17,14 +17,16 @@ stops: [ { color: 'green', - value: 10 + value: 20 }, { color: 'orange', value: 30 } ], - defaultColor: 'red' + defaultColor: 'red', + maxValue: 40, + minValue: 10 } ); pod.render(); diff --git a/src/index.ts b/src/index.ts index d934e9c..9e7d66b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -120,9 +120,11 @@ export class ChartwerkGaugePod extends ChartwerkPod