$(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: 'Курс TRY, грн'}, 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: 'Курс TRY', data: [[1351728000000,4.45492],[1351814400000,4.46042],[1351900800000,4.47051],[1351987200000,4.47051],[1352073600000,4.47051],[1352160000000,4.48061],[1352246400000,4.49894],[1352332800000,4.48548],[1352419200000,4.47861],[1352505600000,4.45796],[1352592000000,4.45796],[1352678400000,4.45796],[1352764800000,4.44502],[1352851200000,4.43431],[1352937600000,4.4293],[1353024000000,4.43646],[1353110400000,4.43997],[1353196800000,4.43997],[1353283200000,4.43997],[1353369600000,4.43372],[1353456000000,4.44831],[1353542400000,4.43133],[1353628800000,4.44312],[1353715200000,4.44729],[1353801600000,4.44729],[1353888000000,4.44729],[1353974400000,4.453],[1354060800000,4.45771],[1354147200000,4.46032],[1354233600000,4.46887]], 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: [[1351728000000, 4.454918],[1351728000000, 4.454918],[1351814400000, 4.460418],[1351900800000, 4.470514],[1351987200000, 4.470514],[1352073600000, 4.470514],[1352160000000, 4.480611],[1352246400000, 4.498940],[1352332800000, 4.485483],[1352419200000, 4.478612],[1352505600000, 4.457959],[1352592000000, 4.457959],[1352678400000, 4.457959],[1352764800000, 4.445016],[1352851200000, 4.434308],[1352937600000, 4.429302],[1353024000000, 4.436459],[1353110400000, 4.439975],[1353196800000, 4.439975],[1353283200000, 4.439975],[1353369600000, 4.433723],[1353456000000, 4.448311],[1353542400000, 4.431327],[1353628800000, 4.443121],[1353715200000, 4.447293],[1353801600000, 4.447293],[1353888000000, 4.447293],[1353974400000, 4.452998],[1354060800000, 4.457714],[1354147200000, 4.460316],[1354233600000, 4.468871]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });