$(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: [[1483228800000,6.43905],[1483315200000,6.43905],[1483401600000,6.43905],[1483488000000,6.43905],[1483574400000,6.36366],[1483660800000,6.36366],[1483747200000,6.56972],[1483833600000,6.56972],[1483920000000,6.56972],[1484006400000,6.56972],[1484092800000,6.57083],[1484179200000,6.51603],[1484265600000,6.64961],[1484352000000,null],[1484438400000,6.74413],[1484524800000,6.74413],[1484611200000,6.71596],[1484697600000,6.75615],[1484784000000,6.71292],[1484870400000,6.69486],[1484956800000,6.67337],[1485043200000,6.67337],[1485129600000,6.67337],[1485216000000,6.69887],[1485302400000,6.69385],[1485388800000,6.69776],[1485475200000,6.70381],[1485561600000,6.69217],[1485648000000,6.69217],[1485734400000,6.69217],[1485820800000,6.65609]], 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: [[1483228800000, 6.439048],[1483228800000, 6.439048],[1483315200000, 6.439048],[1483401600000, 6.439048],[1483488000000, 6.439048],[1483574400000, 6.363658],[1483660800000, 6.363658],[1483747200000, 6.569724],[1483833600000, 6.569724],[1483920000000, 6.569724],[1484006400000, 6.569724],[1484092800000, 6.570830],[1484179200000, 6.516027],[1484265600000, 6.649609],[1484438400000, 6.744134],[1484524800000, 6.744134],[1484611200000, 6.715955],[1484697600000, 6.756155],[1484784000000, 6.712918],[1484870400000, 6.694863],[1484956800000, 6.673373],[1485043200000, 6.673373],[1485129600000, 6.673373],[1485216000000, 6.698866],[1485302400000, 6.693848],[1485388800000, 6.697762],[1485475200000, 6.703809],[1485561600000, 6.692174],[1485648000000, 6.692174],[1485734400000, 6.692174],[1485820800000, 6.656092]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });