$(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: [[1243814400000,4.94114],[1243900800000,4.98279],[1243987200000,4.97601],[1244073600000,4.97127],[1244160000000,4.92529],[1244246400000,4.94247],[1244332800000,4.94247],[1244419200000,4.94247],[1244505600000,4.94247],[1244592000000,4.90531],[1244678400000,4.9459],[1244764800000,4.92168],[1244851200000,4.95031],[1244937600000,4.95031],[1245024000000,4.95031],[1245110400000,4.91734],[1245196800000,4.93223],[1245283200000,4.88746],[1245369600000,4.85905],[1245456000000,4.9033],[1245542400000,4.9033],[1245628800000,4.9033],[1245715200000,4.87085],[1245801600000,4.84816],[1245888000000,4.89945],[1245974400000,4.90255],[1246060800000,4.96913],[1246147200000,4.96913],[1246233600000,4.96913],[1246320000000,4.96913]], 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: [[1243814400000, 4.941142],[1243814400000, 4.941142],[1243900800000, 4.982794],[1243987200000, 4.976011],[1244073600000, 4.971274],[1244160000000, 4.925291],[1244246400000, 4.942471],[1244332800000, 4.942471],[1244419200000, 4.942471],[1244505600000, 4.942471],[1244592000000, 4.905310],[1244678400000, 4.945904],[1244764800000, 4.921680],[1244851200000, 4.950309],[1244937600000, 4.950309],[1245024000000, 4.950309],[1245110400000, 4.917338],[1245196800000, 4.932230],[1245283200000, 4.887460],[1245369600000, 4.859051],[1245456000000, 4.903302],[1245542400000, 4.903302],[1245628800000, 4.903302],[1245715200000, 4.870845],[1245801600000, 4.848157],[1245888000000, 4.899449],[1245974400000, 4.902554],[1246060800000, 4.969125],[1246147200000, 4.969125],[1246233600000, 4.969125],[1246320000000, 4.969125]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });