mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
fix(heatmap): add detail descriptions for heatmap 'normalize across' (#20566)
* fix(heatmap): change 'Normalize Across' to 'Color Based On' and add some label * Update superset-frontend/plugins/legacy-plugin-chart-heatmap/src/controlPanel.tsx Co-authored-by: Evan Rusackas <evan@preset.io> * Update superset-frontend/plugins/legacy-plugin-chart-heatmap/src/controlPanel.tsx Co-authored-by: Evan Rusackas <evan@preset.io> * Update superset-frontend/plugins/legacy-plugin-chart-heatmap/src/controlPanel.tsx Co-authored-by: Evan Rusackas <evan@preset.io> * Update superset-frontend/plugins/legacy-plugin-chart-heatmap/src/controlPanel.tsx Co-authored-by: Evan Rusackas <evan@preset.io> * fix lint Co-authored-by: Evan Rusackas <evan@preset.io>
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
import React from 'react';
|
||||
import {
|
||||
FeatureFlag,
|
||||
isFeatureEnabled,
|
||||
@@ -170,10 +171,23 @@ const config: ControlPanelConfig = {
|
||||
['y', 'y'],
|
||||
],
|
||||
default: 'heatmap',
|
||||
description: t(
|
||||
'Color will be rendered based on a ratio ' +
|
||||
'of the cell against the sum of across this ' +
|
||||
'criteria',
|
||||
description: (
|
||||
<>
|
||||
<div>
|
||||
{t(
|
||||
'Color will be shaded based the normalized (0% to 100%) value of a given cell against the other cells in the selected range: ',
|
||||
)}
|
||||
</div>
|
||||
<ul>
|
||||
<li>{t('x: values are normalized within each column')}</li>
|
||||
<li>{t('y: values are normalized within each row')}</li>
|
||||
<li>
|
||||
{t(
|
||||
'heatmap: values are normalized across the entire heatmap',
|
||||
)}
|
||||
</li>
|
||||
</ul>
|
||||
</>
|
||||
),
|
||||
},
|
||||
},
|
||||
Reference in New Issue
Block a user