$(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: [[1096588800000,1.5038],[1096675200000,null],[1096761600000,null],[1096848000000,1.50991],[1096934400000,1.51031],[1097020800000,1.51317],[1097107200000,1.50851],[1097193600000,1.50247],[1097280000000,1.50247],[1097366400000,1.50247],[1097452800000,1.50905],[1097539200000,1.52741],[1097625600000,1.52048],[1097712000000,1.51117],[1097798400000,1.5293],[1097884800000,null],[1097971200000,1.52798],[1098057600000,1.52798],[1098144000000,1.54292],[1098230400000,1.54794],[1098316800000,1.5547],[1098403200000,1.55458],[1098489600000,1.56082],[1098576000000,1.56082],[1098662400000,1.56082],[1098748800000,1.56855],[1098835200000,1.557],[1098921600000,1.56109],[1099008000000,1.55331],[1099094400000,1.56282],[1099180800000,1.56282]], 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: [[1096588800000, 1.503800],[1096588800000, 1.503800],[1096848000000, 1.509910],[1096934400000, 1.510310],[1097020800000, 1.513170],[1097107200000, 1.508510],[1097193600000, 1.502470],[1097280000000, 1.502470],[1097366400000, 1.502470],[1097452800000, 1.509050],[1097539200000, 1.527410],[1097625600000, 1.520480],[1097712000000, 1.511170],[1097798400000, 1.529300],[1097971200000, 1.527980],[1098057600000, 1.527980],[1098144000000, 1.542920],[1098230400000, 1.547940],[1098316800000, 1.554700],[1098403200000, 1.554580],[1098489600000, 1.560820],[1098576000000, 1.560820],[1098662400000, 1.560820],[1098748800000, 1.568550],[1098835200000, 1.557000],[1098921600000, 1.561090],[1099008000000, 1.553310],[1099094400000, 1.562820],[1099180800000, 1.562820]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });