HTML Table to Highcharts Converter
Convert semantic HTML tables into Highcharts JSON configurations instantly. Parses data attributes, series, and categories for developer-ready code.
// Output will appear here...
About
This tool acts as a bridge between static HTML markup and dynamic data visualization. It parses standard HTMLTableElement structures, extracting row data, column headers, and specific data-attributes to generate a production-ready Highcharts configuration object.
By utilizing the browser's native DOMParser, the tool ensures accurate interpretation of table semantics, including thead for categories and tbody for series data. It creates an immediate visual verification using a custom HTML5 Canvas engine, ensuring your data is structured correctly before you implement the external library.
Formulas
The converter maps the table matrix T to a Series Object S. For a table with i rows and j columns:
Reference Data
| Attribute | Type | Description |
|---|---|---|
| data-chart-type | string | Defines chart type (column, line, pie, bar). |
| data-categories | boolean | Marks the row containing X-Axis categories. |
| data-series | boolean | Marks a row as a data series. |
| data-series-name | string | Sets the name of the series (overrides first cell). |
| data-ignore | boolean | Skips a specific cell or row during parsing. |