Skip to content

Commit

Permalink
[ML] Add columns not aligned, % formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
qn895 committed Jan 20, 2021
1 parent 33ac1e8 commit 9632ad8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
}
}
.mlDataVisualizerSummaryTableWrapper {
max-width: 350px;
max-width: 300px;
}
.mlDataVisualizerMapWrapper {
min-height: 300px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { i18n } from '@kbn/i18n';
import { EuiBasicTable, EuiFlexItem } from '@elastic/eui';
import { ExpandedRowFieldHeader } from '../expanded_row_field_header';
import { FieldDataRowProps } from '../../types';
import { roundToDecimalPlace } from '../../../../formatters/round_to_decimal_place';

const metaTableColumns = [
{
Expand Down Expand Up @@ -59,7 +60,7 @@ export const DocumentStatsTable: FC<FieldDataRowProps> = ({ config }) => {
defaultMessage="percentage"
/>
),
value: `${(count / sampleCount) * 100}%`,
value: `${roundToDecimalPlace((count / sampleCount) * 100)}%`,
},
{
function: 'distinctValues',
Expand Down

0 comments on commit 9632ad8

Please sign in to comment.