
Choosing X-Axis, Y-Axis, and Aggregation
Data Khoj inspects the live records of your selected resource and infers whether each column is Numeric, Date/Time, Category, or Boolean. If a column has mixed values, you can override its type manually in the configuration panel.
- Time series (Date + Numeric): Use Line or Area charts sorted chronologically.
- Category comparisons (Category + Numeric): Use Column, Bar, Grouped Bar, or Stacked Bar charts.
- Distributions & correlations: Use Histogram (1 numeric field), Scatter (2 numeric fields), or Bubble / 3D Scatter (3 numeric fields).
- Aggregations: Select Sum, Average, Minimum, Maximum, or Count when multiple records share an X-axis category.
Current Page vs. All Matching Records
Because API records are paginated, charting only the current page can look very different from charting the full dataset. Data Khoj displays an explicit Records to Chart selector:
- Current page: Charts only the rows currently loaded in the table view.
- All matching records: Queries the backend proxy (/api/resources/{resourceId}/chart-data), which retrieves up to 5,000 records safely. If the dataset exceeds 5,000 rows, the badge clearly reads Sampled matching records (first 5,000).

Exporting and Saving Your Work
Once your chart is ready, you can download it as a PNG image, export the plotted values as CSV, or save the configuration locally to reopen later.