$(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: [[1095120000000,1.88532],[1095206400000,1.8817],[1095292800000,1.8817],[1095379200000,1.86806],[1095465600000,1.87412],[1095552000000,1.87412],[1095638400000,1.87412],[1095724800000,1.86897],[1095811200000,1.87285],[1095897600000,1.89488],[1095984000000,1.88743],[1096070400000,1.88686],[1096156800000,1.88686],[1096243200000,1.88686],[1096329600000,1.88447],[1096416000000,1.89051],[1096502400000,1.89365]], 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: [[1095120000000, 1.885320],[1095120000000, 1.885320],[1095206400000, 1.881700],[1095292800000, 1.881700],[1095379200000, 1.868060],[1095465600000, 1.874120],[1095552000000, 1.874120],[1095638400000, 1.874120],[1095724800000, 1.868970],[1095811200000, 1.872850],[1095897600000, 1.894880],[1095984000000, 1.887430],[1096070400000, 1.886860],[1096156800000, 1.886860],[1096243200000, 1.886860],[1096329600000, 1.884470],[1096416000000, 1.890510],[1096502400000, 1.893650]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });