$(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: 'Курс KZT, грн'}, 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: 'Курс KZT', data: [[1498867200000,0.08075],[1498953600000,0.08075],[1499040000000,0.08075],[1499126400000,0.081121],[1499212800000,0.080707],[1499299200000,0.08063],[1499385600000,0.080448],[1499472000000,0.080333],[1499558400000,0.080333],[1499644800000,0.080333],[1499731200000,0.07966],[1499817600000,0.079377],[1499904000000,0.078871],[1499990400000,0.079279],[1500076800000,0.079633],[1500163200000,0.079633],[1500249600000,0.079633],[1500336000000,0.07974],[1500422400000,0.079562],[1500508800000,0.079578],[1500595200000,0.079642],[1500681600000,0.079666],[1500768000000,0.079666],[1500854400000,0.079666],[1500940800000,0.079041],[1501027200000,0.07904],[1501113600000,0.079241],[1501200000000,0.079552],[1501286400000,0.079316],[1501372800000,0.079316],[1501459200000,0.079316]], 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: [[1498867200000, 0.080750],[1498867200000, 0.080750],[1498953600000, 0.080750],[1499040000000, 0.080750],[1499126400000, 0.081121],[1499212800000, 0.080707],[1499299200000, 0.080630],[1499385600000, 0.080448],[1499472000000, 0.080333],[1499558400000, 0.080333],[1499644800000, 0.080333],[1499731200000, 0.079660],[1499817600000, 0.079377],[1499904000000, 0.078871],[1499990400000, 0.079279],[1500076800000, 0.079633],[1500163200000, 0.079633],[1500249600000, 0.079633],[1500336000000, 0.079740],[1500422400000, 0.079562],[1500508800000, 0.079578],[1500595200000, 0.079642],[1500681600000, 0.079666],[1500768000000, 0.079666],[1500854400000, 0.079666],[1500940800000, 0.079041],[1501027200000, 0.079040],[1501113600000, 0.079241],[1501200000000, 0.079552],[1501286400000, 0.079316],[1501372800000, 0.079316],[1501459200000, 0.079316]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });