$(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: [[1294272000000,5.13237],[1294358400000,5.14499],[1294444800000,5.14499],[1294531200000,5.14499],[1294617600000,5.14499],[1294704000000,5.00321],[1294790400000,5.03507],[1294876800000,5.06658],[1294963200000,5.13203],[1295049600000,5.11956],[1295136000000,5.11956],[1295222400000,5.11956],[1295308800000,5.14495],[1295395200000,5.1704],[1295481600000,5.16056],[1295568000000,5.02937],[1295654400000,5.03968],[1295740800000,5.03968],[1295827200000,5.03968],[1295913600000,5.06822],[1296000000000,5.06884],[1296086400000,5.02932],[1296172800000,5.0216],[1296259200000,4.97998],[1296345600000,4.97998],[1296432000000,4.97998]], 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: [[1294272000000, 5.132370],[1294272000000, 5.132370],[1294358400000, 5.144994],[1294444800000, 5.144994],[1294531200000, 5.144994],[1294617600000, 5.144994],[1294704000000, 5.003213],[1294790400000, 5.035073],[1294876800000, 5.066581],[1294963200000, 5.132027],[1295049600000, 5.119564],[1295136000000, 5.119564],[1295222400000, 5.119564],[1295308800000, 5.144947],[1295395200000, 5.170402],[1295481600000, 5.160563],[1295568000000, 5.029365],[1295654400000, 5.039680],[1295740800000, 5.039680],[1295827200000, 5.039680],[1295913600000, 5.068221],[1296000000000, 5.068842],[1296086400000, 5.029315],[1296172800000, 5.021601],[1296259200000, 4.979981],[1296345600000, 4.979981],[1296432000000, 4.979981]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });