Skip to content

Commit 1230e3d

Browse files
authored
Improve Explorer page: dimension grouping, compatible metric highlighting, resizable panes (#1896)
* Set up grouping of dimensions by node and paths * Fix a few small issues * Add support for highlighting metrics that are compatible with the selected dimensions * Fix transparency of tooltip * Clean up styling * Rename Explore to Explorer
1 parent d3c1965 commit 1230e3d

File tree

9 files changed

+936
-388
lines changed

9 files changed

+936
-388
lines changed

datajunction-ui/src/app/pages/QueryPlannerPage/ResultsView.jsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ function detectChartConfig(columns, rows) {
125125
return null;
126126
}
127127

128-
const MAX_GROUP_VALUES = 7;
128+
const MAX_GROUP_VALUES = 50;
129129

130130
function buildPivotedData(rows, columns, xCol, groupByCol, metricCols) {
131131
const xIdx = xCol.idx;
@@ -234,6 +234,7 @@ function KpiCards({ rows, metricCols }) {
234234
const CHART_MARGIN = { top: 8, right: 24, left: 8, bottom: 40 };
235235
const AXIS_TICK = { fontSize: 11, fill: '#64748b' };
236236
const TOOLTIP_STYLE = { fontSize: 12, border: '1px solid #e2e8f0' };
237+
const TOOLTIP_WRAPPER_STYLE = { zIndex: 9999 };
237238

238239
const Chart = memo(function Chart({
239240
type,
@@ -262,7 +263,10 @@ const Chart = memo(function Chart({
262263
interval={xInterval}
263264
/>
264265
<YAxis tickFormatter={formatYAxis} tick={AXIS_TICK} width={60} />
265-
<Tooltip contentStyle={TOOLTIP_STYLE} />
266+
<Tooltip
267+
contentStyle={TOOLTIP_STYLE}
268+
wrapperStyle={TOOLTIP_WRAPPER_STYLE}
269+
/>
266270
{keys.map((key, i) => (
267271
<Line
268272
key={key}

0 commit comments

Comments
 (0)