Grid Accessibility
const grid = Grid.grid('container', { dataTable: { columns: { id: ['1', '2', '3', '4'], product: ['Apple', 'Pear', 'Plum', 'Banana'], weight: [100, 60, 30, 200], price: [1.5, 2.53, 5, 4.5] } }, rendering: { rows: { minVisibleRows: 4 } }, columnDefaults: { cells: { editable: true } }, credits: { text: 'Highcharts Grid' }, caption: { text: 'Fruits weight and price' }, columns: [{ id: 'id', header: { format: 'ID' }, cells: { editable: false } }, { id: 'product', header: { format: 'Product' } }, { id: 'weight', header: { format: 'Weight' }, cells: { format: '{value} g' } }, { id: 'price', header: { format: 'Price' }, cells: { format: '{value:.2f} €' } }] }); const editorInputs = document.querySelectorAll('.editor input'); function getOptionValue(path) { let cursor = grid.options; for (const key of path.split('.')) { cursor = cursor[key]; } return cursor; } function setOption(input) { const result = {}; const path = input.name.split('.'); let cursor = result; for (let i = 0, iEnd = path.length - 1; i < iEnd; i++) { cursor[path[i]] = cursor = {}; } cursor[path[path.length - 1]] = input.type === 'checkbox' ? input.checked : input.value; grid.update(result); } function setInputValue(input) { const value = getOptionValue(input.name); if (input.type === 'checkbox') { input.checked = value; } else { input.value = value; } } for (const input of editorInputs) { setInputValue(input); input.addEventListener('change', () => { setOption(input); }); }
GridGeneral
Install with NPM
The official Highcharts NPM package comes with support for CommonJS and contains Highcharts, and its Stock, Maps and Gantt packages.
npm install highcharts --save
See more installation optionsDownload our library
The zip archive contains Javascript files and examples. Unzip the zip package and open index.html in your browser to see the examples.
DownloadBuy a license
You can download and try out all Highcharts products for free. Once your project/product is ready for launch, purchase a commercial license.
See License Pricing