mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Lens] Use Heat map instead of heatmap (#124531)
* [Lens] Use Heat map instead of heatmap * Fix ci * Fix tests * Fix tests Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
2b753614f4
commit
a57beab8aa
9 changed files with 12 additions and 12 deletions
|
@ -26,7 +26,7 @@ export const getHeatmapVisTypeDefinition = ({
|
|||
title: i18n.translate('visTypeHeatmap.heatmap.heatmapTitle', { defaultMessage: 'Heat map' }),
|
||||
icon: 'heatmap',
|
||||
description: i18n.translate('visTypeHeatmap.heatmap.heatmapDescription', {
|
||||
defaultMessage: 'Shade data in cells in a matrix.',
|
||||
defaultMessage: 'Display values as colors in a matrix.',
|
||||
}),
|
||||
toExpressionAst,
|
||||
getSupportedTriggers: () => [VIS_EVENT_TO_TRIGGER.filter],
|
||||
|
|
|
@ -26,7 +26,7 @@ export const CHART_NAMES = {
|
|||
shapeType: CHART_SHAPES.HEATMAP,
|
||||
icon: HeatmapIcon,
|
||||
label: i18n.translate('xpack.lens.heatmap.heatmapLabel', {
|
||||
defaultMessage: 'Heatmap',
|
||||
defaultMessage: 'Heat map',
|
||||
}),
|
||||
groupLabel,
|
||||
},
|
||||
|
|
|
@ -237,7 +237,7 @@ describe('heatmap suggestions', () => {
|
|||
type: LEGEND_FUNCTION,
|
||||
},
|
||||
},
|
||||
title: 'Heatmap',
|
||||
title: 'Heat map',
|
||||
hide: true,
|
||||
previewIcon: 'empty',
|
||||
score: 0,
|
||||
|
@ -290,7 +290,7 @@ describe('heatmap suggestions', () => {
|
|||
type: LEGEND_FUNCTION,
|
||||
},
|
||||
},
|
||||
title: 'Heatmap',
|
||||
title: 'Heat map',
|
||||
hide: true,
|
||||
previewIcon: 'empty',
|
||||
score: 0.3,
|
||||
|
@ -356,7 +356,7 @@ describe('heatmap suggestions', () => {
|
|||
type: LEGEND_FUNCTION,
|
||||
},
|
||||
},
|
||||
title: 'Heatmap',
|
||||
title: 'Heat map',
|
||||
// Temp hide all suggestions while heatmap is in beta
|
||||
hide: true,
|
||||
previewIcon: 'empty',
|
||||
|
@ -431,7 +431,7 @@ describe('heatmap suggestions', () => {
|
|||
type: LEGEND_FUNCTION,
|
||||
},
|
||||
},
|
||||
title: 'Heatmap',
|
||||
title: 'Heat map',
|
||||
// Temp hide all suggestions while heatmap is in beta
|
||||
hide: true,
|
||||
previewIcon: 'empty',
|
||||
|
|
|
@ -104,7 +104,7 @@ export const getSuggestions: Visualization<HeatmapVisualizationState>['getSugges
|
|||
{
|
||||
state: newState,
|
||||
title: i18n.translate('xpack.lens.heatmap.heatmapLabel', {
|
||||
defaultMessage: 'Heatmap',
|
||||
defaultMessage: 'Heat map',
|
||||
}),
|
||||
// Temp hide all suggestions while heatmap is in beta
|
||||
hide: true || hide,
|
||||
|
|
|
@ -108,7 +108,7 @@ export const getHeatmapVisualization = ({
|
|||
id: 'heatmap',
|
||||
icon: HeatmapIcon,
|
||||
label: i18n.translate('xpack.lens.heatmapVisualization.heatmapLabel', {
|
||||
defaultMessage: 'Heatmap',
|
||||
defaultMessage: 'Heat map',
|
||||
}),
|
||||
groupLabel: groupLabelForHeatmap,
|
||||
showExperimentalBadge: false,
|
||||
|
|
|
@ -255,7 +255,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
|
||||
await PageObjects.lens.waitForVisualization();
|
||||
|
||||
await PageObjects.lens.switchToVisualization('heatmap', 'heatmap');
|
||||
await PageObjects.lens.switchToVisualization('heatmap', 'heat');
|
||||
|
||||
await PageObjects.lens.waitForVisualization();
|
||||
await PageObjects.lens.openDimensionEditor('lnsHeatmap_cellPanel > lns-dimensionTrigger');
|
||||
|
|
|
@ -101,7 +101,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
});
|
||||
|
||||
it('should render heatmap chart', async () => {
|
||||
await PageObjects.lens.switchToVisualization('heatmap', 'heatmap');
|
||||
await PageObjects.lens.switchToVisualization('heatmap', 'heat');
|
||||
await PageObjects.lens.waitForVisualization();
|
||||
const debugState = await PageObjects.lens.getCurrentChartDebugState();
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
});
|
||||
|
||||
it('should render heatmap chart with the temperature palette', async () => {
|
||||
await PageObjects.lens.switchToVisualization('heatmap', 'heatmap');
|
||||
await PageObjects.lens.switchToVisualization('heatmap', 'heat');
|
||||
await PageObjects.lens.waitForVisualization();
|
||||
const debugState = await PageObjects.lens.getCurrentChartDebugState();
|
||||
|
||||
|
|
|
@ -434,7 +434,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
await PageObjects.visualize.navigateToNewVisualization();
|
||||
await PageObjects.visualize.clickVisType('lens');
|
||||
await PageObjects.lens.goToTimeRange();
|
||||
await PageObjects.lens.switchToVisualization('heatmap', 'heatmap');
|
||||
await PageObjects.lens.switchToVisualization('heatmap', 'heat');
|
||||
|
||||
await PageObjects.lens.configureDimension({
|
||||
dimension: 'lnsHeatmap_xDimensionPanel > lns-empty-dimension',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue