$(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: 'Курс BYN, грн'}, 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: 'Курс BYN', data: [[1427846400000,0.0016],[1427932800000,0.0016],[1428019200000,0.0016],[1428105600000,0.00159],[1428192000000,0.00159],[1428278400000,0.00159],[1428364800000,0.00161],[1428451200000,0.00162],[1428537600000,0.00162],[1428624000000,0.00163],[1428710400000,0.0016],[1428796800000,0.0016],[1428883200000,0.0016],[1428969600000,0.0016],[1429056000000,0.00159],[1429142400000,0.00152],[1429228800000,0.0015],[1429315200000,0.00147],[1429401600000,0.00147],[1429488000000,0.00147],[1429574400000,0.00156],[1429660800000,0.00156],[1429747200000,0.00155],[1429833600000,0.00157],[1429920000000,0.00158],[1430006400000,0.00158],[1430092800000,0.00158],[1430179200000,0.00159],[1430265600000,0.00153],[1430352000000,0.00145]], 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, 0.001600],[1427846400000, 0.001600],[1427932800000, 0.001600],[1428019200000, 0.001600],[1428105600000, 0.001590],[1428192000000, 0.001590],[1428278400000, 0.001590],[1428364800000, 0.001610],[1428451200000, 0.001620],[1428537600000, 0.001620],[1428624000000, 0.001630],[1428710400000, 0.001600],[1428796800000, 0.001600],[1428883200000, 0.001600],[1428969600000, 0.001600],[1429056000000, 0.001590],[1429142400000, 0.001520],[1429228800000, 0.001500],[1429315200000, 0.001470],[1429401600000, 0.001470],[1429488000000, 0.001470],[1429574400000, 0.001560],[1429660800000, 0.001560],[1429747200000, 0.001550],[1429833600000, 0.001570],[1429920000000, 0.001580],[1430006400000, 0.001580],[1430092800000, 0.001580],[1430179200000, 0.001590],[1430265600000, 0.001530],[1430352000000, 0.001450]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });