$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1264982400000,12.432],[1265068800000,12.3921],[1265155200000,12.4078],[1265241600000,12.4321],[1265328000000,12.3615],[1265414400000,12.3322],[1265500800000,12.3322],[1265587200000,12.3322],[1265673600000,12.3215],[1265760000000,12.3354],[1265846400000,12.3657],[1265932800000,12.3497],[1266019200000,12.2658],[1266105600000,12.2658],[1266192000000,12.2658],[1266278400000,12.265],[1266364800000,12.307],[1266451200000,12.3268],[1266537600000,12.2501],[1266624000000,12.1941],[1266710400000,12.1941],[1266796800000,12.1941],[1266883200000,12.2323],[1266969600000,12.2202],[1267056000000,12.2365],[1267142400000,12.2196],[1267228800000,12.2453],[1267315200000,12.2453]], 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: [[1264982400000, 12.431985],[1264982400000, 12.431985],[1265068800000, 12.392083],[1265155200000, 12.407761],[1265241600000, 12.432138],[1265328000000, 12.361495],[1265414400000, 12.332194],[1265500800000, 12.332194],[1265587200000, 12.332194],[1265673600000, 12.321484],[1265760000000, 12.335379],[1265846400000, 12.365729],[1265932800000, 12.349695],[1266019200000, 12.265815],[1266105600000, 12.265815],[1266192000000, 12.265815],[1266278400000, 12.265049],[1266364800000, 12.307011],[1266451200000, 12.326784],[1266537600000, 12.250070],[1266624000000, 12.194081],[1266710400000, 12.194081],[1266796800000, 12.194081],[1266883200000, 12.232267],[1266969600000, 12.220152],[1267056000000, 12.236509],[1267142400000, 12.219629],[1267228800000, 12.245342],[1267315200000, 12.245342]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });