$(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: [[1385856000000,2.58661],[1385942400000,2.58661],[1386028800000,2.58045],[1386115200000,2.58205],[1386201600000,2.58773],[1386288000000,2.59361],[1386374400000,2.60366],[1386460800000,2.60366],[1386547200000,2.60366],[1386633600000,2.61972],[1386720000000,2.62771],[1386806400000,2.63058],[1386892800000,2.63261],[1386979200000,2.62513],[1387065600000,2.62513],[1387152000000,2.62513],[1387238400000,2.6369],[1387324800000,2.62971],[1387411200000,2.63015],[1387497600000,2.61722],[1387584000000,2.62032],[1387670400000,2.62032],[1387756800000,2.62032],[1387843200000,2.63288],[1387929600000,2.64053],[1388016000000,2.64053],[1388102400000,2.64053],[1388188800000,2.65965],[1388275200000,2.65965],[1388361600000,2.65965],[1388448000000,2.65965]], 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: [[1385856000000, 2.586608],[1385856000000, 2.586608],[1385942400000, 2.586608],[1386028800000, 2.580453],[1386115200000, 2.582055],[1386201600000, 2.587734],[1386288000000, 2.593613],[1386374400000, 2.603662],[1386460800000, 2.603662],[1386547200000, 2.603662],[1386633600000, 2.619723],[1386720000000, 2.627705],[1386806400000, 2.630576],[1386892800000, 2.632608],[1386979200000, 2.625129],[1387065600000, 2.625129],[1387152000000, 2.625129],[1387238400000, 2.636898],[1387324800000, 2.629714],[1387411200000, 2.630155],[1387497600000, 2.617224],[1387584000000, 2.620325],[1387670400000, 2.620325],[1387756800000, 2.620325],[1387843200000, 2.632884],[1387929600000, 2.640534],[1388016000000, 2.640534],[1388102400000, 2.640534],[1388188800000, 2.659648],[1388275200000, 2.659648],[1388361600000, 2.659648],[1388448000000, 2.659648]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });