$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1249084800000,10.885],[1249171200000,10.885],[1249257600000,10.885],[1249344000000,10.994],[1249430400000,11.0491],[1249516800000,11.0712],[1249603200000,11.062],[1249689600000,11.0603],[1249776000000,11.0603],[1249862400000,11.0603],[1249948800000,10.9497],[1250035200000,10.9481],[1250121600000,10.9667],[1250208000000,11.0756],[1250294400000,11.1026],[1250380800000,11.1026],[1250467200000,11.1026],[1250553600000,10.9839],[1250640000000,11.0405],[1250726400000,11.0751],[1250812800000,11.2298],[1250899200000,11.378],[1250985600000,11.378],[1251072000000,11.378],[1251158400000,11.378],[1251244800000,11.4066],[1251331200000,11.4003],[1251417600000,11.3987],[1251504000000,11.4754],[1251590400000,11.4754],[1251676800000,11.4754]], 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, 10.884988],[1249084800000, 10.884988],[1249171200000, 10.884988],[1249257600000, 10.884988],[1249344000000, 10.994001],[1249430400000, 11.049070],[1249516800000, 11.071203],[1249603200000, 11.062026],[1249689600000, 11.060346],[1249776000000, 11.060346],[1249862400000, 11.060346],[1249948800000, 10.949742],[1250035200000, 10.948051],[1250121600000, 10.966730],[1250208000000, 11.075646],[1250294400000, 11.102579],[1250380800000, 11.102579],[1250467200000, 11.102579],[1250553600000, 10.983900],[1250640000000, 11.040519],[1250726400000, 11.075098],[1250812800000, 11.229751],[1250899200000, 11.378020],[1250985600000, 11.378020],[1251072000000, 11.378020],[1251158400000, 11.378020],[1251244800000, 11.406631],[1251331200000, 11.400303],[1251417600000, 11.398705],[1251504000000, 11.475400],[1251590400000, 11.475400],[1251676800000, 11.475400]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });