Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HPCC-30384 ECL Watch fix Data Patterns results last rows illegible #18000

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
220 changes: 110 additions & 110 deletions esp/src/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 13 additions & 13 deletions esp/src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,20 @@
"@fluentui/react-experiments": "8.14.95",
"@fluentui/react-hooks": "8.6.29",
"@fluentui/react-icons-mdl2": "1.3.47",
"@hpcc-js/chart": "2.81.7",
"@hpcc-js/codemirror": "2.60.12",
"@hpcc-js/common": "2.71.12",
"@hpcc-js/comms": "2.84.4",
"@hpcc-js/chart": "2.81.8",
"@hpcc-js/codemirror": "2.60.13",
"@hpcc-js/common": "2.71.13",
"@hpcc-js/comms": "2.84.5",
"@hpcc-js/dataflow": "8.1.6",
"@hpcc-js/eclwatch": "2.73.27",
"@hpcc-js/graph": "2.85.8",
"@hpcc-js/html": "2.42.13",
"@hpcc-js/layout": "2.49.12",
"@hpcc-js/map": "2.77.11",
"@hpcc-js/other": "2.15.12",
"@hpcc-js/phosphor": "2.16.12",
"@hpcc-js/react": "2.53.9",
"@hpcc-js/tree": "2.40.12",
"@hpcc-js/eclwatch": "2.73.29",
"@hpcc-js/graph": "2.85.9",
"@hpcc-js/html": "2.42.14",
"@hpcc-js/layout": "2.49.13",
"@hpcc-js/map": "2.77.12",
"@hpcc-js/other": "2.15.13",
"@hpcc-js/phosphor": "2.16.13",
"@hpcc-js/react": "2.53.10",
"@hpcc-js/tree": "2.40.13",
"@hpcc-js/util": "2.50.6",
"@kubernetes/client-node": "0.18.1",
"clipboard": "2.0.11",
Expand Down
15 changes: 11 additions & 4 deletions esp/src/src/DataPatterns/PopularPatterns.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { BreakdownTable } from "@hpcc-js/html";
import { config } from "./config";

const maxRowCount = 64;

export class PopularPatterns extends BreakdownTable {
constructor(rows, showTitle: boolean = true) {
super();
Expand All @@ -25,10 +27,15 @@ export class PopularPatterns extends BreakdownTable {
"font-weight": "normal",
"text-align": "right"
}])
.data(rows.map(row => [
row.data_pattern.trim(),
row.rec_count
]))
.useCalculatedRowCount(false)
.rowCount(6)
.data(rows
.filter((row, idx) => idx < maxRowCount)
.map(row => [
row.data_pattern.trim(),
row.rec_count
])
)
;
}
}
Loading