$(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: 'Курс TMM, грн'}, 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: 'Курс TMM', data: [[1262736000000,2.80175],[1262822400000,2.80175],[1262908800000,2.80175],[1262995200000,2.80175],[1263081600000,2.80175],[1263168000000,2.80175],[1263254400000,2.80368],[1263340800000,2.80646],[1263427200000,2.80842],[1263513600000,2.80786],[1263600000000,2.80744],[1263686400000,2.80744],[1263772800000,2.80744],[1263859200000,2.80744],[1263945600000,2.80895],[1264032000000,2.80895],[1264118400000,2.81053],[1264204800000,2.80997],[1264291200000,2.80997],[1264377600000,2.80997],[1264464000000,2.80983],[1264550400000,2.8087],[1264636800000,2.80786],[1264723200000,2.80744],[1264809600000,2.80667],[1264896000000,2.80667]], 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, 2.801754],[1262736000000, 2.801754],[1262822400000, 2.801754],[1262908800000, 2.801754],[1262995200000, 2.801754],[1263081600000, 2.801754],[1263168000000, 2.801754],[1263254400000, 2.803684],[1263340800000, 2.806456],[1263427200000, 2.808421],[1263513600000, 2.807860],[1263600000000, 2.807439],[1263686400000, 2.807439],[1263772800000, 2.807439],[1263859200000, 2.807439],[1263945600000, 2.808947],[1264032000000, 2.808947],[1264118400000, 2.810526],[1264204800000, 2.809965],[1264291200000, 2.809965],[1264377600000, 2.809965],[1264464000000, 2.809825],[1264550400000, 2.808702],[1264636800000, 2.807860],[1264723200000, 2.807439],[1264809600000, 2.806667],[1264896000000, 2.806667]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });