$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1109635200000,1.79821],[1109721600000,1.80659],[1109808000000,1.77546],[1109894400000,1.78393],[1109980800000,1.76861],[1110067200000,1.76861],[1110153600000,1.76861],[1110240000000,1.76861],[1110326400000,1.76861],[1110412800000,1.81097],[1110499200000,1.78801],[1110585600000,1.7979],[1110672000000,1.7979],[1110758400000,1.7979],[1110844800000,1.76713],[1110931200000,1.76885],[1111017600000,1.73976],[1111104000000,1.71989],[1111190400000,1.72749],[1111276800000,1.72749],[1111363200000,1.72749],[1111449600000,null],[1111536000000,1.71564],[1111622400000,1.67276],[1111708800000,1.66378],[1111795200000,1.66378],[1111881600000,1.66378],[1111968000000,1.66378],[1112054400000,1.66378],[1112140800000,1.64203],[1112227200000,1.66227]], 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, 1.798209],[1109635200000, 1.798209],[1109721600000, 1.806592],[1109808000000, 1.775461],[1109894400000, 1.783934],[1109980800000, 1.768607],[1110067200000, 1.768607],[1110153600000, 1.768607],[1110240000000, 1.768607],[1110326400000, 1.768607],[1110412800000, 1.810974],[1110499200000, 1.788013],[1110585600000, 1.797898],[1110672000000, 1.797898],[1110758400000, 1.797898],[1110844800000, 1.767125],[1110931200000, 1.768852],[1111017600000, 1.739762],[1111104000000, 1.719894],[1111190400000, 1.727494],[1111276800000, 1.727494],[1111363200000, 1.727494],[1111536000000, 1.715636],[1111622400000, 1.672762],[1111708800000, 1.663777],[1111795200000, 1.663777],[1111881600000, 1.663777],[1111968000000, 1.663777],[1112054400000, 1.663777],[1112140800000, 1.642032],[1112227200000, 1.662274]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });