$(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: [[1220227200000,2.1311],[1220313600000,2.1218],[1220400000000,2.09973],[1220486400000,2.07891],[1220572800000,2.07534],[1220659200000,2.01297],[1220745600000,2.01297],[1220832000000,2.01297],[1220918400000,1.98599],[1221004800000,1.98807],[1221091200000,1.96748],[1221177600000,1.97563],[1221264000000,2.02728],[1221350400000,2.02728],[1221436800000,2.02728],[1221523200000,2.05006],[1221609600000,2.03441],[1221696000000,2.06099],[1221782400000,2.10322],[1221868800000,2.09003],[1221955200000,2.09003],[1222041600000,2.09003],[1222128000000,2.13977],[1222214400000,2.1597],[1222300800000,2.14618],[1222387200000,2.14005],[1222473600000,2.11522],[1222560000000,2.11522],[1222646400000,2.11522],[1222732800000,2.06119]], 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: [[1220227200000, 2.131096],[1220227200000, 2.131096],[1220313600000, 2.121796],[1220400000000, 2.099733],[1220486400000, 2.078913],[1220572800000, 2.075344],[1220659200000, 2.012972],[1220745600000, 2.012972],[1220832000000, 2.012972],[1220918400000, 1.985989],[1221004800000, 1.988069],[1221091200000, 1.967483],[1221177600000, 1.975629],[1221264000000, 2.027276],[1221350400000, 2.027276],[1221436800000, 2.027276],[1221523200000, 2.050057],[1221609600000, 2.034410],[1221696000000, 2.060993],[1221782400000, 2.103221],[1221868800000, 2.090032],[1221955200000, 2.090032],[1222041600000, 2.090032],[1222128000000, 2.139771],[1222214400000, 2.159696],[1222300800000, 2.146181],[1222387200000, 2.140051],[1222473600000, 2.115218],[1222560000000, 2.115218],[1222646400000, 2.115218],[1222732800000, 2.061185]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });