$(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: [[1425168000000,0.15003],[1425254400000,0.15003],[1425340800000,0.14514],[1425427200000,0.134129],[1425513600000,0.128459],[1425600000000,0.12478],[1425686400000,0.123634],[1425772800000,0.123634],[1425859200000,0.123634],[1425945600000,0.123634],[1426032000000,0.117363],[1426118400000,0.116377],[1426204800000,0.116288],[1426291200000,0.116623],[1426377600000,0.116623],[1426464000000,0.116623],[1426550400000,0.117456],[1426636800000,0.120026],[1426723200000,0.125691],[1426809600000,0.126215],[1426896000000,0.125017],[1426982400000,0.125017],[1427068800000,0.125017],[1427155200000,0.124797],[1427241600000,0.125541],[1427328000000,0.126992],[1427414400000,0.126689],[1427500800000,0.126755],[1427587200000,0.126755],[1427673600000,0.126755],[1427760000000,0.126375]], 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: [[1425168000000, 0.150030],[1425168000000, 0.150030],[1425254400000, 0.150030],[1425340800000, 0.145140],[1425427200000, 0.134129],[1425513600000, 0.128459],[1425600000000, 0.124780],[1425686400000, 0.123634],[1425772800000, 0.123634],[1425859200000, 0.123634],[1425945600000, 0.123634],[1426032000000, 0.117363],[1426118400000, 0.116377],[1426204800000, 0.116288],[1426291200000, 0.116623],[1426377600000, 0.116623],[1426464000000, 0.116623],[1426550400000, 0.117456],[1426636800000, 0.120026],[1426723200000, 0.125691],[1426809600000, 0.126215],[1426896000000, 0.125017],[1426982400000, 0.125017],[1427068800000, 0.125017],[1427155200000, 0.124797],[1427241600000, 0.125541],[1427328000000, 0.126992],[1427414400000, 0.126689],[1427500800000, 0.126755],[1427587200000, 0.126755],[1427673600000, 0.126755],[1427760000000, 0.126375]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });