$(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: [[1014940800000,0.17199],[1015027200000,0.17199],[1015113600000,0.17199],[1015200000000,0.17199],[1015286400000,0.17177],[1015372800000,0.17178],[1015459200000,0.17173],[1015545600000,0.17173],[1015632000000,0.17173],[1015718400000,0.17173],[1015804800000,0.17134],[1015891200000,0.17134],[1015977600000,0.17137],[1016064000000,0.17126],[1016150400000,0.17128],[1016236800000,0.17128],[1016323200000,0.17128],[1016409600000,0.17128],[1016496000000,0.17106],[1016582400000,0.17106],[1016668800000,0.17096],[1016755200000,0.17105],[1016841600000,0.17105],[1016928000000,0.17105],[1017014400000,0.17105],[1017100800000,0.17085],[1017187200000,0.17095],[1017273600000,0.1713],[1017360000000,0.17102],[1017446400000,0.17102],[1017532800000,0.17102]], 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: [[1014940800000, 0.171990],[1014940800000, 0.171990],[1015027200000, 0.171990],[1015113600000, 0.171990],[1015200000000, 0.171990],[1015286400000, 0.171770],[1015372800000, 0.171780],[1015459200000, 0.171730],[1015545600000, 0.171730],[1015632000000, 0.171730],[1015718400000, 0.171730],[1015804800000, 0.171340],[1015891200000, 0.171340],[1015977600000, 0.171370],[1016064000000, 0.171260],[1016150400000, 0.171280],[1016236800000, 0.171280],[1016323200000, 0.171280],[1016409600000, 0.171280],[1016496000000, 0.171060],[1016582400000, 0.171060],[1016668800000, 0.170960],[1016755200000, 0.171050],[1016841600000, 0.171050],[1016928000000, 0.171050],[1017014400000, 0.171050],[1017100800000, 0.170850],[1017187200000, 0.170950],[1017273600000, 0.171300],[1017360000000, 0.171020],[1017446400000, 0.171020],[1017532800000, 0.171020]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });