How to create a chart from JSON
- Paste an array of JSON objects or load one of the examples.
- Optionally filter the records by exact values in one or more fields.
- Select the category field for the X-axis and a numeric value field for the Y-axis.
- Choose a bar, line, or pie chart and decide how repeated categories should be aggregated.
- Review the accessible data table, then download the chart as SVG.
Filter records before charting
Use Filters to include only matching records before categories are counted, summed, or averaged. Select several values in one field with OR and combine different fields with AND.
Choose the right chart type
Use a bar chart to compare categories, a line chart to show ordered values such as monthly sales, or a pie chart to show how positive values contribute to a total.
JSON format and numeric fields
Arrays of objects work best. Consistent keys become chart fields, while nested keys use double underscores. Numeric values and numeric strings can be selected as the Y-axis.
[
{ "month": "Jan", "sales": 4200 },
{ "month": "Feb", "sales": 5800 },
{ "month": "Mar", "sales": 7300 }
]Private, browser-based processing
Your JSON is parsed and visualized locally in your browser. The data is not uploaded to CosmoTools, and no account is required.
Download as SVG
SVG stays sharp at any resolution and can be opened in browsers, design tools, documents, and presentation software.
Frequently asked questions
What JSON format works best for charts?
An array of objects with consistent category and numeric fields works best, such as monthly sales records.
Which chart types can I create?
You can create bar, line, and pie charts from the same JSON data.
Can I aggregate repeated categories?
Yes. Numeric values can be summed, averaged, or counted for each category.
Can I filter the records used by the chart?
Yes. Choose exact values from one or more fields before counting, summing, or averaging the chart data.
Can I download the chart?
Yes. Every chart can be downloaded as a scalable SVG image.
Is my JSON uploaded?
No. Your JSON is parsed and charted locally in your browser.