$(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: [[1117584000000,1.51291],[1117670400000,1.48509],[1117756800000,1.50467],[1117843200000,1.50933],[1117929600000,1.50933],[1118016000000,1.50933],[1118102400000,1.51701],[1118188800000,1.52995],[1118275200000,1.53401],[1118361600000,1.52227],[1118448000000,1.53508],[1118534400000,1.53508],[1118620800000,1.53508],[1118707200000,1.51029],[1118793600000,1.51237],[1118880000000,1.51319],[1118966400000,null],[1119052800000,1.51852],[1119139200000,1.51852],[1119225600000,1.51852],[1119312000000,null],[1119398400000,1.5058],[1119484800000,1.51507],[1119571200000,1.52009],[1119657600000,1.51606],[1119744000000,null],[1119830400000,null],[1119916800000,null],[1120003200000,null],[1120089600000,1.50374]], 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: [[1117584000000, 1.512914],[1117584000000, 1.512914],[1117670400000, 1.485093],[1117756800000, 1.504672],[1117843200000, 1.509327],[1117929600000, 1.509327],[1118016000000, 1.509327],[1118102400000, 1.517007],[1118188800000, 1.529950],[1118275200000, 1.534013],[1118361600000, 1.522271],[1118448000000, 1.535078],[1118534400000, 1.535078],[1118620800000, 1.535078],[1118707200000, 1.510290],[1118793600000, 1.512366],[1118880000000, 1.513190],[1119052800000, 1.518520],[1119139200000, 1.518520],[1119225600000, 1.518520],[1119398400000, 1.505803],[1119484800000, 1.515074],[1119571200000, 1.520090],[1119657600000, 1.516061],[1120089600000, 1.503738]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });