$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1159660800000,0.0234187],[1159747200000,0.0234187],[1159833600000,0.0232943],[1159920000000,0.0234136],[1160006400000,0.0232181],[1160092800000,0.0234115],[1160179200000,0.023361],[1160265600000,0.023361],[1160352000000,0.023361],[1160438400000,0.0233964],[1160524800000,0.0233875],[1160611200000,0.0236917],[1160697600000,0.0237178],[1160784000000,0.0238845],[1160870400000,0.0238845],[1160956800000,0.0238845],[1161043200000,0.0238134],[1161129600000,0.0237126],[1161216000000,0.0237405],[1161302400000,0.0240851],[1161388800000,0.0242561],[1161475200000,0.0242561],[1161561600000,0.0242561],[1161648000000,0.0240664],[1161734400000,0.024088],[1161820800000,0.0241675],[1161907200000,0.0244734],[1161993600000,0.0244743],[1162080000000,0.0244743],[1162166400000,0.0244743],[1162252800000,0.0244297]], 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.023419],[1159660800000, 0.023419],[1159747200000, 0.023419],[1159833600000, 0.023294],[1159920000000, 0.023414],[1160006400000, 0.023218],[1160092800000, 0.023411],[1160179200000, 0.023361],[1160265600000, 0.023361],[1160352000000, 0.023361],[1160438400000, 0.023396],[1160524800000, 0.023387],[1160611200000, 0.023692],[1160697600000, 0.023718],[1160784000000, 0.023884],[1160870400000, 0.023884],[1160956800000, 0.023884],[1161043200000, 0.023813],[1161129600000, 0.023713],[1161216000000, 0.023741],[1161302400000, 0.024085],[1161388800000, 0.024256],[1161475200000, 0.024256],[1161561600000, 0.024256],[1161648000000, 0.024066],[1161734400000, 0.024088],[1161820800000, 0.024168],[1161907200000, 0.024473],[1161993600000, 0.024474],[1162080000000, 0.024474],[1162166400000, 0.024474],[1162252800000, 0.024430]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });