$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1054425600000,8.76136],[1054512000000,8.76136],[1054598400000,8.67551],[1054684800000,8.71585],[1054771200000,8.69327],[1054857600000,8.88182],[1054944000000,8.88182],[1055030400000,8.88182],[1055116800000,8.88182],[1055203200000,8.88182],[1055289600000,8.83097],[1055376000000,8.8906],[1055462400000,8.88531],[1055548800000,8.88531],[1055635200000,8.88531],[1055721600000,8.88531],[1055808000000,8.88531],[1055894400000,8.96202],[1055980800000,8.95776],[1056067200000,8.92278],[1056153600000,8.92278],[1056240000000,8.92278],[1056326400000,8.92278],[1056412800000,8.85814],[1056499200000,8.88705],[1056585600000,8.87403],[1056672000000,8.87403],[1056758400000,8.87403],[1056844800000,8.87403],[1056931200000,8.87403]], 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: [[1054425600000, 8.761360],[1054425600000, 8.761360],[1054512000000, 8.761360],[1054598400000, 8.675510],[1054684800000, 8.715850],[1054771200000, 8.693270],[1054857600000, 8.881820],[1054944000000, 8.881820],[1055030400000, 8.881820],[1055116800000, 8.881820],[1055203200000, 8.881820],[1055289600000, 8.830970],[1055376000000, 8.890600],[1055462400000, 8.885310],[1055548800000, 8.885310],[1055635200000, 8.885310],[1055721600000, 8.885310],[1055808000000, 8.885310],[1055894400000, 8.962020],[1055980800000, 8.957760],[1056067200000, 8.922780],[1056153600000, 8.922780],[1056240000000, 8.922780],[1056326400000, 8.922780],[1056412800000, 8.858140],[1056499200000, 8.887050],[1056585600000, 8.874030],[1056672000000, 8.874030],[1056758400000, 8.874030],[1056844800000, 8.874030],[1056931200000, 8.874030]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });