Skip to content

Commit 17cfd1d

Browse files
committed
[ML] Update legend for multi class total feature importance to look nicer
[ML] Update legend for multi class total feature importance to look nicer
1 parent 4c0abf5 commit 17cfd1d

File tree

1 file changed

+7
-0
lines changed
  • x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_exploration/components/total_feature_importance_summary

1 file changed

+7
-0
lines changed

x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_exploration/components/total_feature_importance_summary/feature_importance_summary.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ const axes: RecursivePartial<AxisStyle> = {
6363
};
6464
const theme: PartialTheme = {
6565
axes,
66+
legend: {
67+
/**
68+
* Added buffer between label and value.
69+
* Smaller values render a more compact legend
70+
*/
71+
spacingBuffer: 100,
72+
},
6673
};
6774

6875
export interface FeatureImportanceSummaryPanelProps {

0 commit comments

Comments
 (0)