datajunction-ui 0.0.97 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datajunction-ui",
3
- "version": "0.0.97",
3
+ "version": "0.0.99",
4
4
  "description": "DataJunction UI",
5
5
  "module": "src/index.tsx",
6
6
  "repository": {
@@ -125,7 +125,7 @@ function detectChartConfig(columns, rows) {
125
125
  return null;
126
126
  }
127
127
 
128
- const MAX_GROUP_VALUES = 7;
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 contentStyle={TOOLTIP_STYLE} />
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}