$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1107216000000,0.0281489],[1107302400000,0.0281702],[1107388800000,0.0282433],[1107475200000,0.028204],[1107561600000,0.028176],[1107648000000,0.028176],[1107734400000,0.028176],[1107820800000,0.0279038],[1107907200000,0.0277074],[1107993600000,0.0276857],[1108080000000,0.0276995],[1108166400000,0.0278659],[1108252800000,0.0278659],[1108339200000,0.0278659],[1108425600000,0.0281317],[1108512000000,0.0282311],[1108598400000,0.0283372],[1108684800000,0.0284069],[1108771200000,0.0284283],[1108857600000,0.0284283],[1108944000000,0.0284283],[1109030400000,0.0283931],[1109116800000,0.0287735],[1109203200000,0.028894],[1109289600000,0.0290218],[1109376000000,0.0287937],[1109462400000,0.0287937],[1109548800000,0.0287937]], 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: [[1107216000000, 0.028149],[1107216000000, 0.028149],[1107302400000, 0.028170],[1107388800000, 0.028243],[1107475200000, 0.028204],[1107561600000, 0.028176],[1107648000000, 0.028176],[1107734400000, 0.028176],[1107820800000, 0.027904],[1107907200000, 0.027707],[1107993600000, 0.027686],[1108080000000, 0.027699],[1108166400000, 0.027866],[1108252800000, 0.027866],[1108339200000, 0.027866],[1108425600000, 0.028132],[1108512000000, 0.028231],[1108598400000, 0.028337],[1108684800000, 0.028407],[1108771200000, 0.028428],[1108857600000, 0.028428],[1108944000000, 0.028428],[1109030400000, 0.028393],[1109116800000, 0.028774],[1109203200000, 0.028894],[1109289600000, 0.029022],[1109376000000, 0.028794],[1109462400000, 0.028794],[1109548800000, 0.028794]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });