$(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: [[1109635200000,4.1301],[1109721600000,4.1337],[1109808000000,4.1219],[1109894400000,4.14948],[1109980800000,4.15272],[1110067200000,4.15272],[1110153600000,4.15272],[1110240000000,4.15272],[1110326400000,4.15272],[1110412800000,4.1418],[1110499200000,4.12598],[1110585600000,4.17899],[1110672000000,4.17899],[1110758400000,4.17899],[1110844800000,4.09505],[1110931200000,4.09512],[1111017600000,3.98092],[1111104000000,3.95895],[1111190400000,4.00466],[1111276800000,4.00466],[1111363200000,4.00466],[1111449600000,null],[1111536000000,3.95924],[1111622400000,3.87683],[1111708800000,3.90095],[1111795200000,3.90095],[1111881600000,3.90095],[1111968000000,3.90095],[1112054400000,3.90095],[1112140800000,3.78827],[1112227200000,3.82996]], 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: [[1109635200000, 4.130098],[1109635200000, 4.130098],[1109721600000, 4.133696],[1109808000000, 4.121902],[1109894400000, 4.149476],[1109980800000, 4.152718],[1110067200000, 4.152718],[1110153600000, 4.152718],[1110240000000, 4.152718],[1110326400000, 4.152718],[1110412800000, 4.141795],[1110499200000, 4.125984],[1110585600000, 4.178987],[1110672000000, 4.178987],[1110758400000, 4.178987],[1110844800000, 4.095049],[1110931200000, 4.095116],[1111017600000, 3.980917],[1111104000000, 3.958949],[1111190400000, 4.004664],[1111276800000, 4.004664],[1111363200000, 4.004664],[1111536000000, 3.959235],[1111622400000, 3.876825],[1111708800000, 3.900953],[1111795200000, 3.900953],[1111881600000, 3.900953],[1111968000000, 3.900953],[1112054400000, 3.900953],[1112140800000, 3.788274],[1112227200000, 3.829956]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });