$(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: [[1462060800000,6.53624],[1462147200000,6.53624],[1462233600000,6.53624],[1462320000000,6.53624],[1462406400000,6.59759],[1462492800000,6.49686],[1462579200000,6.50558],[1462665600000,6.50558],[1462752000000,6.50558],[1462838400000,6.50558],[1462924800000,6.48415],[1463011200000,6.53061],[1463097600000,6.52341],[1463184000000,6.57496],[1463270400000,6.57496],[1463356800000,6.57496],[1463443200000,6.57782],[1463529600000,6.5575],[1463616000000,6.49143],[1463702400000,6.43852],[1463788800000,6.3963],[1463875200000,null],[1463961600000,6.3963],[1464048000000,6.35072],[1464134400000,6.32791],[1464220800000,6.33195],[1464307200000,6.35524],[1464393600000,6.39277],[1464480000000,6.39277],[1464566400000,6.39277],[1464652800000,6.3797]], 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: [[1462060800000, 6.536243],[1462060800000, 6.536243],[1462147200000, 6.536243],[1462233600000, 6.536243],[1462320000000, 6.536243],[1462406400000, 6.597590],[1462492800000, 6.496864],[1462579200000, 6.505585],[1462665600000, 6.505585],[1462752000000, 6.505585],[1462838400000, 6.505585],[1462924800000, 6.484153],[1463011200000, 6.530614],[1463097600000, 6.523410],[1463184000000, 6.574957],[1463270400000, 6.574957],[1463356800000, 6.574957],[1463443200000, 6.577823],[1463529600000, 6.557498],[1463616000000, 6.491430],[1463702400000, 6.438523],[1463788800000, 6.396301],[1463961600000, 6.396301],[1464048000000, 6.350716],[1464134400000, 6.327907],[1464220800000, 6.331952],[1464307200000, 6.355236],[1464393600000, 6.392766],[1464480000000, 6.392766],[1464566400000, 6.392766],[1464652800000, 6.379702]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });