$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1214870400000,7.90338],[1214956800000,7.93063],[1215043200000,7.90833],[1215129600000,7.93608],[1215216000000,7.9202],[1215302400000,7.9202],[1215388800000,7.9202],[1215475200000,7.85669],[1215561600000,7.87002],[1215648000000,7.87138],[1215734400000,7.87339],[1215820800000,7.89508],[1215907200000,7.89508],[1215993600000,7.89508],[1216080000000,7.91025],[1216166400000,7.96667],[1216252800000,7.95641],[1216339200000,7.92328],[1216425600000,7.91148],[1216512000000,7.91148],[1216598400000,7.91148],[1216684800000,7.91899],[1216771200000,7.92911],[1216857600000,7.88196],[1216944000000,7.86898],[1217030400000,7.89192],[1217116800000,7.89192],[1217203200000,7.89192],[1217289600000,7.8886],[1217376000000,7.88493],[1217462400000,7.85122]], 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: [[1214870400000, 7.903384],[1214870400000, 7.903384],[1214956800000, 7.930626],[1215043200000, 7.908332],[1215129600000, 7.936077],[1215216000000, 7.920204],[1215302400000, 7.920204],[1215388800000, 7.920204],[1215475200000, 7.856693],[1215561600000, 7.870020],[1215648000000, 7.871377],[1215734400000, 7.873387],[1215820800000, 7.895080],[1215907200000, 7.895080],[1215993600000, 7.895080],[1216080000000, 7.910246],[1216166400000, 7.966666],[1216252800000, 7.956411],[1216339200000, 7.923280],[1216425600000, 7.911483],[1216512000000, 7.911483],[1216598400000, 7.911483],[1216684800000, 7.918991],[1216771200000, 7.929110],[1216857600000, 7.881963],[1216944000000, 7.868982],[1217030400000, 7.891924],[1217116800000, 7.891924],[1217203200000, 7.891924],[1217289600000, 7.888604],[1217376000000, 7.884929],[1217462400000, 7.851224]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });