$(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: [[1095120000000,1.47733],[1095206400000,1.48949],[1095292800000,1.48949],[1095379200000,1.48449],[1095465600000,1.49054],[1095552000000,1.49054],[1095638400000,1.49054],[1095724800000,1.49172],[1095811200000,1.50982],[1095897600000,1.50581],[1095984000000,1.50523],[1096070400000,1.4986],[1096156800000,1.4986],[1096243200000,1.4986],[1096329600000,1.48938],[1096416000000,1.49629],[1096502400000,1.49957]], 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: [[1095120000000, 1.477330],[1095120000000, 1.477330],[1095206400000, 1.489490],[1095292800000, 1.489490],[1095379200000, 1.484490],[1095465600000, 1.490540],[1095552000000, 1.490540],[1095638400000, 1.490540],[1095724800000, 1.491720],[1095811200000, 1.509820],[1095897600000, 1.505810],[1095984000000, 1.505230],[1096070400000, 1.498600],[1096156800000, 1.498600],[1096243200000, 1.498600],[1096329600000, 1.489380],[1096416000000, 1.496290],[1096502400000, 1.499570]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });