$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1133395200000,5.94334],[1133481600000,5.93123],[1133568000000,5.90698],[1133654400000,5.90698],[1133740800000,5.90698],[1133827200000,5.94233],[1133913600000,5.95041],[1134000000000,5.91355],[1134086400000,5.94082],[1134172800000,5.95143],[1134259200000,5.95143],[1134345600000,5.95143],[1134432000000,6.02212],[1134518400000,6.02212],[1134604800000,6.0701],[1134691200000,6.0595],[1134777600000,6.05142],[1134864000000,6.05142],[1134950400000,6.05142],[1135036800000,6.04838],[1135123200000,6.03728],[1135209600000,5.99536],[1135296000000,5.97011],[1135382400000,5.98879],[1135468800000,5.98879],[1135555200000,5.98879],[1135641600000,5.98879],[1135728000000,5.98526],[1135814400000,6.01758],[1135900800000,5.97163]], 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, 5.943345],[1133395200000, 5.943345],[1133481600000, 5.931225],[1133568000000, 5.906985],[1133654400000, 5.906985],[1133740800000, 5.906985],[1133827200000, 5.942335],[1133913600000, 5.950415],[1134000000000, 5.913550],[1134086400000, 5.940820],[1134172800000, 5.951425],[1134259200000, 5.951425],[1134345600000, 5.951425],[1134432000000, 6.022125],[1134518400000, 6.022125],[1134604800000, 6.070100],[1134691200000, 6.059495],[1134777600000, 6.051415],[1134864000000, 6.051415],[1134950400000, 6.051415],[1135036800000, 6.048385],[1135123200000, 6.037275],[1135209600000, 5.995360],[1135296000000, 5.970110],[1135382400000, 5.988795],[1135468800000, 5.988795],[1135555200000, 5.988795],[1135641600000, 5.988795],[1135728000000, 5.985260],[1135814400000, 6.017580],[1135900800000, 5.971625]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });