From a40ac23665a7999caeb297d27cc514a4ffd1afd7 Mon Sep 17 00:00:00 2001 From: namnguyen Date: Fri, 14 Jun 2024 03:41:20 +0700 Subject: [PATCH 01/20] adding color-map property to Metric --- doc/gui/examples/controls/metric-color-map.py | 33 +++++++++++++++++++ .../taipy-gui/src/components/Taipy/Metric.tsx | 14 ++++++-- taipy/gui/_renderers/factory.py | 1 + taipy/gui/viselements.json | 5 +++ 4 files changed, 51 insertions(+), 2 deletions(-) create mode 100644 doc/gui/examples/controls/metric-color-map.py diff --git a/doc/gui/examples/controls/metric-color-map.py b/doc/gui/examples/controls/metric-color-map.py new file mode 100644 index 0000000000..9c16584fe1 --- /dev/null +++ b/doc/gui/examples/controls/metric-color-map.py @@ -0,0 +1,33 @@ +# Copyright 2021-2024 Avaiga Private Limited +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on +# an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. +# ----------------------------------------------------------------------------------------- +# To execute this script, make sure that the taipy-gui package is installed in your +# Python environment and run: +# python