$(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: [[1193875200000,2.00559],[1193961600000,1.99808],[1194048000000,2.00381],[1194134400000,2.00381],[1194220800000,2.00381],[1194307200000,2.00747],[1194393600000,2.01947],[1194480000000,2.04051],[1194566400000,2.03638],[1194652800000,2.03903],[1194739200000,2.03903],[1194825600000,2.03903],[1194912000000,2.02058],[1194998400000,2.02402],[1195084800000,2.03746],[1195171200000,2.0159],[1195257600000,2.01755],[1195344000000,2.01755],[1195430400000,2.01755],[1195516800000,2.01609],[1195603200000,2.02507],[1195689600000,2.02766],[1195776000000,2.03082],[1195862400000,2.02588],[1195948800000,2.02588],[1196035200000,2.02588],[1196121600000,2.03937],[1196208000000,2.03285],[1196294400000,2.04095],[1196380800000,2.04088]], 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: [[1193875200000, 2.005590],[1193875200000, 2.005590],[1193961600000, 1.998084],[1194048000000, 2.003808],[1194134400000, 2.003808],[1194220800000, 2.003808],[1194307200000, 2.007474],[1194393600000, 2.019472],[1194480000000, 2.040513],[1194566400000, 2.036384],[1194652800000, 2.039025],[1194739200000, 2.039025],[1194825600000, 2.039025],[1194912000000, 2.020582],[1194998400000, 2.024018],[1195084800000, 2.037464],[1195171200000, 2.015896],[1195257600000, 2.017549],[1195344000000, 2.017549],[1195430400000, 2.017549],[1195516800000, 2.016093],[1195603200000, 2.025068],[1195689600000, 2.027665],[1195776000000, 2.030819],[1195862400000, 2.025882],[1195948800000, 2.025882],[1196035200000, 2.025882],[1196121600000, 2.039370],[1196208000000, 2.032847],[1196294400000, 2.040953],[1196380800000, 2.040882]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });