$(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: [[1425168000000,0.4573],[1425254400000,0.4573],[1425340800000,0.43834],[1425427200000,0.39889],[1425513600000,0.38116],[1425600000000,0.37318],[1425686400000,0.37023],[1425772800000,0.37023],[1425859200000,0.37023],[1425945600000,0.37023],[1426032000000,0.3623],[1426118400000,0.35528],[1426204800000,0.34387],[1426291200000,0.3546],[1426377600000,0.3546],[1426464000000,0.3546],[1426550400000,0.35505],[1426636800000,0.35796],[1426723200000,0.37727],[1426809600000,0.38133],[1426896000000,0.3876],[1426982400000,0.3876],[1427068800000,0.3876],[1427155200000,0.38561],[1427241600000,0.39175],[1427328000000,0.40083],[1427414400000,0.40951],[1427500800000,0.4167],[1427587200000,0.4167],[1427673600000,0.4167],[1427760000000,0.40609]], 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.457300],[1425168000000, 0.457300],[1425254400000, 0.457300],[1425340800000, 0.438340],[1425427200000, 0.398890],[1425513600000, 0.381160],[1425600000000, 0.373180],[1425686400000, 0.370230],[1425772800000, 0.370230],[1425859200000, 0.370230],[1425945600000, 0.370230],[1426032000000, 0.362300],[1426118400000, 0.355280],[1426204800000, 0.343870],[1426291200000, 0.354600],[1426377600000, 0.354600],[1426464000000, 0.354600],[1426550400000, 0.355050],[1426636800000, 0.357960],[1426723200000, 0.377270],[1426809600000, 0.381330],[1426896000000, 0.387600],[1426982400000, 0.387600],[1427068800000, 0.387600],[1427155200000, 0.385610],[1427241600000, 0.391750],[1427328000000, 0.400830],[1427414400000, 0.409510],[1427500800000, 0.416700],[1427587200000, 0.416700],[1427673600000, 0.416700],[1427760000000, 0.406090]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });