$(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: [[1367366400000,2.51746],[1367452800000,2.51746],[1367539200000,2.51746],[1367625600000,2.51746],[1367712000000,2.51746],[1367798400000,2.51746],[1367884800000,2.51746],[1367971200000,2.52322],[1368057600000,2.53834],[1368144000000,2.53834],[1368230400000,2.53834],[1368316800000,2.53834],[1368403200000,2.53834],[1368489600000,2.49532],[1368576000000,2.4895],[1368662400000,2.45827],[1368748800000,2.46324],[1368835200000,2.46648],[1368921600000,2.46648],[1369008000000,2.46648],[1369094400000,2.45652],[1369180800000,2.45448],[1369267200000,2.47208],[1369353600000,2.44735],[1369440000000,2.46347],[1369526400000,2.46347],[1369612800000,2.46347],[1369699200000,2.46623],[1369785600000,2.47371],[1369872000000,2.4503],[1369958400000,2.42486]], 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: [[1367366400000, 2.517456],[1367366400000, 2.517456],[1367452800000, 2.517456],[1367539200000, 2.517456],[1367625600000, 2.517456],[1367712000000, 2.517456],[1367798400000, 2.517456],[1367884800000, 2.517456],[1367971200000, 2.523224],[1368057600000, 2.538335],[1368144000000, 2.538335],[1368230400000, 2.538335],[1368316800000, 2.538335],[1368403200000, 2.538335],[1368489600000, 2.495324],[1368576000000, 2.489503],[1368662400000, 2.458267],[1368748800000, 2.463236],[1368835200000, 2.466476],[1368921600000, 2.466476],[1369008000000, 2.466476],[1369094400000, 2.456518],[1369180800000, 2.454483],[1369267200000, 2.472084],[1369353600000, 2.447348],[1369440000000, 2.463471],[1369526400000, 2.463471],[1369612800000, 2.463471],[1369699200000, 2.466232],[1369785600000, 2.473710],[1369872000000, 2.450304],[1369958400000, 2.424857]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });