$(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: [[1196467200000,2.15892],[1196553600000,2.15892],[1196640000000,2.15892],[1196726400000,2.14502],[1196812800000,2.15599],[1196899200000,2.15292],[1196985600000,2.12864],[1197072000000,2.14254],[1197158400000,2.14254],[1197244800000,2.14254],[1197331200000,2.15263],[1197417600000,2.1459],[1197504000000,2.14634],[1197590400000,2.14751],[1197676800000,2.12206],[1197763200000,2.12206],[1197849600000,2.12206],[1197936000000,2.10509],[1198022400000,2.10846],[1198108800000,2.10392],[1198195200000,2.09866],[1198281600000,2.10319],[1198368000000,2.10319],[1198454400000,2.10319],[1198540800000,2.10582],[1198627200000,2.10582],[1198713600000,2.10582],[1198800000000,2.12308],[1198886400000,2.14882]], 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: [[1196467200000, 2.158916],[1196467200000, 2.158916],[1196553600000, 2.158916],[1196640000000, 2.158916],[1196726400000, 2.145021],[1196812800000, 2.155991],[1196899200000, 2.152919],[1196985600000, 2.128641],[1197072000000, 2.142535],[1197158400000, 2.142535],[1197244800000, 2.142535],[1197331200000, 2.152627],[1197417600000, 2.145899],[1197504000000, 2.146338],[1197590400000, 2.147508],[1197676800000, 2.122059],[1197763200000, 2.122059],[1197849600000, 2.122059],[1197936000000, 2.105093],[1198022400000, 2.108457],[1198108800000, 2.103923],[1198195200000, 2.098658],[1198281600000, 2.103192],[1198368000000, 2.103192],[1198454400000, 2.103192],[1198540800000, 2.105824],[1198627200000, 2.105824],[1198713600000, 2.105824],[1198800000000, 2.123083],[1198886400000, 2.148824]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });