$(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: 'Курс AZN, грн'}, 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: 'Курс AZN', data: [[1249084800000,9.57242],[1249171200000,9.57242],[1249257600000,9.57242],[1249344000000,9.55795],[1249430400000,9.55173],[1249516800000,9.55478],[1249603200000,9.57344],[1249689600000,9.57946],[1249776000000,9.57946],[1249862400000,9.57946],[1249948800000,9.58597],[1250035200000,9.60885],[1250121600000,9.62253],[1250208000000,9.63806],[1250294400000,9.66082],[1250380800000,9.66082],[1250467200000,9.66082],[1250553600000,9.70833],[1250640000000,9.7371],[1250726400000,9.76119],[1250812800000,9.80647],[1250899200000,9.87562],[1250985600000,9.87562],[1251072000000,9.87562],[1251158400000,9.87562],[1251244800000,9.9046],[1251331200000,9.93657],[1251417600000,9.93533],[1251504000000,9.9378],[1251590400000,9.9378],[1251676800000,9.9378]], 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: [[1249084800000, 9.572423],[1249084800000, 9.572423],[1249171200000, 9.572423],[1249257600000, 9.572423],[1249344000000, 9.557946],[1249430400000, 9.551728],[1249516800000, 9.554782],[1249603200000, 9.573436],[1249689600000, 9.579458],[1249776000000, 9.579458],[1249862400000, 9.579458],[1249948800000, 9.585975],[1250035200000, 9.608852],[1250121600000, 9.622529],[1250208000000, 9.638060],[1250294400000, 9.660821],[1250380800000, 9.660821],[1250467200000, 9.660821],[1250553600000, 9.708333],[1250640000000, 9.737097],[1250726400000, 9.761194],[1250812800000, 9.806468],[1250899200000, 9.875622],[1250985600000, 9.875622],[1251072000000, 9.875622],[1251158400000, 9.875622],[1251244800000, 9.904602],[1251331200000, 9.936567],[1251417600000, 9.935331],[1251504000000, 9.937803],[1251590400000, 9.937803],[1251676800000, 9.937803]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });