Skip to content

Commit

Permalink
Update from feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
wylieconlon committed May 6, 2020
1 parent 666f28e commit 1ee6820
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ export function PieComponent(
return String(d);
},
fillLabel:
isDarkMode && shape === 'treemap' && layerIndex < columnGroups.length - 1
isDarkMode &&
shape === 'treemap' &&
layerIndex < columnGroups.length - 1 &&
categoryDisplay !== 'hide'
? { ...fillLabel, textColor: euiDarkVars.euiTextColor }
: fillLabel,
shape: {
Expand Down Expand Up @@ -252,6 +255,7 @@ export function PieComponent(
valueFormatter={(d: number) => (hideLabels ? '' : formatters[metricColumn.id].convert(d))}
layers={layers}
config={config}
topGroove={hideLabels || categoryDisplay === 'hide' ? 0 : undefined}
/>
</Chart>
</VisualizationContainer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const categoryOptionsTreemap: Array<{
{
value: 'default',
inputDisplay: i18n.translate('xpack.lens.pieChart.showTreemapCategoriesLabel', {
defaultMessage: 'Show',
defaultMessage: 'Show labels',
}),
},
{
Expand Down

0 comments on commit 1ee6820

Please sign in to comment.