$(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: 'Курс LTL, грн'}, 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: 'Курс LTL', data: [[1254355200000,3.39442],[1254441600000,3.37242],[1254528000000,3.37237],[1254614400000,3.37237],[1254700800000,3.37237],[1254787200000,3.3907],[1254873600000,3.41529],[1254960000000,3.4088],[1255046400000,3.4248],[1255132800000,3.42179],[1255219200000,3.42179],[1255305600000,3.42179],[1255392000000,3.42527],[1255478400000,3.4466],[1255564800000,3.44701],[1255651200000,3.43532],[1255737600000,3.43217],[1255824000000,3.43217],[1255910400000,3.43217],[1255996800000,3.44348],[1256083200000,3.46005],[1256169600000,3.45411],[1256256000000,3.47761],[1256342400000,3.4792],[1256428800000,3.4792],[1256515200000,3.4792],[1256601600000,3.47932],[1256688000000,3.44952],[1256774400000,3.42888],[1256860800000,3.42632],[1256947200000,3.4261]], 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: [[1254355200000, 3.394421],[1254355200000, 3.394421],[1254441600000, 3.372418],[1254528000000, 3.372375],[1254614400000, 3.372375],[1254700800000, 3.372375],[1254787200000, 3.390702],[1254873600000, 3.415293],[1254960000000, 3.408797],[1255046400000, 3.424804],[1255132800000, 3.421788],[1255219200000, 3.421788],[1255305600000, 3.421788],[1255392000000, 3.425268],[1255478400000, 3.446599],[1255564800000, 3.447006],[1255651200000, 3.435320],[1255737600000, 3.432169],[1255824000000, 3.432169],[1255910400000, 3.432169],[1255996800000, 3.443479],[1256083200000, 3.460049],[1256169600000, 3.454111],[1256256000000, 3.477612],[1256342400000, 3.479204],[1256428800000, 3.479204],[1256515200000, 3.479204],[1256601600000, 3.479320],[1256688000000, 3.449520],[1256774400000, 3.428880],[1256860800000, 3.426321],[1256947200000, 3.426101]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });