Each bar gets a different color from the palette, making color
palette changes immediately visible for all chart configurations.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Typing title text now auto-sets visible=true so the title appears
immediately. Also added a Switch to toggle title visibility.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Use JSON.stringify as useMemo key to detect deep changes in chart
config. Also removed redundant ensureStyle (now handled in Redux).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
All style sub-objects (title, legend, xAxis, yAxis, dataLabel,
background, border, animation) are guaranteed to exist in Redux.
This fixes:
- Style config panels showing blank (returned null for missing fields)
- Style changes not applying (updateStyle now deep-merges sub-objects)
- Color palette changes not persisting
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- ensureStyle: handle empty colors array (use defaults)
- barOptionBuilder: set option.color = style.colors globally
so ECharts auto-assigns palette colors to all series
- Changing palette in style panel now updates chart colors immediately
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
When a field is dragged to the 'label' slot, data labels are
automatically shown on top of each bar with the value.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Dragging a field to the 'color' slot now creates separate colored bars
per category value, with auto-generated legend. Also aggregates
multiple rows per category (sum) instead of taking first match only.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Metric name (column name) as title
- Large formatted number with 万/亿 abbreviation
- Auto-detect 同比/环比 columns, show as colored trend badges
- Group label showing dimension info
- SVG sparkline for trend visualization
- Clean layout matching Tableau/Power BI KPI card patterns
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Root cause: backend returns minimal style object without title/legend/axis
sub-objects, causing TypeError 'Cannot read properties of undefined'.
Fix: normalize style with full defaults at the builder entry point,
protecting ALL chart type builders uniformly.
Also fix antd deprecation warnings (destroyOnClose -> destroyOnHidden).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- DropZone: log actual error message instead of generic text
- KPICard: aggregate all rows, auto-detect 同比/环比 columns,
show proper formatting
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
All 17 chart types now show Chinese names (柱状图, 折线图, 饼图, etc.)
and use specific Ant Design icons instead of generic BarChartOutlined.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
When creating a chart, automatically assign first text column to X axis
and first number column to Y axis (varies by chart type).
Charts now show data immediately instead of blank.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- All 4 API clients now consistently use /api/v1/ prefix on all routes
- ChartRenderer fills missing style fields with defaults to prevent
undefined property crashes when backend returns minimal style
- KPICard uses safe defaults for background/border/title
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
react-grid-layout v2 removed WidthProvider. Use ResizeObserver to
track container width and pass it directly to Responsive component.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- useImportData: use dataset_id instead of id from backend response,
fetch rows after import, fix column type mapping
- useCreateChart: fix bindings mapper to use axis instead of fieldRole,
graceful error handling instead of throwing
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Clicking a chart type card now calls useCreateChart to create
a chart instance on the backend and add it to the canvas.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
WidthProvider is not available during SSR. Use dynamic import
inside useEffect to load it only on the client side.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
FastAPI latest rejects 204 with response body.
Use response_class=Response and return Response(status_code=204).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
pip install from pypi.org times out in China network.
Use https://pypi.tuna.tsinghua.edu.cn/simple for both pip and poetry.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
template-service and export-service used [project]+setuptools format
which is incompatible with poetry install in Dockerfile.
Unified to [tool.poetry] + poetry-core build-backend.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Build stage uses network: host so pip can resolve DNS through host.
Removed version: "3.9" (obsolete warning).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
data-service and chart-service have alembic.ini inside alembic/ dir,
not at service root. Remove the separate COPY line.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Previously excluded due to nested .git from create-next-app.
Includes all Clean Architecture layers, API client integration,
and full UI component suite.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>