$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1136246400000,5.95749],[1136332800000,5.95749],[1136419200000,5.95749],[1136505600000,6.10444],[1136592000000,6.10696],[1136678400000,6.10696],[1136764800000,6.10696],[1136851200000,6.10696],[1136937600000,6.09232],[1137024000000,6.10444],[1137110400000,6.11707],[1137196800000,6.0797],[1137283200000,6.0797],[1137369600000,6.0797],[1137456000000,6.11656],[1137542400000,6.09788],[1137628800000,6.12312],[1137715200000,6.09687],[1137801600000,6.09434],[1137888000000,6.09434],[1137974400000,6.09434],[1138060800000,6.19989],[1138147200000,6.19736],[1138233600000,6.20847],[1138320000000,6.18827],[1138406400000,6.14686],[1138492800000,6.14686],[1138579200000,6.14686],[1138665600000,6.10141]], 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: [[1136246400000, 5.957485],[1136246400000, 5.957485],[1136332800000, 5.957485],[1136419200000, 5.957485],[1136505600000, 6.104440],[1136592000000, 6.106965],[1136678400000, 6.106965],[1136764800000, 6.106965],[1136851200000, 6.106965],[1136937600000, 6.092320],[1137024000000, 6.104440],[1137110400000, 6.117065],[1137196800000, 6.079695],[1137283200000, 6.079695],[1137369600000, 6.079695],[1137456000000, 6.116560],[1137542400000, 6.097875],[1137628800000, 6.123125],[1137715200000, 6.096865],[1137801600000, 6.094340],[1137888000000, 6.094340],[1137974400000, 6.094340],[1138060800000, 6.199885],[1138147200000, 6.197360],[1138233600000, 6.208470],[1138320000000, 6.188270],[1138406400000, 6.146860],[1138492800000, 6.146860],[1138579200000, 6.146860],[1138665600000, 6.101410]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });