datajunction-ui 0.0.98 → 0.0.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/app/pages/QueryPlannerPage/ResultsView.jsx +6 -2
- package/src/app/pages/QueryPlannerPage/SelectionPanel.jsx +676 -356
- package/src/app/pages/QueryPlannerPage/__tests__/SelectionPanel.test.jsx +9 -9
- package/src/app/pages/QueryPlannerPage/__tests__/index.test.jsx +5 -3
- package/src/app/pages/QueryPlannerPage/index.jsx +34 -8
- package/src/app/pages/QueryPlannerPage/styles.css +177 -8
- package/src/app/pages/Root/__tests__/index.test.jsx +1 -1
- package/src/app/pages/Root/index.tsx +1 -1
- package/src/app/services/DJService.js +27 -0
package/package.json
CHANGED
|
@@ -125,7 +125,7 @@ function detectChartConfig(columns, rows) {
|
|
|
125
125
|
return null;
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
const MAX_GROUP_VALUES =
|
|
128
|
+
const MAX_GROUP_VALUES = 50;
|
|
129
129
|
|
|
130
130
|
function buildPivotedData(rows, columns, xCol, groupByCol, metricCols) {
|
|
131
131
|
const xIdx = xCol.idx;
|
|
@@ -234,6 +234,7 @@ function KpiCards({ rows, metricCols }) {
|
|
|
234
234
|
const CHART_MARGIN = { top: 8, right: 24, left: 8, bottom: 40 };
|
|
235
235
|
const AXIS_TICK = { fontSize: 11, fill: '#64748b' };
|
|
236
236
|
const TOOLTIP_STYLE = { fontSize: 12, border: '1px solid #e2e8f0' };
|
|
237
|
+
const TOOLTIP_WRAPPER_STYLE = { zIndex: 9999 };
|
|
237
238
|
|
|
238
239
|
const Chart = memo(function Chart({
|
|
239
240
|
type,
|
|
@@ -262,7 +263,10 @@ const Chart = memo(function Chart({
|
|
|
262
263
|
interval={xInterval}
|
|
263
264
|
/>
|
|
264
265
|
<YAxis tickFormatter={formatYAxis} tick={AXIS_TICK} width={60} />
|
|
265
|
-
<Tooltip
|
|
266
|
+
<Tooltip
|
|
267
|
+
contentStyle={TOOLTIP_STYLE}
|
|
268
|
+
wrapperStyle={TOOLTIP_WRAPPER_STYLE}
|
|
269
|
+
/>
|
|
266
270
|
{keys.map((key, i) => (
|
|
267
271
|
<Line
|
|
268
272
|
key={key}
|