mirror of
https://github.com/apache/superset.git
synced 2026-05-24 17:25:20 +00:00
Introduce `defineChart()` — a declarative pattern that bundles metadata,
arguments (control-panel config), buildQuery, transform, and render into
a single chart-plugin file. Migrate every chart plugin to this pattern:
* plugin-chart-echarts: Pie, Funnel, Gauge, Sankey, Waterfall,
Histogram, Tree, Bubble, BoxPlot, Sunburst, Radar, Treemap, Graph,
Heatmap, Gantt, BigNumber (Total, WithTrendline, PoP, Glyph demo),
MixedTimeseries, and the Timeseries family (Generic, Scatter,
SmoothLine, Step, Area, Line, Bar)
* legacy-plugin-chart-*: calendar, horizon, chord, country-map,
world-map, paired-t-test, parallel-coordinates, partition, rose,
map-box
* other plugins: handlebars, word-cloud, pivot-table, table,
ag-grid-table, cartodiagram
* legacy-preset-chart-nvd3: Bubble, Bullet, Compare, TimePivot
* legacy-preset-chart-deckgl: Grid, Hex, Polygon, Scatter (single-file
defineChart); Arc, Contour, Geojson, Heatmap, Path, Screengrid kept
on the original multi-file ChartPlugin pattern pending follow-up
Glyph-core lives as @superset-ui/glyph-core (extracted package) and
provides: defineChart, ~14 argument types (Metric, Dimension, Select,
Checkbox, Text, Int, Slider, etc.), reusable presets (ShowLegend,
HeaderFontSize, Subtitle, etc.), cross-filter utilities
(extractCrossFilterProps, createSelectedValuesMap, isDataPointFiltered,
createLabelMap), and visibility-condition helpers
(resolveArgClass, getArgVisibleWhen, evaluateGlyphCondition).
Customize-tab rendering uses a new GlyphOptionsPanel — a native React
renderer that hybrids glyph args with additionalControls, with
inlined sharedControls in the Query section.
Imports are routed through @apache-superset/core subpath entrypoints
(/translation for t, /common for GenericDataType).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
48 lines
1.1 KiB
JSON
48 lines
1.1 KiB
JSON
{
|
|
"name": "@superset-ui/plugin-chart-echarts",
|
|
"version": "0.20.3",
|
|
"description": "Superset Chart - Echarts",
|
|
"keywords": [
|
|
"superset"
|
|
],
|
|
"homepage": "https://github.com/apache/superset/tree/master/superset-frontend/plugins/plugin-chart-echarts#readme",
|
|
"bugs": {
|
|
"url": "https://github.com/apache/superset/issues"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/apache/superset.git",
|
|
"directory": "superset-frontend/plugins/plugin-chart-echarts"
|
|
},
|
|
"license": "Apache-2.0",
|
|
"author": "Superset",
|
|
"sideEffects": false,
|
|
"main": "lib/index.js",
|
|
"module": "esm/index.js",
|
|
"files": [
|
|
"esm",
|
|
"lib"
|
|
],
|
|
"dependencies": {
|
|
"@types/d3-array": "^3.2.2",
|
|
"@types/react-redux": "^7.1.34",
|
|
"acorn": "^8.16.0",
|
|
"d3-array": "^3.2.4",
|
|
"lodash": "^4.18.1",
|
|
"zod": "^4.4.3"
|
|
},
|
|
"peerDependencies": {
|
|
"@apache-superset/core": "*",
|
|
"@superset-ui/chart-controls": "*",
|
|
"@superset-ui/core": "*",
|
|
"@superset-ui/glyph-core": "*",
|
|
"dayjs": "^1.11.19",
|
|
"echarts": "*",
|
|
"memoize-one": "*",
|
|
"react": "^18.2.0"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
}
|
|
}
|