$(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: [[1326758400000,8.4524],[1326844800000,null],[1326931200000,null],[1327017600000,8.54226],[1327104000000,8.5356],[1327190400000,8.5356],[1327276800000,8.5356],[1327363200000,8.6231],[1327449600000,8.61097],[1327536000000,8.56348],[1327622400000,8.70068],[1327708800000,8.69553],[1327795200000,8.69553],[1327881600000,8.69553],[1327968000000,8.69542]], 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: [[1326758400000, 8.452402],[1326758400000, 8.452402],[1327017600000, 8.542258],[1327104000000, 8.535597],[1327190400000, 8.535597],[1327276800000, 8.535597],[1327363200000, 8.623101],[1327449600000, 8.610971],[1327536000000, 8.563478],[1327622400000, 8.700681],[1327708800000, 8.695530],[1327795200000, 8.695530],[1327881600000, 8.695530],[1327968000000, 8.695415]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });