$(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: [[1133395200000,3.83813],[1133481600000,3.83476],[1133568000000,3.82651],[1133654400000,3.82651],[1133740800000,3.82651],[1133827200000,3.84816],[1133913600000,3.8614],[1134000000000,3.83972],[1134086400000,3.86094],[1134172800000,3.86506],[1134259200000,3.86506],[1134345600000,3.86506],[1134432000000,3.90717],[1134518400000,3.90211],[1134604800000,3.93626],[1134691200000,3.92963],[1134777600000,3.91424],[1134864000000,3.91424],[1134950400000,3.91424],[1135036800000,3.90093],[1135123200000,3.88975],[1135209600000,3.86075],[1135296000000,3.83905],[1135382400000,3.84736],[1135468800000,3.84736],[1135555200000,3.84736],[1135641600000,3.84736],[1135728000000,3.84336],[1135814400000,3.86213],[1135900800000,3.83165]], 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: [[1133395200000, 3.838130],[1133395200000, 3.838130],[1133481600000, 3.834761],[1133568000000, 3.826511],[1133654400000, 3.826511],[1133740800000, 3.826511],[1133827200000, 3.848164],[1133913600000, 3.861398],[1134000000000, 3.839718],[1134086400000, 3.860935],[1134172800000, 3.865064],[1134259200000, 3.865064],[1134345600000, 3.865064],[1134432000000, 3.907173],[1134518400000, 3.902109],[1134604800000, 3.936256],[1134691200000, 3.929634],[1134777600000, 3.914240],[1134864000000, 3.914240],[1134950400000, 3.914240],[1135036800000, 3.900926],[1135123200000, 3.889746],[1135209600000, 3.860751],[1135296000000, 3.839052],[1135382400000, 3.847356],[1135468800000, 3.847356],[1135555200000, 3.847356],[1135641600000, 3.847356],[1135728000000, 3.843357],[1135814400000, 3.862127],[1135900800000, 3.831649]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });