[charts] Support color scale #12378
Labels
component: charts
This is the name of the generic UI component, not the React module!
new feature
New feature or request
Introduce a way to map values to colors.
Rechart
Use a trick base on gradient color. We used this trick to create https://mui.com/x/react-charts/areas-demo/#areachartfillbyvalue
NB: During this PR, an idea for demo was to display bar chart with monthly temperature going from blue to red
D3 JS
Ordinal scale to map a finit number of value to a finit number of colors. It's just a maaping from and array of values to an array of hexa
Sequential scales for continuous values. It can map a continuouse range to color interpolation
The best might be to let developers provide the interpolation they want to use, and don't try to reinvent them
Echart
They have a notion of visual Map that map values to visual feature such as symbol, size, or color.
For the Gauge they went with a much simpler solution
But for Heat chart it's what they use: https://echarts.apache.org/examples/en/editor.html?c=heatmap-large
The text was updated successfully, but these errors were encountered: