$(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: [[1185926400000,1.82688],[1186012800000,1.81431],[1186099200000,1.82042],[1186185600000,1.8262],[1186272000000,1.8262],[1186358400000,1.8262],[1186444800000,1.84187],[1186531200000,1.84041],[1186617600000,1.84637],[1186704000000,1.83562],[1186790400000,1.82424],[1186876800000,1.82424],[1186963200000,1.82424],[1187049600000,1.82592],[1187136000000,1.81108],[1187222400000,1.77682],[1187308800000,1.76382],[1187395200000,1.77225],[1187481600000,1.77225],[1187568000000,1.77225],[1187654400000,1.7733],[1187740800000,1.77395],[1187827200000,1.77725],[1187913600000,1.78978],[1188000000000,1.78978],[1188086400000,1.78978],[1188172800000,1.78978],[1188259200000,1.80251],[1188345600000,1.80071],[1188432000000,1.79458],[1188518400000,1.79589]], 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: [[1185926400000, 1.826876],[1185926400000, 1.826876],[1186012800000, 1.814308],[1186099200000, 1.820425],[1186185600000, 1.826204],[1186272000000, 1.826204],[1186358400000, 1.826204],[1186444800000, 1.841865],[1186531200000, 1.840415],[1186617600000, 1.846366],[1186704000000, 1.835622],[1186790400000, 1.824238],[1186876800000, 1.824238],[1186963200000, 1.824238],[1187049600000, 1.825918],[1187136000000, 1.811081],[1187222400000, 1.776815],[1187308800000, 1.763816],[1187395200000, 1.772249],[1187481600000, 1.772249],[1187568000000, 1.772249],[1187654400000, 1.773297],[1187740800000, 1.773948],[1187827200000, 1.777247],[1187913600000, 1.789783],[1188000000000, 1.789783],[1188086400000, 1.789783],[1188172800000, 1.789783],[1188259200000, 1.802506],[1188345600000, 1.800710],[1188432000000, 1.794581],[1188518400000, 1.795890]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });