$(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: 'Курс CZK, грн'}, 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: 'Курс CZK', data: [[1448928000000,0.93728],[1449014400000,0.935205],[1449100800000,0.928617],[1449187200000,0.911306],[1449273600000,0.953643],[1449360000000,0.953643],[1449446400000,0.953643],[1449532800000,0.938045],[1449619200000,0.922141],[1449705600000,0.927032],[1449792000000,0.946373],[1449878400000,0.966836],[1449964800000,0.966836],[1450051200000,0.966836],[1450137600000,0.967744],[1450224000000,0.953778],[1450310400000,0.951299],[1450396800000,0.941992],[1450483200000,0.943947],[1450569600000,0.943947],[1450656000000,0.943947],[1450742400000,0.945843],[1450828800000,0.937932],[1450915200000,0.928637],[1451001600000,0.930118],[1451088000000,0.937125],[1451174400000,0.937125],[1451260800000,0.937125],[1451347200000,0.965797],[1451433600000,0.964022],[1451520000000,0.970185]], 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: [[1448928000000, 0.937280],[1448928000000, 0.937280],[1449014400000, 0.935205],[1449100800000, 0.928617],[1449187200000, 0.911306],[1449273600000, 0.953643],[1449360000000, 0.953643],[1449446400000, 0.953643],[1449532800000, 0.938045],[1449619200000, 0.922141],[1449705600000, 0.927032],[1449792000000, 0.946373],[1449878400000, 0.966836],[1449964800000, 0.966836],[1450051200000, 0.966836],[1450137600000, 0.967744],[1450224000000, 0.953778],[1450310400000, 0.951299],[1450396800000, 0.941992],[1450483200000, 0.943947],[1450569600000, 0.943947],[1450656000000, 0.943947],[1450742400000, 0.945843],[1450828800000, 0.937932],[1450915200000, 0.928637],[1451001600000, 0.930118],[1451088000000, 0.937125],[1451174400000, 0.937125],[1451260800000, 0.937125],[1451347200000, 0.965797],[1451433600000, 0.964022],[1451520000000, 0.970185]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });