$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1159660800000,0.18857],[1159747200000,0.18857],[1159833600000,0.18847],[1159920000000,0.1889],[1160006400000,0.18866],[1160092800000,0.18857],[1160179200000,0.18836],[1160265600000,0.18836],[1160352000000,0.18836],[1160438400000,0.18779],[1160524800000,0.18781],[1160611200000,0.18736],[1160697600000,0.18738],[1160784000000,0.18751],[1160870400000,0.18751],[1160956800000,0.18751],[1161043200000,0.18725],[1161129600000,0.18742],[1161216000000,0.18753],[1161302400000,0.18749],[1161388800000,0.18807],[1161475200000,0.18807],[1161561600000,0.18807],[1161648000000,0.18787],[1161734400000,0.18752],[1161820800000,0.18771],[1161907200000,0.18822],[1161993600000,0.18851],[1162080000000,0.18851],[1162166400000,0.18851],[1162252800000,0.1888]], 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: [[1159660800000, 0.188570],[1159660800000, 0.188570],[1159747200000, 0.188570],[1159833600000, 0.188470],[1159920000000, 0.188900],[1160006400000, 0.188660],[1160092800000, 0.188570],[1160179200000, 0.188360],[1160265600000, 0.188360],[1160352000000, 0.188360],[1160438400000, 0.187790],[1160524800000, 0.187810],[1160611200000, 0.187360],[1160697600000, 0.187380],[1160784000000, 0.187510],[1160870400000, 0.187510],[1160956800000, 0.187510],[1161043200000, 0.187250],[1161129600000, 0.187420],[1161216000000, 0.187530],[1161302400000, 0.187490],[1161388800000, 0.188070],[1161475200000, 0.188070],[1161561600000, 0.188070],[1161648000000, 0.187870],[1161734400000, 0.187520],[1161820800000, 0.187710],[1161907200000, 0.188220],[1161993600000, 0.188510],[1162080000000, 0.188510],[1162166400000, 0.188510],[1162252800000, 0.188800]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });