$(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: [[1467331200000,6.21354],[1467417600000,6.28637],[1467504000000,6.28637],[1467590400000,6.28637],[1467676800000,6.23868],[1467763200000,6.22923],[1467849600000,6.17063],[1467936000000,6.21],[1468022400000,6.20949],[1468108800000,6.20949],[1468195200000,6.20949],[1468281600000,6.21106],[1468368000000,6.23811],[1468454400000,6.23814],[1468540800000,6.2716],[1468627200000,6.25988],[1468713600000,6.25988],[1468800000000,6.25988],[1468886400000,6.27188],[1468972800000,6.26188],[1469059200000,6.24458],[1469145600000,6.25628],[1469232000000,6.27463],[1469318400000,6.27463],[1469404800000,6.27463],[1469491200000,6.24671],[1469577600000,6.2473],[1469664000000,6.23661],[1469750400000,null],[1469836800000,6.31848],[1469923200000,6.31848]], 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: [[1467331200000, 6.213539],[1467331200000, 6.213539],[1467417600000, 6.286367],[1467504000000, 6.286367],[1467590400000, 6.286367],[1467676800000, 6.238684],[1467763200000, 6.229228],[1467849600000, 6.170628],[1467936000000, 6.210005],[1468022400000, 6.209486],[1468108800000, 6.209486],[1468195200000, 6.209486],[1468281600000, 6.211056],[1468368000000, 6.238114],[1468454400000, 6.238140],[1468540800000, 6.271597],[1468627200000, 6.259876],[1468713600000, 6.259876],[1468800000000, 6.259876],[1468886400000, 6.271883],[1468972800000, 6.261883],[1469059200000, 6.244575],[1469145600000, 6.256283],[1469232000000, 6.274635],[1469318400000, 6.274635],[1469404800000, 6.274635],[1469491200000, 6.246707],[1469577600000, 6.247301],[1469664000000, 6.236606],[1469836800000, 6.318476],[1469923200000, 6.318476]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });