$(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: [[1385856000000,3.15085],[1385942400000,3.15085],[1386028800000,3.13349],[1386115200000,3.14322],[1386201600000,3.14646],[1386288000000,3.14692],[1386374400000,3.16243],[1386460800000,3.16243],[1386547200000,3.16243],[1386633600000,3.17655],[1386720000000,3.18303],[1386806400000,3.18697],[1386892800000,3.18882],[1386979200000,3.17771],[1387065600000,3.17771],[1387152000000,3.17771],[1387238400000,3.18905],[1387324800000,3.1828],[1387411200000,3.1828],[1387497600000,3.16382],[1387584000000,3.16104],[1387670400000,3.16104],[1387756800000,3.16104],[1387843200000,3.17192],[1387929600000,3.16775],[1388016000000,3.16775],[1388102400000,3.16775],[1388188800000,3.19785],[1388275200000,3.19785],[1388361600000,3.19785],[1388448000000,3.19785]], 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: [[1385856000000, 3.150855],[1385856000000, 3.150855],[1385942400000, 3.150855],[1386028800000, 3.133493],[1386115200000, 3.143216],[1386201600000, 3.146457],[1386288000000, 3.146920],[1386374400000, 3.162430],[1386460800000, 3.162430],[1386547200000, 3.162430],[1386633600000, 3.176551],[1386720000000, 3.183033],[1386806400000, 3.186968],[1386892800000, 3.188820],[1386979200000, 3.177708],[1387065600000, 3.177708],[1387152000000, 3.177708],[1387238400000, 3.189051],[1387324800000, 3.182801],[1387411200000, 3.182801],[1387497600000, 3.163819],[1387584000000, 3.161041],[1387670400000, 3.161041],[1387756800000, 3.161041],[1387843200000, 3.171921],[1387929600000, 3.167754],[1388016000000, 3.167754],[1388102400000, 3.167754],[1388188800000, 3.197848],[1388275200000, 3.197848],[1388361600000, 3.197848],[1388448000000, 3.197848]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });