$(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: [[1222819200000,3.83388],[1222905600000,3.82002],[1222992000000,3.73433],[1223078400000,3.72345],[1223164800000,3.72345],[1223251200000,3.72345],[1223337600000,3.64985],[1223424000000,3.59623],[1223510400000,3.53759],[1223596800000,3.55871],[1223683200000,3.44737],[1223769600000,3.44737],[1223856000000,3.44737],[1223942400000,3.49215],[1224028800000,3.57894],[1224115200000,3.52282],[1224201600000,3.34161],[1224288000000,3.27373],[1224374400000,3.27373],[1224460800000,3.27373],[1224547200000,3.29179],[1224633600000,3.22472],[1224720000000,3.09859],[1224806400000,2.97115],[1224892800000,3.06761],[1224979200000,3.06761],[1225065600000,3.06761],[1225152000000,3.18206],[1225238400000,3.52016],[1225324800000,3.79333],[1225411200000,3.78424]], 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: [[1222819200000, 3.833876],[1222819200000, 3.833876],[1222905600000, 3.820021],[1222992000000, 3.734332],[1223078400000, 3.723450],[1223164800000, 3.723450],[1223251200000, 3.723450],[1223337600000, 3.649850],[1223424000000, 3.596230],[1223510400000, 3.537589],[1223596800000, 3.558707],[1223683200000, 3.447370],[1223769600000, 3.447370],[1223856000000, 3.447370],[1223942400000, 3.492155],[1224028800000, 3.578939],[1224115200000, 3.522816],[1224201600000, 3.341609],[1224288000000, 3.273726],[1224374400000, 3.273726],[1224460800000, 3.273726],[1224547200000, 3.291789],[1224633600000, 3.224715],[1224720000000, 3.098586],[1224806400000, 2.971154],[1224892800000, 3.067608],[1224979200000, 3.067608],[1225065600000, 3.067608],[1225152000000, 3.182061],[1225238400000, 3.520157],[1225324800000, 3.793333],[1225411200000, 3.784236]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });