$(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: [[1475280000000,6.70221],[1475366400000,6.70221],[1475452800000,6.70221],[1475539200000,6.78369],[1475625600000,6.72333],[1475712000000,6.76152],[1475798400000,6.74543],[1475884800000,6.72383],[1475971200000,6.72383],[1476057600000,6.72383],[1476144000000,6.73107],[1476230400000,6.70564],[1476316800000,6.6179],[1476403200000,6.61736],[1476489600000,6.61736],[1476576000000,6.61736],[1476662400000,6.61736],[1476748800000,6.5493],[1476835200000,6.53283],[1476921600000,6.5328],[1477008000000,6.52062],[1477094400000,6.45916],[1477180800000,6.45916],[1477267200000,6.45916],[1477353600000,6.46922],[1477440000000,6.46513],[1477526400000,6.46263],[1477612800000,6.44453],[1477699200000,6.43006],[1477785600000,6.43006],[1477872000000,6.43006]], 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: [[1475280000000, 6.702206],[1475280000000, 6.702206],[1475366400000, 6.702206],[1475452800000, 6.702206],[1475539200000, 6.783689],[1475625600000, 6.723326],[1475712000000, 6.761515],[1475798400000, 6.745427],[1475884800000, 6.723833],[1475971200000, 6.723833],[1476057600000, 6.723833],[1476144000000, 6.731071],[1476230400000, 6.705636],[1476316800000, 6.617898],[1476403200000, 6.617358],[1476489600000, 6.617358],[1476576000000, 6.617358],[1476662400000, 6.617358],[1476748800000, 6.549303],[1476835200000, 6.532834],[1476921600000, 6.532795],[1477008000000, 6.520615],[1477094400000, 6.459163],[1477180800000, 6.459163],[1477267200000, 6.459163],[1477353600000, 6.469223],[1477440000000, 6.465133],[1477526400000, 6.462630],[1477612800000, 6.444534],[1477699200000, 6.430064],[1477785600000, 6.430064],[1477872000000, 6.430064]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });