$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1433116800000,21.0849],[1433203200000,21.0849],[1433289600000,21.0708],[1433376000000,21.006],[1433462400000,21.0137],[1433548800000,21.0258],[1433635200000,21.0258],[1433721600000,21.0258],[1433808000000,21.1024],[1433894400000,21.1693],[1433980800000,21.1533],[1434067200000,21.0275],[1434153600000,21.0588],[1434240000000,21.0588],[1434326400000,21.0588],[1434412800000,21.4488],[1434499200000,22.1477],[1434585600000,21.6502],[1434672000000,21.3292],[1434758400000,21.6354],[1434844800000,21.6354],[1434931200000,21.6354],[1435017600000,21.7687],[1435104000000,21.5257],[1435190400000,21.178],[1435276800000,21.1961],[1435363200000,21.0154],[1435449600000,21.0154],[1435536000000,21.0154],[1435622400000,21.0154]], 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: [[1433116800000, 21.084888],[1433116800000, 21.084888],[1433203200000, 21.084888],[1433289600000, 21.070818],[1433376000000, 21.005961],[1433462400000, 21.013713],[1433548800000, 21.025806],[1433635200000, 21.025806],[1433721600000, 21.025806],[1433808000000, 21.102444],[1433894400000, 21.169299],[1433980800000, 21.153330],[1434067200000, 21.027495],[1434153600000, 21.058829],[1434240000000, 21.058829],[1434326400000, 21.058829],[1434412800000, 21.448810],[1434499200000, 22.147739],[1434585600000, 21.650235],[1434672000000, 21.329154],[1434758400000, 21.635428],[1434844800000, 21.635428],[1434931200000, 21.635428],[1435017600000, 21.768700],[1435104000000, 21.525720],[1435190400000, 21.178020],[1435276800000, 21.196069],[1435363200000, 21.015358],[1435449600000, 21.015358],[1435536000000, 21.015358],[1435622400000, 21.015358]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });