$(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: [[1430438400000,5.88819],[1430524800000,5.88819],[1430611200000,5.88819],[1430697600000,5.88819],[1430784000000,5.88819],[1430870400000,5.8468],[1430956800000,5.83248],[1431043200000,5.78996],[1431129600000,5.67956],[1431216000000,5.67956],[1431302400000,5.67956],[1431388800000,5.67956],[1431475200000,5.65335],[1431561600000,5.6475],[1431648000000,5.75308],[1431734400000,5.79911],[1431820800000,5.79911],[1431907200000,5.79911],[1431993600000,6.20237],[1432080000000,5.86879],[1432166400000,5.69196],[1432252800000,5.62068],[1432339200000,5.67331],[1432425600000,5.67331],[1432512000000,5.67331],[1432598400000,5.64834],[1432684800000,5.65516],[1432771200000,null],[1432857600000,5.55454],[1432944000000,5.60079],[1433030400000,5.60079]], 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: [[1430438400000, 5.888194],[1430438400000, 5.888194],[1430524800000, 5.888194],[1430611200000, 5.888194],[1430697600000, 5.888194],[1430784000000, 5.888194],[1430870400000, 5.846802],[1430956800000, 5.832483],[1431043200000, 5.789956],[1431129600000, 5.679560],[1431216000000, 5.679560],[1431302400000, 5.679560],[1431388800000, 5.679560],[1431475200000, 5.653347],[1431561600000, 5.647504],[1431648000000, 5.753085],[1431734400000, 5.799112],[1431820800000, 5.799112],[1431907200000, 5.799112],[1431993600000, 6.202375],[1432080000000, 5.868790],[1432166400000, 5.691958],[1432252800000, 5.620679],[1432339200000, 5.673307],[1432425600000, 5.673307],[1432512000000, 5.673307],[1432598400000, 5.648338],[1432684800000, 5.655163],[1432857600000, 5.554542],[1432944000000, 5.600785],[1433030400000, 5.600785]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });