$(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: [[1264982400000,2.80667],[1265068800000,2.80677],[1265155200000,2.80716],[1265241600000,2.80744],[1265328000000,2.80744],[1265414400000,2.80716],[1265500800000,2.80716],[1265587200000,2.80716],[1265673600000,2.80961],[1265760000000,2.81028],[1265846400000,2.81053],[1265932800000,2.81053],[1266019200000,2.80789],[1266105600000,2.80789],[1266192000000,2.80789],[1266278400000,2.80772],[1266364800000,2.80786],[1266451200000,2.80786],[1266537600000,2.80691],[1266624000000,2.80632],[1266710400000,2.80632],[1266796800000,2.80632],[1266883200000,2.80361],[1266969600000,2.80351],[1267056000000,2.80351],[1267142400000,2.80351],[1267228800000,2.80351],[1267315200000,2.80351]], 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: [[1264982400000, 2.806667],[1264982400000, 2.806667],[1265068800000, 2.806772],[1265155200000, 2.807158],[1265241600000, 2.807439],[1265328000000, 2.807439],[1265414400000, 2.807158],[1265500800000, 2.807158],[1265587200000, 2.807158],[1265673600000, 2.809614],[1265760000000, 2.810281],[1265846400000, 2.810526],[1265932800000, 2.810526],[1266019200000, 2.807895],[1266105600000, 2.807895],[1266192000000, 2.807895],[1266278400000, 2.807719],[1266364800000, 2.807860],[1266451200000, 2.807860],[1266537600000, 2.806912],[1266624000000, 2.806316],[1266710400000, 2.806316],[1266796800000, 2.806316],[1266883200000, 2.803614],[1266969600000, 2.803509],[1267056000000, 2.803509],[1267142400000, 2.803509],[1267228800000, 2.803509],[1267315200000, 2.803509]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });