$(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: [[1225497600000,2.05327],[1225584000000,2.05327],[1225670400000,2.05327],[1225756800000,2.08643],[1225843200000,2.11792],[1225929600000,2.13033],[1226016000000,2.05586],[1226102400000,2.02006],[1226188800000,2.02006],[1226275200000,2.02006],[1226361600000,2.04431],[1226448000000,1.9641],[1226534400000,1.92319],[1226620800000,1.93497],[1226707200000,1.96326],[1226793600000,1.96326],[1226880000000,1.96326],[1226966400000,1.9441],[1227052800000,1.94459],[1227139200000,1.96684],[1227225600000,1.95421],[1227312000000,2.02673],[1227398400000,2.02673],[1227484800000,2.02673],[1227571200000,2.08498],[1227657600000,2.20774],[1227744000000,2.31467],[1227830400000,2.30413],[1227916800000,2.31886],[1228003200000,2.31886]], 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: [[1225497600000, 2.053265],[1225497600000, 2.053265],[1225584000000, 2.053265],[1225670400000, 2.053265],[1225756800000, 2.086434],[1225843200000, 2.117921],[1225929600000, 2.130328],[1226016000000, 2.055857],[1226102400000, 2.020057],[1226188800000, 2.020057],[1226275200000, 2.020057],[1226361600000, 2.044311],[1226448000000, 1.964096],[1226534400000, 1.923188],[1226620800000, 1.934973],[1226707200000, 1.963261],[1226793600000, 1.963261],[1226880000000, 1.963261],[1226966400000, 1.944097],[1227052800000, 1.944587],[1227139200000, 1.966835],[1227225600000, 1.954206],[1227312000000, 2.026730],[1227398400000, 2.026730],[1227484800000, 2.026730],[1227571200000, 2.084982],[1227657600000, 2.207738],[1227744000000, 2.314670],[1227830400000, 2.304126],[1227916800000, 2.318864],[1228003200000, 2.318864]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });