$(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: [[1212969600000,0.20485],[1213056000000,0.20616],[1213142400000,0.20548],[1213228800000,0.20499],[1213315200000,0.20504],[1213401600000,0.20504],[1213488000000,0.20504],[1213574400000,0.20504],[1213660800000,0.20504],[1213747200000,0.20534],[1213833600000,0.20514],[1213920000000,0.20563],[1214006400000,0.20525],[1214092800000,0.20525],[1214179200000,0.20525],[1214265600000,0.20558],[1214352000000,0.2053],[1214438400000,0.2054],[1214524800000,0.20612],[1214611200000,0.20671],[1214697600000,0.20671],[1214784000000,0.20671]], 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: [[1212969600000, 0.204850],[1212969600000, 0.204850],[1213056000000, 0.206160],[1213142400000, 0.205480],[1213228800000, 0.204990],[1213315200000, 0.205040],[1213401600000, 0.205040],[1213488000000, 0.205040],[1213574400000, 0.205040],[1213660800000, 0.205040],[1213747200000, 0.205340],[1213833600000, 0.205140],[1213920000000, 0.205630],[1214006400000, 0.205250],[1214092800000, 0.205250],[1214179200000, 0.205250],[1214265600000, 0.205580],[1214352000000, 0.205300],[1214438400000, 0.205400],[1214524800000, 0.206120],[1214611200000, 0.206710],[1214697600000, 0.206710],[1214784000000, 0.206710]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });