$(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: [[1456790400000,6.7751],[1456876800000,6.77442],[1456963200000,6.72235],[1457049600000,6.59348],[1457136000000,6.711],[1457222400000,6.711],[1457308800000,6.711],[1457395200000,6.711],[1457481600000,6.711],[1457568000000,6.6584],[1457654400000,6.45516],[1457740800000,6.65033],[1457827200000,6.69531],[1457913600000,6.69531],[1458000000000,6.88301],[1458086400000,6.96379],[1458172800000,6.90351],[1458259200000,7.04053],[1458345600000,6.94413],[1458432000000,6.94413],[1458518400000,6.94413],[1458604800000,7.04108],[1458691200000,6.86804],[1458777600000,6.82786],[1458864000000,6.84343],[1458950400000,6.79603],[1459036800000,6.79603],[1459123200000,6.79603],[1459209600000,6.85072],[1459296000000,6.9641],[1459382400000,6.97948]], 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: [[1456790400000, 6.775101],[1456790400000, 6.775101],[1456876800000, 6.774423],[1456963200000, 6.722351],[1457049600000, 6.593477],[1457136000000, 6.710999],[1457222400000, 6.710999],[1457308800000, 6.710999],[1457395200000, 6.710999],[1457481600000, 6.710999],[1457568000000, 6.658402],[1457654400000, 6.455159],[1457740800000, 6.650333],[1457827200000, 6.695315],[1457913600000, 6.695315],[1458000000000, 6.883007],[1458086400000, 6.963793],[1458172800000, 6.903509],[1458259200000, 7.040527],[1458345600000, 6.944134],[1458432000000, 6.944134],[1458518400000, 6.944134],[1458604800000, 7.041082],[1458691200000, 6.868044],[1458777600000, 6.827862],[1458864000000, 6.843428],[1458950400000, 6.796029],[1459036800000, 6.796029],[1459123200000, 6.796029],[1459209600000, 6.850723],[1459296000000, 6.964095],[1459382400000, 6.979483]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });