$(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: [[1267401600000,2.73123],[1267488000000,2.74276],[1267574400000,2.76345],[1267660800000,2.79256],[1267747200000,2.79744],[1267833600000,2.79799],[1267920000000,2.79799],[1268006400000,2.79799],[1268092800000,2.79799],[1268179200000,2.77864],[1268265600000,2.81452],[1268352000000,2.79371],[1268438400000,2.81294],[1268524800000,2.81294],[1268611200000,2.81294],[1268697600000,2.80669],[1268784000000,2.81652],[1268870400000,2.83641],[1268956800000,2.81312],[1269043200000,2.77986],[1269129600000,2.77986],[1269216000000,2.77986],[1269302400000,2.73003],[1269388800000,2.75923],[1269475200000,2.72173],[1269561600000,2.72444],[1269648000000,2.72258],[1269734400000,2.72258],[1269820800000,2.72258],[1269907200000,2.74329],[1269993600000,2.75665]], 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: [[1267401600000, 2.731228],[1267401600000, 2.731228],[1267488000000, 2.742760],[1267574400000, 2.763450],[1267660800000, 2.792558],[1267747200000, 2.797438],[1267833600000, 2.797987],[1267920000000, 2.797987],[1268006400000, 2.797987],[1268092800000, 2.797987],[1268179200000, 2.778639],[1268265600000, 2.814520],[1268352000000, 2.793713],[1268438400000, 2.812940],[1268524800000, 2.812940],[1268611200000, 2.812940],[1268697600000, 2.806693],[1268784000000, 2.816525],[1268870400000, 2.836406],[1268956800000, 2.813121],[1269043200000, 2.779863],[1269129600000, 2.779863],[1269216000000, 2.779863],[1269302400000, 2.730031],[1269388800000, 2.759227],[1269475200000, 2.721726],[1269561600000, 2.724445],[1269648000000, 2.722580],[1269734400000, 2.722580],[1269820800000, 2.722580],[1269907200000, 2.743285],[1269993600000, 2.756646]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });