$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1196467200000,0.20682],[1196553600000,0.20682],[1196640000000,0.20682],[1196726400000,0.20649],[1196812800000,0.20635],[1196899200000,0.20677],[1196985600000,0.2057],[1197072000000,0.20587],[1197158400000,0.20587],[1197244800000,0.20587],[1197331200000,0.20622],[1197417600000,0.20682],[1197504000000,0.2066],[1197590400000,0.20672],[1197676800000,0.20605],[1197763200000,0.20605],[1197849600000,0.20605],[1197936000000,0.2044],[1198022400000,0.20426],[1198108800000,0.20422],[1198195200000,0.20402],[1198281600000,0.20426],[1198368000000,0.20426],[1198454400000,0.20426],[1198540800000,0.2042],[1198627200000,0.20429],[1198713600000,0.20444],[1198800000000,0.20496],[1198886400000,0.20579]], 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: [[1196467200000, 0.206820],[1196467200000, 0.206820],[1196553600000, 0.206820],[1196640000000, 0.206820],[1196726400000, 0.206490],[1196812800000, 0.206350],[1196899200000, 0.206770],[1196985600000, 0.205700],[1197072000000, 0.205870],[1197158400000, 0.205870],[1197244800000, 0.205870],[1197331200000, 0.206220],[1197417600000, 0.206820],[1197504000000, 0.206600],[1197590400000, 0.206720],[1197676800000, 0.206050],[1197763200000, 0.206050],[1197849600000, 0.206050],[1197936000000, 0.204400],[1198022400000, 0.204260],[1198108800000, 0.204220],[1198195200000, 0.204020],[1198281600000, 0.204260],[1198368000000, 0.204260],[1198454400000, 0.204260],[1198540800000, 0.204200],[1198627200000, 0.204290],[1198713600000, 0.204440],[1198800000000, 0.204960],[1198886400000, 0.205790]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });