$(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: [[1262736000000,3.33988],[1262822400000,3.3186],[1262908800000,3.3186],[1262995200000,3.3186],[1263081600000,3.3186],[1263168000000,3.3186],[1263254400000,3.36208],[1263340800000,3.35452],[1263427200000,3.37588],[1263513600000,3.35736],[1263600000000,3.3309],[1263686400000,3.3309],[1263772800000,3.3309],[1263859200000,3.32974],[1263945600000,3.31066],[1264032000000,3.27658],[1264118400000,3.26265],[1264204800000,3.27846],[1264291200000,3.27846],[1264377600000,3.27846],[1264464000000,3.28201],[1264550400000,3.2654],[1264636800000,3.2614],[1264723200000,3.244],[1264809600000,3.23546],[1264896000000,3.23546]], 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: [[1262736000000, 3.339880],[1262736000000, 3.339880],[1262822400000, 3.318604],[1262908800000, 3.318604],[1262995200000, 3.318604],[1263081600000, 3.318604],[1263168000000, 3.318604],[1263254400000, 3.362082],[1263340800000, 3.354519],[1263427200000, 3.375876],[1263513600000, 3.357355],[1263600000000, 3.330898],[1263686400000, 3.330898],[1263772800000, 3.330898],[1263859200000, 3.329739],[1263945600000, 3.310662],[1264032000000, 3.276579],[1264118400000, 3.262646],[1264204800000, 3.278462],[1264291200000, 3.278462],[1264377600000, 3.278462],[1264464000000, 3.282009],[1264550400000, 3.265396],[1264636800000, 3.261404],[1264723200000, 3.243999],[1264809600000, 3.235462],[1264896000000, 3.235462]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });