$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[999302400000,5.3392],[999388800000,5.3392],[999475200000,5.3392],[999561600000,5.3392],[999648000000,5.3408],[999734400000,5.3397],[999820800000,5.3393],[999907200000,5.3397],[999993600000,5.3397],[1000080000000,5.3397],[1000166400000,5.3415],[1000252800000,5.3421],[1000339200000,5.3421],[1000425600000,5.3421],[1000512000000,5.3421],[1000598400000,5.3421],[1000684800000,5.3421],[1000771200000,5.3419],[1000857600000,5.3419],[1000944000000,5.3405],[1001030400000,5.3393],[1001116800000,5.3393],[1001203200000,5.3393],[1001289600000,5.3385],[1001376000000,5.337],[1001462400000,5.3338],[1001548800000,5.3314],[1001635200000,5.3311],[1001721600000,5.3311],[1001808000000,5.3311]], 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: [[999302400000, 5.339200],[999302400000, 5.339200],[999388800000, 5.339200],[999475200000, 5.339200],[999561600000, 5.339200],[999648000000, 5.340800],[999734400000, 5.339700],[999820800000, 5.339300],[999907200000, 5.339700],[999993600000, 5.339700],[1000080000000, 5.339700],[1000166400000, 5.341500],[1000252800000, 5.342100],[1000339200000, 5.342100],[1000425600000, 5.342100],[1000512000000, 5.342100],[1000598400000, 5.342100],[1000684800000, 5.342100],[1000771200000, 5.341900],[1000857600000, 5.341900],[1000944000000, 5.340500],[1001030400000, 5.339300],[1001116800000, 5.339300],[1001203200000, 5.339300],[1001289600000, 5.338500],[1001376000000, 5.337000],[1001462400000, 5.333800],[1001548800000, 5.331400],[1001635200000, 5.331100],[1001721600000, 5.331100],[1001808000000, 5.331100]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });