$(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: [[1057017600000,0.17572],[1057104000000,0.17612],[1057190400000,0.17611],[1057276800000,0.17604],[1057363200000,0.17604],[1057449600000,0.17604],[1057536000000,0.17598],[1057622400000,0.17565],[1057708800000,0.17565],[1057795200000,0.17561],[1057881600000,0.17551],[1057968000000,0.17551],[1058054400000,0.17551],[1058140800000,0.17485],[1058227200000,0.17462],[1058313600000,0.17462],[1058400000000,0.17488],[1058486400000,0.17521],[1058572800000,0.17521],[1058659200000,0.17521],[1058745600000,0.17559],[1058832000000,0.17598],[1058918400000,0.1757],[1059004800000,0.17564],[1059091200000,0.17584],[1059177600000,0.17584],[1059264000000,0.17584],[1059350400000,0.17628],[1059436800000,0.17629],[1059523200000,0.17629],[1059609600000,0.1762]], 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: [[1057017600000, 0.175720],[1057017600000, 0.175720],[1057104000000, 0.176120],[1057190400000, 0.176110],[1057276800000, 0.176040],[1057363200000, 0.176040],[1057449600000, 0.176040],[1057536000000, 0.175980],[1057622400000, 0.175650],[1057708800000, 0.175650],[1057795200000, 0.175610],[1057881600000, 0.175510],[1057968000000, 0.175510],[1058054400000, 0.175510],[1058140800000, 0.174850],[1058227200000, 0.174620],[1058313600000, 0.174620],[1058400000000, 0.174880],[1058486400000, 0.175210],[1058572800000, 0.175210],[1058659200000, 0.175210],[1058745600000, 0.175590],[1058832000000, 0.175980],[1058918400000, 0.175700],[1059004800000, 0.175640],[1059091200000, 0.175840],[1059177600000, 0.175840],[1059264000000, 0.175840],[1059350400000, 0.176280],[1059436800000, 0.176290],[1059523200000, 0.176290],[1059609600000, 0.176200]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });