$(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: [[1318032000000,8.66197],[1318118400000,8.66197],[1318204800000,8.66197],[1318291200000,8.79222],[1318377600000,8.76289],[1318464000000,8.87571],[1318550400000,8.87575],[1318636800000,8.88929],[1318723200000,8.88929],[1318809600000,8.88929],[1318896000000,8.88583],[1318982400000,8.83347],[1319068800000,8.87415],[1319155200000,8.90798],[1319241600000,8.94196],[1319328000000,8.94196],[1319414400000,8.94196],[1319500800000,8.99929],[1319587200000,9.06005],[1319673600000,9.11052],[1319760000000,9.16901]], 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: [[1318032000000, 8.661969],[1318032000000, 8.661969],[1318118400000, 8.661969],[1318204800000, 8.661969],[1318291200000, 8.792221],[1318377600000, 8.762886],[1318464000000, 8.875714],[1318550400000, 8.875755],[1318636800000, 8.889287],[1318723200000, 8.889287],[1318809600000, 8.889287],[1318896000000, 8.885826],[1318982400000, 8.833469],[1319068800000, 8.874153],[1319155200000, 8.907983],[1319241600000, 8.941961],[1319328000000, 8.941961],[1319414400000, 8.941961],[1319500800000, 8.999291],[1319587200000, 9.060047],[1319673600000, 9.110517],[1319760000000, 9.169011]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });