$(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: [[1104883200000,1.54339],[1104969600000,1.70265],[1105056000000,1.6978],[1105142400000,null],[1105228800000,1.6978],[1105315200000,null],[1105401600000,1.70519],[1105488000000,1.71448],[1105574400000,1.71147],[1105660800000,1.72389],[1105747200000,1.70928],[1105833600000,1.70928],[1105920000000,1.70928],[1106006400000,1.70644],[1106092800000,1.69901],[1106179200000,1.66797],[1106265600000,1.66797],[1106352000000,1.68678],[1106438400000,1.68678],[1106524800000,1.68678],[1106611200000,null],[1106697600000,1.69661],[1106784000000,1.69579],[1106870400000,1.70189],[1106956800000,1.70581],[1107043200000,1.70581],[1107129600000,1.6942]], 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: [[1104883200000, 1.543390],[1104883200000, 1.543390],[1104969600000, 1.702649],[1105056000000, 1.697801],[1105228800000, 1.697801],[1105401600000, 1.705193],[1105488000000, 1.714479],[1105574400000, 1.711474],[1105660800000, 1.723894],[1105747200000, 1.709280],[1105833600000, 1.709280],[1105920000000, 1.709280],[1106006400000, 1.706438],[1106092800000, 1.699011],[1106179200000, 1.667966],[1106265600000, 1.667966],[1106352000000, 1.686783],[1106438400000, 1.686783],[1106524800000, 1.686783],[1106697600000, 1.696609],[1106784000000, 1.695794],[1106870400000, 1.701889],[1106956800000, 1.705806],[1107043200000, 1.705806],[1107129600000, 1.694205]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });