$(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: [[1318032000000,3.10198],[1318118400000,3.10198],[1318204800000,3.10198],[1318291200000,3.1387],[1318377600000,3.14193],[1318464000000,3.17904],[1318550400000,3.17083],[1318636800000,3.18931],[1318723200000,3.18931],[1318809600000,3.18931],[1318896000000,3.18215],[1318982400000,3.15905],[1319068800000,3.19416],[1319155200000,3.18931],[1319241600000,3.18723],[1319328000000,3.18723],[1319414400000,3.18723],[1319500800000,3.20063],[1319587200000,3.21515],[1319673600000,3.21723],[1319760000000,3.2432]], 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: [[1318032000000, 3.101983],[1318032000000, 3.101983],[1318118400000, 3.101983],[1318204800000, 3.101983],[1318291200000, 3.138696],[1318377600000, 3.141929],[1318464000000, 3.179042],[1318550400000, 3.170830],[1318636800000, 3.189310],[1318723200000, 3.189310],[1318809600000, 3.189310],[1318896000000, 3.182149],[1318982400000, 3.159050],[1319068800000, 3.194161],[1319155200000, 3.189310],[1319241600000, 3.187231],[1319328000000, 3.187231],[1319414400000, 3.187231],[1319500800000, 3.200628],[1319587200000, 3.215152],[1319673600000, 3.217231],[1319760000000, 3.243198]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });