$(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: [[1414800000000,3.86911],[1414886400000,3.86911],[1414972800000,3.86911],[1415059200000,3.84558],[1415145600000,3.83601],[1415232000000,3.99786],[1415318400000,4.11392],[1415404800000,4.29074],[1415491200000,4.29074],[1415577600000,4.29074],[1415664000000,4.33896],[1415750400000,4.67225],[1415836800000,4.63297],[1415923200000,4.59771],[1416009600000,4.5404],[1416096000000,4.5404],[1416182400000,4.5404],[1416268800000,null],[1416355200000,4.51468],[1416441600000,4.51376],[1416528000000,4.50066],[1416614400000,4.49197],[1416700800000,4.49197],[1416787200000,4.49197],[1416873600000,4.44943],[1416960000000,4.44051],[1417046400000,4.44314],[1417132800000,4.46669],[1417219200000,4.46951],[1417305600000,4.46951]], 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: [[1414800000000, 3.869112],[1414800000000, 3.869112],[1414886400000, 3.869112],[1414972800000, 3.869112],[1415059200000, 3.845583],[1415145600000, 3.836013],[1415232000000, 3.997860],[1415318400000, 4.113917],[1415404800000, 4.290739],[1415491200000, 4.290739],[1415577600000, 4.290739],[1415664000000, 4.338964],[1415750400000, 4.672248],[1415836800000, 4.632966],[1415923200000, 4.597709],[1416009600000, 4.540397],[1416096000000, 4.540397],[1416182400000, 4.540397],[1416355200000, 4.514684],[1416441600000, 4.513756],[1416528000000, 4.500663],[1416614400000, 4.491973],[1416700800000, 4.491973],[1416787200000, 4.491973],[1416873600000, 4.449430],[1416960000000, 4.440513],[1417046400000, 4.443138],[1417132800000, 4.466685],[1417219200000, 4.469508],[1417305600000, 4.469508]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });