$(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: 'Курс JPY, грн'}, 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: 'Курс JPY', data: [[1228089600000,0.0720669],[1228176000000,0.0760398],[1228262400000,0.0775228],[1228348800000,0.0793779],[1228435200000,0.0793346],[1228521600000,0.0797296],[1228608000000,0.0797296],[1228694400000,0.0797296],[1228780800000,0.0791886],[1228867200000,0.0802588],[1228953600000,0.080659],[1229040000000,0.0819906],[1229126400000,0.0829308],[1229212800000,0.0829308],[1229299200000,0.0829308],[1229385600000,0.0844656],[1229472000000,0.0859881],[1229558400000,0.0889194],[1229644800000,0.0891167],[1229731200000,0.0880475],[1229817600000,0.0880475],[1229904000000,0.0880475],[1229990400000,0.087591],[1230076800000,0.086399],[1230163200000,0.0861421],[1230249600000,0.0861421],[1230336000000,0.0851469],[1230422400000,0.0851469],[1230508800000,0.0851469],[1230595200000,0.0851907],[1230681600000,0.0852077]], 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: [[1228089600000, 0.072067],[1228089600000, 0.072067],[1228176000000, 0.076040],[1228262400000, 0.077523],[1228348800000, 0.079378],[1228435200000, 0.079335],[1228521600000, 0.079730],[1228608000000, 0.079730],[1228694400000, 0.079730],[1228780800000, 0.079189],[1228867200000, 0.080259],[1228953600000, 0.080659],[1229040000000, 0.081991],[1229126400000, 0.082931],[1229212800000, 0.082931],[1229299200000, 0.082931],[1229385600000, 0.084466],[1229472000000, 0.085988],[1229558400000, 0.088919],[1229644800000, 0.089117],[1229731200000, 0.088048],[1229817600000, 0.088048],[1229904000000, 0.088048],[1229990400000, 0.087591],[1230076800000, 0.086399],[1230163200000, 0.086142],[1230249600000, 0.086142],[1230336000000, 0.085147],[1230422400000, 0.085147],[1230508800000, 0.085147],[1230595200000, 0.085191],[1230681600000, 0.085208]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });