$(document).ready(function () { chart = new Highcharts.StockChart({ chart: { renderTo: 'chart', type: 'line', animation: false, showAxes: true, height: 500 }, xAxis: { ordinal: false, type: 'datetime', showEmpty: true, gridLineWidth: 1, gridLineDashStyle: 'dot', ordinal: false }, yAxis: { title: {text: 'Курс ISK, грн'}, lineWidth: 3, gridLineWidth: 1, gridLineDashStyle: 'dash', ordinal: false }, plotOptions: { series: {connectNulls: true, shadow: false}, spline: {marker: {enabled: true}} }, tooltip: {valueDecimals: 8, xDateFormat: '%d %b %Y', shared: true}, series: [ { name: 'Курс ISK', data: [[1472688000000,0.223777],[1472774400000,0.229092],[1472860800000,0.230011],[1472947200000,0.230011],[1473033600000,0.230011],[1473120000000,0.231442],[1473206400000,0.231692],[1473292800000,0.233013],[1473379200000,0.232909],[1473465600000,0.232806],[1473552000000,0.232806],[1473638400000,0.232806],[1473724800000,0.231914],[1473811200000,0.230392],[1473897600000,0.229355],[1473984000000,0.22862],[1474070400000,0.225816],[1474156800000,0.225816],[1474243200000,0.225816],[1474329600000,0.223633],[1474416000000,0.224123],[1474502400000,0.226122],[1474588800000,0.227134],[1474675200000,0.226794],[1474761600000,0.226794],[1474848000000,0.226794],[1474934400000,0.227007],[1475020800000,0.226554],[1475107200000,0.226607],[1475193600000,0.226661]], tooltip: {valueSuffix: ' грн'}, type: 'area', step: true, color: '#888888', fillColor: { linearGradient: {x1: 0, y1: 0, x2: 0, y2: 1}, stops: [[0, '#CCCCCC'], [1, 'rgba(50,50,50,0)']] }, threshold: null }, { name: 'Среднее за период', data: [[1472688000000, 0.223777],[1472688000000, 0.223777],[1472774400000, 0.229092],[1472860800000, 0.230011],[1472947200000, 0.230011],[1473033600000, 0.230011],[1473120000000, 0.231442],[1473206400000, 0.231692],[1473292800000, 0.233013],[1473379200000, 0.232909],[1473465600000, 0.232806],[1473552000000, 0.232806],[1473638400000, 0.232806],[1473724800000, 0.231914],[1473811200000, 0.230392],[1473897600000, 0.229355],[1473984000000, 0.228620],[1474070400000, 0.225816],[1474156800000, 0.225816],[1474243200000, 0.225816],[1474329600000, 0.223633],[1474416000000, 0.224123],[1474502400000, 0.226122],[1474588800000, 0.227134],[1474675200000, 0.226794],[1474761600000, 0.226794],[1474848000000, 0.226794],[1474934400000, 0.227007],[1475020800000, 0.226554],[1475107200000, 0.226607],[1475193600000, 0.226661]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });