$(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: [[1114905600000,3.62891],[1114992000000,3.62891],[1115078400000,3.62891],[1115164800000,3.62891],[1115251200000,3.73062],[1115337600000,3.77004],[1115424000000,3.74126],[1115510400000,3.74126],[1115596800000,3.74126],[1115683200000,3.74126],[1115769600000,3.71014],[1115856000000,3.68871],[1115942400000,3.72451],[1116028800000,3.68868],[1116115200000,3.68868],[1116201600000,3.68868],[1116288000000,3.64708],[1116374400000,3.65474],[1116460800000,3.66721],[1116547200000,3.69756],[1116633600000,3.69546],[1116720000000,3.69546],[1116806400000,3.69546],[1116892800000,3.63721],[1116979200000,3.64007],[1117065600000,3.63496],[1117152000000,3.64334],[1117238400000,3.66797],[1117324800000,3.66797],[1117411200000,3.66797],[1117497600000,3.67594]], 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: [[1114905600000, 3.628909],[1114905600000, 3.628909],[1114992000000, 3.628909],[1115078400000, 3.628909],[1115164800000, 3.628909],[1115251200000, 3.730618],[1115337600000, 3.770038],[1115424000000, 3.741265],[1115510400000, 3.741265],[1115596800000, 3.741265],[1115683200000, 3.741265],[1115769600000, 3.710145],[1115856000000, 3.688711],[1115942400000, 3.724506],[1116028800000, 3.688678],[1116115200000, 3.688678],[1116201600000, 3.688678],[1116288000000, 3.647078],[1116374400000, 3.654742],[1116460800000, 3.667207],[1116547200000, 3.697562],[1116633600000, 3.695458],[1116720000000, 3.695458],[1116806400000, 3.695458],[1116892800000, 3.637206],[1116979200000, 3.640074],[1117065600000, 3.634958],[1117152000000, 3.643343],[1117238400000, 3.667972],[1117324800000, 3.667972],[1117411200000, 3.667972],[1117497600000, 3.675943]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });