$(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: [[1228089600000,2.53512],[1228176000000,2.60792],[1228262400000,2.66193],[1228348800000,2.69873],[1228435200000,2.6906],[1228521600000,2.6996],[1228608000000,2.6996],[1228694400000,2.6996],[1228780800000,2.75445],[1228867200000,2.76262],[1228953600000,2.79788],[1229040000000,2.86544],[1229126400000,2.88726],[1229212800000,2.88726],[1229299200000,2.88726],[1229385600000,2.99475],[1229472000000,3.06816],[1229558400000,3.20236],[1229644800000,3.33516],[1229731200000,3.18091],[1229817600000,3.18091],[1229904000000,3.18091],[1229990400000,3.18776],[1230076800000,3.15363],[1230163200000,3.15972],[1230249600000,3.15972],[1230336000000,3.12322],[1230422400000,3.12322],[1230508800000,3.12322],[1230595200000,3.18232],[1230681600000,3.14396]], 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: [[1228089600000, 2.535116],[1228089600000, 2.535116],[1228176000000, 2.607922],[1228262400000, 2.661928],[1228348800000, 2.698729],[1228435200000, 2.690595],[1228521600000, 2.699602],[1228608000000, 2.699602],[1228694400000, 2.699602],[1228780800000, 2.754445],[1228867200000, 2.762617],[1228953600000, 2.797884],[1229040000000, 2.865444],[1229126400000, 2.887255],[1229212800000, 2.887255],[1229299200000, 2.887255],[1229385600000, 2.994753],[1229472000000, 3.068157],[1229558400000, 3.202364],[1229644800000, 3.335164],[1229731200000, 3.180910],[1229817600000, 3.180910],[1229904000000, 3.180910],[1229990400000, 3.187756],[1230076800000, 3.153632],[1230163200000, 3.159724],[1230249600000, 3.159724],[1230336000000, 3.123219],[1230422400000, 3.123219],[1230508800000, 3.123219],[1230595200000, 3.182316],[1230681600000, 3.143959]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });