$(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: 'Курс CZK, грн'}, 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: 'Курс CZK', data: [[1475280000000,1.07132],[1475366400000,1.07132],[1475452800000,1.07132],[1475539200000,1.07784],[1475625600000,1.06833],[1475712000000,1.07424],[1475798400000,1.07164],[1475884800000,1.06535],[1475971200000,1.06535],[1476057600000,1.06535],[1476144000000,1.06669],[1476230400000,1.05996],[1476316800000,1.05235],[1476403200000,1.05355],[1476489600000,1.05355],[1476576000000,1.05355],[1476662400000,1.05355],[1476748800000,1.04892],[1476835200000,1.04405],[1476921600000,1.04395],[1477008000000,1.04447],[1477094400000,1.03388],[1477180800000,1.03388],[1477267200000,1.03388],[1477353600000,1.03346],[1477440000000,1.02984],[1477526400000,1.03429],[1477612800000,1.03248],[1477699200000,1.03052],[1477785600000,1.03052],[1477872000000,1.03052]], 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: [[1475280000000, 1.071321],[1475280000000, 1.071321],[1475366400000, 1.071321],[1475452800000, 1.071321],[1475539200000, 1.077844],[1475625600000, 1.068327],[1475712000000, 1.074242],[1475798400000, 1.071639],[1475884800000, 1.065347],[1475971200000, 1.065347],[1476057600000, 1.065347],[1476144000000, 1.066693],[1476230400000, 1.059958],[1476316800000, 1.052350],[1476403200000, 1.053546],[1476489600000, 1.053546],[1476576000000, 1.053546],[1476662400000, 1.053546],[1476748800000, 1.048921],[1476835200000, 1.044054],[1476921600000, 1.043951],[1477008000000, 1.044466],[1477094400000, 1.033882],[1477180800000, 1.033882],[1477267200000, 1.033882],[1477353600000, 1.033457],[1477440000000, 1.029837],[1477526400000, 1.034293],[1477612800000, 1.032480],[1477699200000, 1.030519],[1477785600000, 1.030519],[1477872000000, 1.030519]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });