Home
Tutorials
Microsoft Technologies Tutorials
Java Programming Tutorials
Web Designing Tutorials
Script Programming Tutorials
Database Programming Tutorials
Mobile Technologies Tutorials
Other Programming Tutorials
Examples
Articles
Tools
News
Highcharts Logarithmic Axis Chart Example
Keywords : How to implement chart with logarithmic axis using highcharts, Chart with logarithmic x axis and y axis using highcharts
Example
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Highcharts Logarithmic axis chart</title> <script src="https://code.jquery.com/jquery-1.12.4.js"></script> <script src="https://code.highcharts.com/highcharts.js"></script> <script src="https://code.highcharts.com/modules/exporting.js"></script> <script type="text/javascript"> $(function () { var chartitle = { text: 'Logarithmic axis demo' } var chartxaxis = { tickInterval: 1 } var chartyaxis = { type: 'logarithmic', minorTickInterval: 0.1 } var chartooltip = { headerFormat: '<b>{series.name}</b><br />', pointFormat: 'x = {point.x}, y = {point.y}' } var chartseries = [{ data: [1, 2, 4, 8, 16, 32, 64, 128, 256, 512], pointStart: 1 }] $('#container').highcharts({ title: chartitle, xAxis:chartxaxis, yAxis: chartyaxis, tooltip: chartooltip, series: chartseries }); }); </script> </head> <body> <div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div> </body> </html>
Click Here to See Result
Result
Previous
Next