$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1228089600000,5.6637],[1228176000000,5.90003],[1228262400000,6.00294],[1228348800000,6.0776],[1228435200000,6.05809],[1228521600000,6.06059],[1228608000000,6.06059],[1228694400000,6.06059],[1228780800000,6.10041],[1228867200000,6.11734],[1228953600000,6.19781],[1229040000000,6.28697],[1229126400000,6.3312],[1229212800000,6.3312],[1229299200000,6.3312],[1229385600000,6.54904],[1229472000000,6.69896],[1229558400000,7.06977],[1229644800000,7.49327],[1229731200000,7.10969],[1229817600000,7.10969],[1229904000000,7.10969],[1229990400000,7.16254],[1230076800000,7.17553],[1230163200000,7.25247],[1230249600000,7.25247],[1230336000000,7.16868],[1230422400000,7.16868],[1230508800000,7.16868],[1230595200000,7.35912],[1230681600000,7.25487]], 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, 5.663700],[1228089600000, 5.663700],[1228176000000, 5.900035],[1228262400000, 6.002942],[1228348800000, 6.077597],[1228435200000, 6.058094],[1228521600000, 6.060590],[1228608000000, 6.060590],[1228694400000, 6.060590],[1228780800000, 6.100414],[1228867200000, 6.117336],[1228953600000, 6.197814],[1229040000000, 6.286971],[1229126400000, 6.331205],[1229212800000, 6.331205],[1229299200000, 6.331205],[1229385600000, 6.549043],[1229472000000, 6.698958],[1229558400000, 7.069771],[1229644800000, 7.493268],[1229731200000, 7.109689],[1229817600000, 7.109689],[1229904000000, 7.109689],[1229990400000, 7.162545],[1230076800000, 7.175527],[1230163200000, 7.252473],[1230249600000, 7.252473],[1230336000000, 7.168683],[1230422400000, 7.168683],[1230508800000, 7.168683],[1230595200000, 7.359119],[1230681600000, 7.254869]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });