$(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: [[1262736000000,5.41812],[1262822400000,5.40877],[1262908800000,5.40877],[1262995200000,5.40877],[1263081600000,5.40877],[1263168000000,5.40877],[1263254400000,5.50171],[1263340800000,5.49349],[1263427200000,5.53162],[1263513600000,5.48124],[1263600000000,5.50284],[1263686400000,5.50284],[1263772800000,5.50284],[1263859200000,5.51305],[1263945600000,5.48252],[1264032000000,5.45617],[1264118400000,5.42173],[1264204800000,5.36996],[1264291200000,5.36996],[1264377600000,5.36996],[1264464000000,5.38369],[1264550400000,5.34323],[1264636800000,5.36084],[1264723200000,5.35979],[1264809600000,5.37268],[1264896000000,5.37268]], 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: [[1262736000000, 5.418125],[1262736000000, 5.418125],[1262822400000, 5.408768],[1262908800000, 5.408768],[1262995200000, 5.408768],[1263081600000, 5.408768],[1263168000000, 5.408768],[1263254400000, 5.501705],[1263340800000, 5.493494],[1263427200000, 5.531618],[1263513600000, 5.481241],[1263600000000, 5.502835],[1263686400000, 5.502835],[1263772800000, 5.502835],[1263859200000, 5.513055],[1263945600000, 5.482520],[1264032000000, 5.456172],[1264118400000, 5.421727],[1264204800000, 5.369959],[1264291200000, 5.369959],[1264377600000, 5.369959],[1264464000000, 5.383686],[1264550400000, 5.343235],[1264636800000, 5.360838],[1264723200000, 5.359786],[1264809600000, 5.372675],[1264896000000, 5.372675]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });