$(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: [[1280620800000,7.59369],[1280707200000,7.59369],[1280793600000,7.55305],[1280880000000,7.60902],[1280966400000,7.58994],[1281052800000,7.52776],[1281139200000,7.51708],[1281225600000,null],[1281312000000,7.51708],[1281398400000,7.59321],[1281484800000,7.45731],[1281571200000,7.49881],[1281657600000,7.47948],[1281744000000,7.48696],[1281830400000,7.48696],[1281916800000,7.48696],[1282003200000,7.57763],[1282089600000,7.56583],[1282176000000,7.57083],[1282262400000,7.59732],[1282348800000,7.62631],[1282435200000,null],[1282521600000,null],[1282608000000,7.62602],[1282694400000,7.62602],[1282780800000,7.65866],[1282867200000,7.68771],[1282953600000,7.71051],[1283040000000,7.71051],[1283126400000,7.71051],[1283212800000,7.67166]], 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: [[1280620800000, 7.593686],[1280620800000, 7.593686],[1280707200000, 7.593686],[1280793600000, 7.553055],[1280880000000, 7.609017],[1280966400000, 7.589939],[1281052800000, 7.527759],[1281139200000, 7.517084],[1281312000000, 7.517084],[1281398400000, 7.593215],[1281484800000, 7.457313],[1281571200000, 7.498813],[1281657600000, 7.479477],[1281744000000, 7.486960],[1281830400000, 7.486960],[1281916800000, 7.486960],[1282003200000, 7.577628],[1282089600000, 7.565834],[1282176000000, 7.570826],[1282262400000, 7.597321],[1282348800000, 7.626310],[1282608000000, 7.626020],[1282694400000, 7.626020],[1282780800000, 7.658656],[1282867200000, 7.687708],[1282953600000, 7.710507],[1283040000000, 7.710507],[1283126400000, 7.710507],[1283212800000, 7.671656]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });