$(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: [[1509494400000,7.36617],[1509580800000,7.37191],[1509667200000,7.40079],[1509753600000,7.41579],[1509840000000,7.41579],[1509926400000,7.41579],[1510012800000,7.33813],[1510099200000,7.29546],[1510185600000,7.29114],[1510272000000,7.29411],[1510358400000,7.3042],[1510444800000,7.3042],[1510531200000,7.3042],[1510617600000,7.29046],[1510704000000,7.34291],[1510790400000,7.38232],[1510876800000,7.36074],[1510963200000,7.38172],[1511049600000,7.38172],[1511136000000,7.38172],[1511222400000,7.37223],[1511308800000,7.34064],[1511395200000,7.42693],[1511481600000,7.55518],[1511568000000,7.59109],[1511654400000,7.59109],[1511740800000,7.59109],[1511827200000,7.62077],[1511913600000,7.59353],[1512000000000,7.60591]], 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: [[1509494400000, 7.366168],[1509494400000, 7.366168],[1509580800000, 7.371912],[1509667200000, 7.400790],[1509753600000, 7.415794],[1509840000000, 7.415794],[1509926400000, 7.415794],[1510012800000, 7.338133],[1510099200000, 7.295461],[1510185600000, 7.291138],[1510272000000, 7.294106],[1510358400000, 7.304197],[1510444800000, 7.304197],[1510531200000, 7.304197],[1510617600000, 7.290457],[1510704000000, 7.342910],[1510790400000, 7.382325],[1510876800000, 7.360741],[1510963200000, 7.381719],[1511049600000, 7.381719],[1511136000000, 7.381719],[1511222400000, 7.372231],[1511308800000, 7.340641],[1511395200000, 7.426929],[1511481600000, 7.555179],[1511568000000, 7.591094],[1511654400000, 7.591094],[1511740800000, 7.591094],[1511827200000, 7.620766],[1511913600000, 7.593531],[1512000000000, 7.605907]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });