JSFiddle - React, Tailwind, and code Playground
by stitot
HTML
<script src="https://code.highcharts.com/dashboards/datagrid.js"></script>
<div id="container"></div>
CSS
@import url("https://code.highcharts.com/dashboards/css/datagrid.css");
#container {
height: 250px;
margin: 8px;
}
JavaScript
DataGrid.dataGrid('container', {
dataTable: {
columns: {
product: [
'Apples', 'Pears', 'Plums', 'Bananas', 'Oranges', 'Grapes',
'Strawberries', 'Blueberries', 'Cherries', 'Mangoes'
],
weight: [100, 40, 0.5, 200, 150, 120, 50, 30, 25, 200],
price: [1.5, 2.53, 5, 4.5, 3, 2.8, 6, 4.2, 7, 3.5],
metaData: ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j'],
icon: [
'Apples URL', 'Pears URL', 'Plums URL', 'Bananas URL',
'Oranges URL', 'Grapes URL', 'Strawberries URL',
'Blueberries URL', 'Cherries URL', 'Mangoes URL'
]
}
},
rendering: {
columns: {
distribution: 'fixed'
}
}
});