$(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: [[1162339200000,7.4742],[1162425600000,7.50068],[1162512000000,7.50035],[1162598400000,7.50085],[1162684800000,7.50085],[1162771200000,7.50085],[1162857600000,7.4716],[1162944000000,7.48925],[1163030400000,7.50092],[1163116800000,7.49481],[1163203200000,7.52351],[1163289600000,7.52351],[1163376000000,7.52351],[1163462400000,7.50644],[1163548800000,7.50104],[1163635200000,7.48587],[1163721600000,7.49226],[1163808000000,7.48054],[1163894400000,7.48054],[1163980800000,7.48054],[1164067200000,7.5002],[1164153600000,7.49713],[1164240000000,7.52036],[1164326400000,7.52036],[1164412800000,7.52036],[1164499200000,7.52036],[1164585600000,7.52036],[1164672000000,7.5913],[1164758400000,7.59697],[1164844800000,7.60522]], 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: [[1162339200000, 7.474196],[1162339200000, 7.474196],[1162425600000, 7.500683],[1162512000000, 7.500349],[1162598400000, 7.500850],[1162684800000, 7.500850],[1162771200000, 7.500850],[1162857600000, 7.471597],[1162944000000, 7.489248],[1163030400000, 7.500917],[1163116800000, 7.494806],[1163203200000, 7.523513],[1163289600000, 7.523513],[1163376000000, 7.523513],[1163462400000, 7.506436],[1163548800000, 7.501040],[1163635200000, 7.485873],[1163721600000, 7.492259],[1163808000000, 7.480539],[1163894400000, 7.480539],[1163980800000, 7.480539],[1164067200000, 7.500204],[1164153600000, 7.497131],[1164240000000, 7.520365],[1164326400000, 7.520365],[1164412800000, 7.520365],[1164499200000, 7.520365],[1164585600000, 7.520365],[1164672000000, 7.591302],[1164758400000, 7.596967],[1164844800000, 7.605216]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });