A simple web application that converts JSON configuration into Chart.js visualizations.
- Convert JSON configuration to Chart.js charts
- Support for all Chart.js chart types (bar, line, pie, etc.)
- Real-time visualization
- Error handling for invalid JSON
- Responsive design
- Clone or download this repository
- Open
index.htmlin your web browser - Enter your Chart.js JSON configuration in the text area
- Click the "Generate Chart" button to visualize your data
- Use the "Clear" button to reset the input and chart
The application expects JSON in the Chart.js configuration format:
{
"type": "bar",
"data": {
"labels": ["January", "February", "March"],
"datasets": [{
"label": "My Dataset",
"data": [10, 20, 30],
"backgroundColor": "rgba(75, 192, 192, 0.2)"
}]
},
"options": {
"responsive": true,
"plugins": {
"title": {
"display": true,
"text": "Chart Title"
}
}
}
}You can use any chart type supported by Chart.js:
- bar
- line
- pie
- doughnut
- radar
- polarArea
- bubble
- scatter
- Chart.js (loaded via CDN)
MIT