$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1385856000000,6.36885],[1385942400000,6.36885],[1386028800000,6.36993],[1386115200000,6.37543],[1386201600000,6.37414],[1386288000000,6.37508],[1386374400000,6.37843],[1386460800000,6.37843],[1386547200000,6.37843],[1386633600000,6.39944],[1386720000000,6.39682],[1386806400000,6.39134],[1386892800000,6.3769],[1386979200000,6.36021],[1387065600000,6.36021],[1387152000000,6.36021],[1387238400000,6.36741],[1387324800000,6.3564],[1387411200000,6.35015],[1387497600000,6.30973],[1387584000000,6.30528],[1387670400000,6.30528],[1387756800000,6.30528],[1387843200000,6.31276],[1387929600000,6.30556],[1388016000000,6.30556],[1388102400000,6.30556],[1388188800000,6.3062],[1388275200000,6.3062],[1388361600000,6.3062],[1388448000000,6.3062]], 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: [[1385856000000, 6.368852],[1385856000000, 6.368852],[1385942400000, 6.368852],[1386028800000, 6.369929],[1386115200000, 6.375431],[1386201600000, 6.374141],[1386288000000, 6.375079],[1386374400000, 6.378432],[1386460800000, 6.378432],[1386547200000, 6.378432],[1386633600000, 6.399437],[1386720000000, 6.396819],[1386806400000, 6.391336],[1386892800000, 6.376901],[1386979200000, 6.360206],[1387065600000, 6.360206],[1387152000000, 6.360206],[1387238400000, 6.367407],[1387324800000, 6.356398],[1387411200000, 6.350154],[1387497600000, 6.309729],[1387584000000, 6.305281],[1387670400000, 6.305281],[1387756800000, 6.305281],[1387843200000, 6.312761],[1387929600000, 6.305558],[1388016000000, 6.305558],[1388102400000, 6.305558],[1388188800000, 6.306203],[1388275200000, 6.306203],[1388361600000, 6.306203],[1388448000000, 6.306203]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });