$(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: 'Курс UZS, грн'}, 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: 'Курс UZS', data: [[1425168000000,0.011284],[1425254400000,0.011284],[1425340800000,0.010917],[1425427200000,0.010062],[1425513600000,0.009636],[1425600000000,0.00936],[1425686400000,0.009282],[1425772800000,0.009282],[1425859200000,0.009282],[1425945600000,0.009282],[1426032000000,0.008792],[1426118400000,0.008718],[1426204800000,0.008718],[1426291200000,0.008743],[1426377600000,0.008743],[1426464000000,0.008743],[1426550400000,0.008806],[1426636800000,0.008977],[1426723200000,0.009401],[1426809600000,0.00944],[1426896000000,0.009358],[1426982400000,0.009358],[1427068800000,0.009358],[1427155200000,0.009341],[1427241600000,0.009375],[1427328000000,0.009483],[1427414400000,0.00946],[1427500800000,0.009465],[1427587200000,0.009465],[1427673600000,0.009465],[1427760000000,0.009437]], 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.011284],[1425168000000, 0.011284],[1425254400000, 0.011284],[1425340800000, 0.010917],[1425427200000, 0.010062],[1425513600000, 0.009636],[1425600000000, 0.009360],[1425686400000, 0.009282],[1425772800000, 0.009282],[1425859200000, 0.009282],[1425945600000, 0.009282],[1426032000000, 0.008792],[1426118400000, 0.008718],[1426204800000, 0.008718],[1426291200000, 0.008743],[1426377600000, 0.008743],[1426464000000, 0.008743],[1426550400000, 0.008806],[1426636800000, 0.008977],[1426723200000, 0.009401],[1426809600000, 0.009440],[1426896000000, 0.009358],[1426982400000, 0.009358],[1427068800000, 0.009358],[1427155200000, 0.009341],[1427241600000, 0.009375],[1427328000000, 0.009483],[1427414400000, 0.009460],[1427500800000, 0.009465],[1427587200000, 0.009465],[1427673600000, 0.009465],[1427760000000, 0.009437]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });