$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1157068800000,0.18893],[1157155200000,0.18876],[1157241600000,0.18876],[1157328000000,0.18876],[1157414400000,0.18898],[1157500800000,0.18956],[1157587200000,0.18934],[1157673600000,0.18935],[1157760000000,0.1887],[1157846400000,0.1887],[1157932800000,0.1887],[1158019200000,0.18846],[1158105600000,0.1886],[1158192000000,0.18845],[1158278400000,0.18842],[1158364800000,0.18867],[1158451200000,0.18867],[1158537600000,0.18867],[1158624000000,0.1884],[1158710400000,0.18863],[1158796800000,0.18845],[1158883200000,0.18866],[1158969600000,0.18934],[1159056000000,0.18934],[1159142400000,0.18934],[1159228800000,0.18938],[1159315200000,0.18895],[1159401600000,0.18847],[1159488000000,0.18879],[1159574400000,0.18857]], 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: [[1157068800000, 0.188930],[1157068800000, 0.188930],[1157155200000, 0.188760],[1157241600000, 0.188760],[1157328000000, 0.188760],[1157414400000, 0.188980],[1157500800000, 0.189560],[1157587200000, 0.189340],[1157673600000, 0.189350],[1157760000000, 0.188700],[1157846400000, 0.188700],[1157932800000, 0.188700],[1158019200000, 0.188460],[1158105600000, 0.188600],[1158192000000, 0.188450],[1158278400000, 0.188420],[1158364800000, 0.188670],[1158451200000, 0.188670],[1158537600000, 0.188670],[1158624000000, 0.188400],[1158710400000, 0.188630],[1158796800000, 0.188450],[1158883200000, 0.188660],[1158969600000, 0.189340],[1159056000000, 0.189340],[1159142400000, 0.189340],[1159228800000, 0.189380],[1159315200000, 0.188950],[1159401600000, 0.188470],[1159488000000, 0.188790],[1159574400000, 0.188570]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });