$(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: [[1356998400000,8.72282],[1357084800000,8.72282],[1357171200000,8.72282],[1357257600000,8.66206],[1357344000000,8.60113],[1357430400000,8.60113],[1357516800000,8.60113],[1357603200000,8.60113],[1357689600000,8.65005],[1357776000000,8.63236],[1357862400000,8.6593],[1357948800000,8.72741],[1358035200000,8.72741],[1358121600000,8.72741],[1358208000000,8.70984],[1358294400000,8.61974],[1358380800000,8.5867],[1358467200000,8.5803],[1358553600000,8.55686],[1358640000000,8.55686],[1358726400000,8.55686],[1358812800000,8.57344],[1358899200000,8.59588],[1358985600000,8.60288],[1359072000000,8.59294],[1359158400000,8.65138],[1359244800000,8.65138],[1359331200000,8.65138],[1359417600000,8.61593],[1359504000000,8.64771],[1359590400000,8.73412]], 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: [[1356998400000, 8.722824],[1356998400000, 8.722824],[1357084800000, 8.722824],[1357171200000, 8.722824],[1357257600000, 8.662058],[1357344000000, 8.601134],[1357430400000, 8.601134],[1357516800000, 8.601134],[1357603200000, 8.601134],[1357689600000, 8.650049],[1357776000000, 8.632361],[1357862400000, 8.659303],[1357948800000, 8.727407],[1358035200000, 8.727407],[1358121600000, 8.727407],[1358208000000, 8.709843],[1358294400000, 8.619737],[1358380800000, 8.586703],[1358467200000, 8.580296],[1358553600000, 8.556864],[1358640000000, 8.556864],[1358726400000, 8.556864],[1358812800000, 8.573443],[1358899200000, 8.595880],[1358985600000, 8.602882],[1359072000000, 8.592942],[1359158400000, 8.651376],[1359244800000, 8.651376],[1359331200000, 8.651376],[1359417600000, 8.615931],[1359504000000, 8.647710],[1359590400000, 8.734120]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });