$(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: [[1330560000000,2.60519],[1330646400000,2.58357],[1330732800000,2.57042],[1330819200000,2.57042],[1330905600000,2.57042],[1330992000000,2.55941],[1331078400000,2.53202],[1331164800000,2.51647],[1331251200000,2.51647],[1331337600000,2.51647],[1331424000000,2.51647],[1331510400000,2.51647],[1331596800000,2.54942],[1331683200000,2.52795],[1331769600000,2.51022],[1331856000000,2.51847],[1331942400000,2.53587],[1332028800000,2.53587],[1332115200000,2.53587],[1332201600000,2.54521],[1332288000000,2.55357],[1332374400000,2.54309],[1332460800000,2.52486],[1332547200000,2.53699],[1332633600000,2.53699],[1332720000000,2.53699],[1332806400000,2.56241],[1332892800000,2.57387],[1332979200000,2.56219],[1333065600000,2.54733],[1333152000000,2.56939]], 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: [[1330560000000, 2.605193],[1330560000000, 2.605193],[1330646400000, 2.583567],[1330732800000, 2.570419],[1330819200000, 2.570419],[1330905600000, 2.570419],[1330992000000, 2.559413],[1331078400000, 2.532020],[1331164800000, 2.516473],[1331251200000, 2.516473],[1331337600000, 2.516473],[1331424000000, 2.516473],[1331510400000, 2.516473],[1331596800000, 2.549418],[1331683200000, 2.527948],[1331769600000, 2.510218],[1331856000000, 2.518471],[1331942400000, 2.535866],[1332028800000, 2.535866],[1332115200000, 2.535866],[1332201600000, 2.545213],[1332288000000, 2.553575],[1332374400000, 2.543085],[1332460800000, 2.524858],[1332547200000, 2.536986],[1332633600000, 2.536986],[1332720000000, 2.536986],[1332806400000, 2.562407],[1332892800000, 2.573871],[1332979200000, 2.562194],[1333065600000, 2.547330],[1333152000000, 2.569394]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });