Sonified function
// Create an array with data from y = 1 / x const data = []; for (let x = -6; x < 6; x += 0.01) { // Note: Push y = null for x = 0 data.push([ x, Math.round(x * 100) ? 1 / x : null ]); } // Create the chart const chart = Highcharts.chart('container', { chart: { height: '100%' }, title: { text: 'Sonified mathematical function', align: 'left' }, sonification: { duration: 8000, defaultInstrumentOptions: { instrument: 'basic1', roundToMusicalNotes: false } }, accessibility: { landmarkVerbosity: 'one' }, xAxis: { min: -6, max: 6, gridLineWidth: 1, tickInterval: 1, crossing: 0 }, yAxis: { min: -6, max: 6, tickInterval: 1, lineWidth: 1, crossing: 0, title: { text: null } }, legend: { enabled: false }, tooltip: { headerFormat: '', pointFormat: 'y = {point.y:.2f}' }, series: [{ data }] }); document.getElementById('sonify').onclick = function () { chart.toggleSonify(); };
CoreAudio charts
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