Files
superset2/superset-frontend/plugins/plugin-chart-table
rusackasandClaude Opus 4.8 a8b320f33e fix(plugin-chart-table): apply the fallback comparison-arrow color via inline style
The new regression test's `toHaveStyle` assertion on the arrow span kept
failing in CI (rgb(0, 0, 0) instead of the expected success color) even
after wrapping the render in ThemeProvider. The `css` prop on a plain DOM
element only compiles to an actual style when the build wires up emotion's
JSX pragma (importSource: '@emotion/react'), which webpack.config.js does
but this package's Jest/Babel config does not -- so `<span css={...}>` was
rendering a literal, useless `css="[object Object]"` DOM attribute under
Jest, silently defeating the assertion (and any future one like it).

Switches the arrow's color/margin to a plain inline `style` object, which
works identically under both webpack and Jest.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-25 23:10:15 -07:00
..

@superset-ui/plugin-chart-table

Version Libraries.io

This plugin provides Table chart for Superset.

Usage

Configure key, which can be any string, and register the plugin. This key will be used to lookup this chart throughout the app.

import TableChartPlugin from '@superset-ui/plugin-chart-table';

new TableChartPlugin().configure({ key: 'table' }).register();

Then use it via SuperChart. See storybook for more details.

<SuperChart
  chartType="table"
  width={600}
  height={600}
  formData={...}
  queriesData={[{
    data: {...},
  }]}
/>