From the contributor
How to use this sample
Summary
This sample demonstrates how to express percentages in terms of the color shading of a heart displayed in SVG.
number-heart-shading.jsonuses the theme color of the site as the color of the heart.number-heart-shading-custom-coloruses the HTML color code as the the color of the heart, and in the sample,#FF0000is set.number-heart-shading-rainbow-color.jsonuses different colors for each heart, starting from the left heart: purple, blue, green, yellow, and red.

View requirements
This format can be applied to a Number column. It is expected that the values will be from 0 to 1 (percent).
Sample
| Solution | Author(s) |
|---|---|
| number-heart-shading.json | Tetsuya Kawahara |
| number-heart-shading-custom-color.json | Tetsuya Kawahara |
| number-heart-shading-rainbow-color.json | Tetsuya Kawahara |
Version history
| Version | Date | Comments |
|---|---|---|
| 1.0 | February 13, 2022 | Initial release |
Disclaimer
THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
Additional notes
The SVG heart in this sample is based on a sample from the following site.