MATIH Platform is in active MVP development. Documentation reflects current implementation status.
12. AI Service
BI Analytics Platform
Visualization

Visualization

Production - Multiple chart types, configuration, auto-detection

The Visualization system generates chart specifications from query results. The VisualizationAgent automatically selects appropriate chart types based on data shape and user intent.


12.4.8.1Chart Types

TypeBest ForRequired Columns
barCategorical comparison1 category + 1+ numeric
lineTime series, trends1 datetime + 1+ numeric
piePart-of-whole1 category + 1 numeric
scatterCorrelation2 numeric
heatmapMatrix patterns2 categorical + 1 numeric
areaCumulative trends1 datetime + 1+ numeric
tableDetailed dataAny columns
metricSingle KPI1 numeric

Chart Specification

{
  "type": "bar",
  "x": "region",
  "y": "total_revenue",
  "series": [],
  "color_scheme": "blue",
  "show_legend": true,
  "show_grid": true,
  "title": "Revenue by Region",
  "aggregation": "sum",
  "value_format": "$,.0f"
}
# Change chart type
curl -X POST http://localhost:8000/api/v1/bi/sessions/{session_id}/visualization \
  -H "Content-Type: application/json" \
  -d '{"chart_type": "pie"}'