$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1427846400000,23.4514],[1427932800000,23.4819],[1428019200000,23.5095],[1428105600000,23.3048],[1428192000000,23.3048],[1428278400000,23.3048],[1428364800000,23.4475],[1428451200000,23.506],[1428537600000,23.5103],[1428624000000,23.4354],[1428710400000,22.882],[1428796800000,22.882],[1428883200000,22.882],[1428969600000,22.882],[1429056000000,22.9266],[1429142400000,21.783],[1429228800000,21.4459],[1429315200000,21.0577],[1429401600000,21.0577],[1429488000000,21.0577],[1429574400000,22.2544],[1429660800000,22.2762],[1429747200000,22.5422],[1429833600000,22.5311],[1429920000000,22.4516],[1430006400000,22.4516],[1430092800000,22.4516],[1430179200000,22.8986],[1430265600000,22.2624],[1430352000000,21.0468]], 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: [[1427846400000, 23.451383],[1427846400000, 23.451383],[1427932800000, 23.481944],[1428019200000, 23.509492],[1428105600000, 23.304799],[1428192000000, 23.304799],[1428278400000, 23.304799],[1428364800000, 23.447515],[1428451200000, 23.506033],[1428537600000, 23.510335],[1428624000000, 23.435369],[1428710400000, 22.882033],[1428796800000, 22.882033],[1428883200000, 22.882033],[1428969600000, 22.882033],[1429056000000, 22.926551],[1429142400000, 21.783027],[1429228800000, 21.445856],[1429315200000, 21.057654],[1429401600000, 21.057654],[1429488000000, 21.057654],[1429574400000, 22.254387],[1429660800000, 22.276179],[1429747200000, 22.542193],[1429833600000, 22.531063],[1429920000000, 22.451630],[1430006400000, 22.451630],[1430092800000, 22.451630],[1430179200000, 22.898565],[1430265600000, 22.262406],[1430352000000, 21.046832]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });