$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1488326400000,3.87254],[1488412800000,3.8515],[1488499200000,3.83176],[1488585600000,3.85427],[1488672000000,3.85427],[1488758400000,3.85427],[1488844800000,3.85017],[1488931200000,3.8354],[1489017600000,3.8354],[1489104000000,3.81927],[1489190400000,3.82544],[1489276800000,3.82544],[1489363200000,3.82544],[1489449600000,3.85764],[1489536000000,3.84755],[1489622400000,3.84089],[1489708800000,3.89245],[1489795200000,3.88638],[1489881600000,3.88638],[1489968000000,3.88638],[1490054400000,3.88855],[1490140800000,3.90092],[1490227200000,3.91173],[1490313600000,3.92496],[1490400000000,3.94042],[1490486400000,3.94042],[1490572800000,3.94042],[1490659200000,3.97391],[1490745600000,3.95806],[1490832000000,3.90565],[1490918400000,3.89377]], 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: [[1488326400000, 3.872543],[1488326400000, 3.872543],[1488412800000, 3.851502],[1488499200000, 3.831765],[1488585600000, 3.854270],[1488672000000, 3.854270],[1488758400000, 3.854270],[1488844800000, 3.850166],[1488931200000, 3.835396],[1489017600000, 3.835396],[1489104000000, 3.819269],[1489190400000, 3.825436],[1489276800000, 3.825436],[1489363200000, 3.825436],[1489449600000, 3.857638],[1489536000000, 3.847555],[1489622400000, 3.840885],[1489708800000, 3.892455],[1489795200000, 3.886375],[1489881600000, 3.886375],[1489968000000, 3.886375],[1490054400000, 3.888553],[1490140800000, 3.900921],[1490227200000, 3.911733],[1490313600000, 3.924959],[1490400000000, 3.940424],[1490486400000, 3.940424],[1490572800000, 3.940424],[1490659200000, 3.973912],[1490745600000, 3.958059],[1490832000000, 3.905648],[1490918400000, 3.893769]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });