$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1464739200000,25.3921],[1464825600000,25.3677],[1464912000000,25.3365],[1464998400000,25.2374],[1465084800000,25.2374],[1465171200000,25.2374],[1465257600000,25.6594],[1465344000000,25.8006],[1465430400000,25.9381],[1465516800000,25.9802],[1465603200000,25.9783],[1465689600000,25.9783],[1465776000000,25.9783],[1465862400000,25.8401],[1465948800000,25.8189],[1466035200000,null],[1466121600000,25.7385],[1466208000000,25.9128],[1466294400000,25.9128],[1466380800000,25.9128],[1466467200000,25.9128],[1466553600000,25.9571],[1466640000000,25.9395],[1466726400000,26.0566],[1466812800000,25.4672],[1466899200000,25.4672],[1466985600000,25.4672],[1467072000000,25.4672],[1467158400000,25.4672],[1467244800000,25.3948]], 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: [[1464739200000, 25.392052],[1464739200000, 25.392052],[1464825600000, 25.367749],[1464912000000, 25.336549],[1464998400000, 25.237386],[1465084800000, 25.237386],[1465171200000, 25.237386],[1465257600000, 25.659418],[1465344000000, 25.800633],[1465430400000, 25.938056],[1465516800000, 25.980247],[1465603200000, 25.978267],[1465689600000, 25.978267],[1465776000000, 25.978267],[1465862400000, 25.840108],[1465948800000, 25.818894],[1466121600000, 25.738482],[1466208000000, 25.912794],[1466294400000, 25.912794],[1466380800000, 25.912794],[1466467200000, 25.912794],[1466553600000, 25.957088],[1466640000000, 25.939521],[1466726400000, 26.056609],[1466812800000, 25.467153],[1466899200000, 25.467153],[1466985600000, 25.467153],[1467072000000, 25.467153],[1467158400000, 25.467153],[1467244800000, 25.394822]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });