$(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: 'Курс CZK, грн'}, 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: 'Курс CZK', data: [[1217548800000,0.315851],[1217635200000,0.314367],[1217721600000,0.314367],[1217808000000,0.314367],[1217894400000,0.314324],[1217980800000,0.313552],[1218067200000,0.31269],[1218153600000,0.31096],[1218240000000,null],[1218326400000,null],[1218412800000,0.301654],[1218499200000,0.301785],[1218585600000,0.301488],[1218672000000,0.301521],[1218758400000,0.296536],[1218844800000,0.291392],[1218931200000,0.291392],[1219017600000,0.291392],[1219104000000,0.290392],[1219190400000,0.291374],[1219276800000,0.292398],[1219363200000,0.294263],[1219449600000,0.29427],[1219536000000,0.29427],[1219622400000,0.29427],[1219708800000,0.29427],[1219795200000,0.288489],[1219881600000,0.291674],[1219968000000,0.289746],[1220054400000,0.288695],[1220140800000,0.288695]], 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: [[1217548800000, 0.315851],[1217548800000, 0.315851],[1217635200000, 0.314367],[1217721600000, 0.314367],[1217808000000, 0.314367],[1217894400000, 0.314324],[1217980800000, 0.313552],[1218067200000, 0.312690],[1218153600000, 0.310960],[1218412800000, 0.301654],[1218499200000, 0.301785],[1218585600000, 0.301488],[1218672000000, 0.301521],[1218758400000, 0.296536],[1218844800000, 0.291392],[1218931200000, 0.291392],[1219017600000, 0.291392],[1219104000000, 0.290392],[1219190400000, 0.291374],[1219276800000, 0.292398],[1219363200000, 0.294263],[1219449600000, 0.294270],[1219536000000, 0.294270],[1219622400000, 0.294270],[1219708800000, 0.294270],[1219795200000, 0.288489],[1219881600000, 0.291674],[1219968000000, 0.289746],[1220054400000, 0.288695],[1220140800000, 0.288695]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });