$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1228089600000,12.3372],[1228176000000,12.6969],[1228262400000,12.958],[1228348800000,13.1371],[1228435200000,13.0957],[1228521600000,13.1414],[1228608000000,13.1414],[1228694400000,13.1414],[1228780800000,13.4084],[1228867200000,13.4519],[1228953600000,13.6217],[1229040000000,13.9507],[1229126400000,14.0509],[1229212800000,14.0509],[1229299200000,14.0509],[1229385600000,14.5802],[1229472000000,14.9502],[1229558400000,15.602],[1229644800000,16.2467],[1229731200000,15.5106],[1229817600000,15.5106],[1229904000000,15.5106],[1229990400000,15.6057],[1230076800000,15.4277],[1230163200000,15.4509],[1230249600000,15.4509],[1230336000000,15.2724],[1230422400000,15.2724],[1230508800000,15.2724],[1230595200000,15.5614],[1230681600000,15.3347]], 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, 12.337208],[1228089600000, 12.337208],[1228176000000, 12.696889],[1228262400000, 12.957993],[1228348800000, 13.137139],[1228435200000, 13.095696],[1228521600000, 13.141388],[1228608000000, 13.141388],[1228694400000, 13.141388],[1228780800000, 13.408355],[1228867200000, 13.451928],[1228953600000, 13.621733],[1229040000000, 13.950657],[1229126400000, 14.050903],[1229212800000, 14.050903],[1229299200000, 14.050903],[1229385600000, 14.580208],[1229472000000, 14.950230],[1229558400000, 15.601979],[1229644800000, 16.246690],[1229731200000, 15.510588],[1229817600000, 15.510588],[1229904000000, 15.510588],[1229990400000, 15.605676],[1230076800000, 15.427688],[1230163200000, 15.450921],[1230249600000, 15.450921],[1230336000000, 15.272412],[1230422400000, 15.272412],[1230508800000, 15.272412],[1230595200000, 15.561394],[1230681600000, 15.334737]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });