$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1530403200000,3.22646],[1530489600000,3.22646],[1530576000000,3.21341],[1530662400000,3.24104],[1530748800000,3.25936],[1530835200000,3.2779],[1530921600000,3.26744],[1531008000000,3.26744],[1531094400000,3.26744],[1531180800000,3.28449],[1531267200000,3.2608],[1531353600000,3.25835],[1531440000000,3.23758],[1531526400000,3.22085],[1531612800000,3.22085],[1531699200000,3.22085],[1531785600000,3.24026],[1531872000000,3.23558],[1531958400000,3.21404],[1532044800000,3.20335],[1532131200000,3.21804],[1532217600000,3.21804],[1532304000000,3.21804],[1532390400000,3.24374],[1532476800000,3.25488],[1532563200000,3.25987],[1532649600000,3.27115],[1532736000000,3.26247],[1532822400000,3.26247],[1532908800000,3.26247],[1532995200000,3.28059]], 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: [[1530403200000, 3.226462],[1530403200000, 3.226462],[1530489600000, 3.226462],[1530576000000, 3.213412],[1530662400000, 3.241042],[1530748800000, 3.259358],[1530835200000, 3.277897],[1530921600000, 3.267442],[1531008000000, 3.267442],[1531094400000, 3.267442],[1531180800000, 3.284493],[1531267200000, 3.260800],[1531353600000, 3.258346],[1531440000000, 3.237578],[1531526400000, 3.220852],[1531612800000, 3.220852],[1531699200000, 3.220852],[1531785600000, 3.240259],[1531872000000, 3.235582],[1531958400000, 3.214044],[1532044800000, 3.203352],[1532131200000, 3.218039],[1532217600000, 3.218039],[1532304000000, 3.218039],[1532390400000, 3.243743],[1532476800000, 3.254880],[1532563200000, 3.259865],[1532649600000, 3.271153],[1532736000000, 3.262469],[1532822400000, 3.262469],[1532908800000, 3.262469],[1532995200000, 3.280595]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });