$(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: [[1128124800000,3.74689],[1128211200000,3.74689],[1128297600000,3.74689],[1128384000000,3.71985],[1128470400000,3.7327],[1128556800000,3.7256],[1128643200000,3.70938],[1128729600000,3.73673],[1128816000000,3.73673],[1128902400000,3.73673],[1128988800000,3.75242],[1129075200000,3.74598],[1129161600000,3.71867],[1129248000000,3.67529],[1129334400000,3.67264],[1129420800000,3.67264],[1129507200000,3.67264],[1129593600000,3.70619],[1129680000000,3.70965],[1129766400000,3.67973],[1129852800000,3.69552],[1129939200000,3.70243],[1130025600000,3.70243],[1130112000000,3.70243],[1130198400000,3.70067],[1130284800000,3.70691],[1130371200000,3.72078],[1130457600000,3.73219],[1130544000000,3.73648],[1130630400000,3.73648],[1130716800000,3.73648]], 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: [[1128124800000, 3.746895],[1128124800000, 3.746895],[1128211200000, 3.746895],[1128297600000, 3.746895],[1128384000000, 3.719855],[1128470400000, 3.732704],[1128556800000, 3.725599],[1128643200000, 3.709382],[1128729600000, 3.736729],[1128816000000, 3.736729],[1128902400000, 3.736729],[1128988800000, 3.752422],[1129075200000, 3.745980],[1129161600000, 3.718673],[1129248000000, 3.675293],[1129334400000, 3.672644],[1129420800000, 3.672644],[1129507200000, 3.672644],[1129593600000, 3.706190],[1129680000000, 3.709652],[1129766400000, 3.679726],[1129852800000, 3.695522],[1129939200000, 3.702429],[1130025600000, 3.702429],[1130112000000, 3.702429],[1130198400000, 3.700669],[1130284800000, 3.706912],[1130371200000, 3.720777],[1130457600000, 3.732194],[1130544000000, 3.736477],[1130630400000, 3.736477],[1130716800000, 3.736477]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });