$(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: [[1139184000000,1.58666],[1139270400000,1.58666],[1139356800000,1.58414],[1139443200000,1.57848],[1139529600000,1.58663],[1139616000000,1.60027],[1139702400000,1.60027],[1139788800000,1.60027],[1139875200000,1.58306],[1139961600000,1.58468],[1140048000000,1.59288],[1140134400000,1.59123],[1140220800000,1.59102],[1140307200000,1.59102],[1140393600000,1.59102],[1140480000000,1.5998],[1140566400000,1.59175],[1140652800000,1.57275],[1140739200000,1.59204],[1140825600000,1.58718],[1140912000000,1.58718],[1140998400000,1.58718],[1141084800000,1.58845]], 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: [[1139184000000, 1.586659],[1139184000000, 1.586659],[1139270400000, 1.586659],[1139356800000, 1.584145],[1139443200000, 1.578480],[1139529600000, 1.586632],[1139616000000, 1.600267],[1139702400000, 1.600267],[1139788800000, 1.600267],[1139875200000, 1.583060],[1139961600000, 1.584685],[1140048000000, 1.592878],[1140134400000, 1.591234],[1140220800000, 1.591017],[1140307200000, 1.591017],[1140393600000, 1.591017],[1140480000000, 1.599804],[1140566400000, 1.591753],[1140652800000, 1.572745],[1140739200000, 1.592039],[1140825600000, 1.587181],[1140912000000, 1.587181],[1140998400000, 1.587181],[1141084800000, 1.588445]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });