$(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: [[1433116800000,29.3186],[1433203200000,29.3186],[1433289600000,29.335],[1433376000000,29.3514],[1433462400000,29.615],[1433548800000,29.4669],[1433635200000,29.4669],[1433721600000,29.4669],[1433808000000,29.4701],[1433894400000,29.7168],[1433980800000,29.7768],[1434067200000,29.5666],[1434153600000,29.5441],[1434240000000,29.5441],[1434326400000,29.5441],[1434412800000,30.1226],[1434499200000,31.1574],[1434585600000,30.492],[1434672000000,30.2281],[1434758400000,30.5514],[1434844800000,30.5514],[1434931200000,30.5514],[1435017600000,30.7718],[1435104000000,30.2989],[1435190400000,29.7844],[1435276800000,29.7997],[1435363200000,29.5615],[1435449600000,29.5615],[1435536000000,29.5615],[1435622400000,29.5615]], 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, 29.318568],[1433116800000, 29.318568],[1433203200000, 29.318568],[1433289600000, 29.334981],[1433376000000, 29.351421],[1433462400000, 29.615007],[1433548800000, 29.466851],[1433635200000, 29.466851],[1433721600000, 29.466851],[1433808000000, 29.470094],[1433894400000, 29.716761],[1433980800000, 29.776773],[1434067200000, 29.566593],[1434153600000, 29.544102],[1434240000000, 29.544102],[1434326400000, 29.544102],[1434412800000, 30.122618],[1434499200000, 31.157443],[1434585600000, 30.492043],[1434672000000, 30.228136],[1434758400000, 30.551394],[1434844800000, 30.551394],[1434931200000, 30.551394],[1435017600000, 30.771786],[1435104000000, 30.298883],[1435190400000, 29.784360],[1435276800000, 29.799727],[1435363200000, 29.561457],[1435449600000, 29.561457],[1435536000000, 29.561457],[1435622400000, 29.561457]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });