$(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: [[1217548800000,2.35901],[1217635200000,2.34122],[1217721600000,2.34122],[1217808000000,2.34122],[1217894400000,2.34723],[1217980800000,2.33299],[1218067200000,2.31444],[1218153600000,2.30935],[1218240000000,null],[1218326400000,null],[1218412800000,2.2372],[1218499200000,2.22698],[1218585600000,2.20494],[1218672000000,2.19683],[1218758400000,2.18221],[1218844800000,2.13743],[1218931200000,2.13743],[1219017600000,2.13743],[1219104000000,2.13053],[1219190400000,2.13431],[1219276800000,2.15192],[1219363200000,2.16635],[1219449600000,2.17585],[1219536000000,2.17585],[1219622400000,2.17585],[1219708800000,2.17585],[1219795200000,2.12796],[1219881600000,2.15078],[1219968000000,2.13672],[1220054400000,2.1311],[1220140800000,2.1311]], 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, 2.359007],[1217548800000, 2.359007],[1217635200000, 2.341222],[1217721600000, 2.341222],[1217808000000, 2.341222],[1217894400000, 2.347229],[1217980800000, 2.332995],[1218067200000, 2.314438],[1218153600000, 2.309353],[1218412800000, 2.237204],[1218499200000, 2.226979],[1218585600000, 2.204942],[1218672000000, 2.196833],[1218758400000, 2.182215],[1218844800000, 2.137426],[1218931200000, 2.137426],[1219017600000, 2.137426],[1219104000000, 2.130529],[1219190400000, 2.134308],[1219276800000, 2.151924],[1219363200000, 2.166351],[1219449600000, 2.175850],[1219536000000, 2.175850],[1219622400000, 2.175850],[1219708800000, 2.175850],[1219795200000, 2.127956],[1219881600000, 2.150780],[1219968000000, 2.136720],[1220054400000, 2.131096],[1220140800000, 2.131096]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });