dashboardsinteger[] | null
List of dashboard IDs to bind the chart to.
datasource_idintegerобязательный
Dataset ID (from superset_dataset_list).
datasource_typestring
Data source type (default "table" — dataset).
paramsstring | null
JSON string with visualization parameters (depend on viz_type).
Define metrics, groupings, filters, colors, labels, etc.
IMPORTANT — numeric and time formats:
Do NOT use SMART_NUMBER or SMART_DATE — they abbreviate numbers
(1.61k instead of 1610) and show literal text instead of dates.
Use explicit formats:
- y_axis_format: "d" (integers without separators), ",d" (with commas),
",.2f" (decimals)
- number_format: ",d" (for pie chart)
- x_axis_time_format: "%b %Y" (X-axis dates), "%Y-%m-%d" (ISO)
- tooltipTimeFormat: "%Y-%m-%d" or "%Y-%m" (tooltip dates)
- show_value: true (show numbers on bar chart columns)
CRITICAL — date/time format in Superset 6.x:
Superset 6.x uses ONLY D3 time format (strftime syntax).
Do NOT use moment.js format (YYYY-MM-DD) — it will be rendered
as literal text "YYYY-MM-DD" instead of an actual date!
Correct formats (D3/strftime):
- "%Y-%m-%d" -> 2026-03-05 (ISO date)
- "%Y-%m-%d %H:%M" -> 2026-03-05 14:30 (date + time)
- "%d.%m.%Y" -> 05.03.2026 (European format)
- "%b %Y" -> Mar 2026 (month + year)
- "%Y" -> 2026 (year only)
- "%Y-%m" -> 2026-03 (year-month)
INCORRECT formats (moment.js — DO NOT WORK):
- "YYYY-MM-DD" — renders literal "YYYY-MM-DD"
- "DD.MM.YYYY" — renders literal "DD.MM.YYYY"
- "MMM YYYY" — renders literal "MMM YYYY"
Parameters that accept date formats:
- table_timestamp_format (tables)
- x_axis_time_format (X-axis)
- tooltipTimeFormat (tooltip)
- y_axis_format (for big_number_total with date in metric)
big_number_total (KPI cards) — REFERENCE parameters:
- header_font_size: 0.27 (number size, ~53px in a 60px container)
- subheader_font_size: 0.15 (subtitle/label size)
- y_axis_format: "d" (integers without comma separators)
IMPORTANT — scroll in KPI: the big_number_total container has a fixed
height (usually 60px at 2 grid cells). Too large a font causes scrolling.
Culprits: font-size + line-height (1.1x) + margin-bottom (8px default).
If using dashboard CSS for custom font size, add
margin-bottom: 0 !important to .header-line.
Formula: font_size * 1.1 + margin <= container_height (60px).
Recommended CSS: font-size 3.3rem (58px with line-height), margin-bottom: 0.
country_map — required parameters:
- select_country: "russia"
- entity: "<column with ISO 3166-2 codes>"
- metric: {...}
Map tooltip (class .hover-popup) is clipped by the container
.dashboard-chart (overflow:hidden). Fix via dashboard CSS:
.dashboard-chart-id-{N} .dashboard-chart { overflow: visible !important; }
.hover-popup { z-index: 99999 !important; }
query_contextstring | null
JSON string with query context.
Required for chart_get_data to work. Usually generated by the UI.
slice_namestringобязательный
Chart name (displayed in the UI).
viz_typestringобязательный
Visualization type (Superset 6.x). Main types:
ECharts (recommended):
- echarts_timeseries_bar — bar/horizontal bar chart
- echarts_timeseries_line — line chart
- echarts_timeseries_smooth — smoothed line
- echarts_timeseries_step — step line
- echarts_timeseries_scatter — scatter plot
- echarts_area — area chart
- mixed_timeseries — multiple series with 2 Y-axes
- pie — pie chart
- funnel — funnel chart
- gauge_chart — gauge/speedometer
- radar — radar chart
- graph_chart — graph/network
- tree_chart — tree diagram
- treemap_v2 — treemap
- sunburst_v2 — sunburst chart
- sankey_v2 — Sankey diagram
- heatmap_v2 — heatmap
- histogram_v2 — histogram
- box_plot — box plot
- bubble_v2 — bubble chart
- waterfall — waterfall chart
- gantt_chart — Gantt chart
KPI:
- big_number_total — big number (KPI)
- big_number — KPI with trend
Tables:
- table — table
- pivot_table_v2 — pivot table
Maps:
- country_map — country map (ISO 3166-2 codes)
- world_map — world map
Other:
- word_cloud — word cloud
- handlebars — custom template
DEPRECATED (DO NOT USE — "not registered" error):
dist_bar -> echarts_timeseries_bar, bar -> echarts_timeseries_bar,
area -> echarts_area, line -> echarts_timeseries_line,
heatmap -> heatmap_v2, histogram -> histogram_v2,
treemap -> treemap_v2, sunburst -> sunburst_v2,
sankey -> sankey_v2, pivot_table -> pivot_table_v2,
dual_line -> mixed_timeseries, line_multi -> mixed_timeseries