$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1367366400000,7.9077],[1367452800000,7.9077],[1367539200000,7.9077],[1367625600000,7.9077],[1367712000000,7.9077],[1367798400000,7.9077],[1367884800000,7.9077],[1367971200000,7.95175],[1368057600000,7.95967],[1368144000000,7.95967],[1368230400000,7.95967],[1368316800000,7.95967],[1368403200000,7.95967],[1368489600000,7.92035],[1368576000000,7.88365],[1368662400000,7.82928],[1368748800000,7.84093],[1368835200000,7.78078],[1368921600000,7.78078],[1369008000000,7.78078],[1369094400000,7.77581],[1369180800000,7.78368],[1369267200000,7.75768],[1369353600000,7.72275],[1369440000000,7.73591],[1369526400000,7.73591],[1369612800000,7.73591],[1369699200000,7.74286],[1369785600000,7.72722],[1369872000000,7.70622],[1369958400000,7.70203]], 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: [[1367366400000, 7.907704],[1367366400000, 7.907704],[1367452800000, 7.907704],[1367539200000, 7.907704],[1367625600000, 7.907704],[1367712000000, 7.907704],[1367798400000, 7.907704],[1367884800000, 7.907704],[1367971200000, 7.951746],[1368057600000, 7.959671],[1368144000000, 7.959671],[1368230400000, 7.959671],[1368316800000, 7.959671],[1368403200000, 7.959671],[1368489600000, 7.920347],[1368576000000, 7.883648],[1368662400000, 7.829281],[1368748800000, 7.840926],[1368835200000, 7.780780],[1368921600000, 7.780780],[1369008000000, 7.780780],[1369094400000, 7.775812],[1369180800000, 7.783677],[1369267200000, 7.757682],[1369353600000, 7.722752],[1369440000000, 7.735913],[1369526400000, 7.735913],[1369612800000, 7.735913],[1369699200000, 7.742863],[1369785600000, 7.727224],[1369872000000, 7.706218],[1369958400000, 7.702032]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });