$(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: [[1168041600000,0.19179],[1168128000000,0.19179],[1168214400000,0.19179],[1168300800000,0.19179],[1168387200000,0.19095],[1168473600000,0.19064],[1168560000000,0.19034],[1168646400000,0.19001],[1168732800000,0.19001],[1168819200000,0.19001],[1168905600000,0.1901],[1168992000000,0.19022],[1169078400000,0.1901],[1169164800000,0.19032],[1169251200000,0.19051],[1169337600000,0.19051],[1169424000000,0.19051],[1169510400000,0.19041],[1169596800000,0.19039],[1169683200000,0.19065],[1169769600000,0.19055],[1169856000000,0.19015],[1169942400000,0.19015],[1170028800000,0.19015],[1170115200000,0.19003],[1170201600000,0.19033]], 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: [[1168041600000, 0.191790],[1168041600000, 0.191790],[1168128000000, 0.191790],[1168214400000, 0.191790],[1168300800000, 0.191790],[1168387200000, 0.190950],[1168473600000, 0.190640],[1168560000000, 0.190340],[1168646400000, 0.190010],[1168732800000, 0.190010],[1168819200000, 0.190010],[1168905600000, 0.190100],[1168992000000, 0.190220],[1169078400000, 0.190100],[1169164800000, 0.190320],[1169251200000, 0.190510],[1169337600000, 0.190510],[1169424000000, 0.190510],[1169510400000, 0.190410],[1169596800000, 0.190390],[1169683200000, 0.190650],[1169769600000, 0.190550],[1169856000000, 0.190150],[1169942400000, 0.190150],[1170028800000, 0.190150],[1170115200000, 0.190030],[1170201600000, 0.190330]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });