$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1330560000000,1.21884],[1330646400000,1.20632],[1330732800000,1.19545],[1330819200000,1.19545],[1330905600000,1.19545],[1330992000000,1.19483],[1331078400000,1.18177],[1331164800000,1.17432],[1331251200000,1.17432],[1331337600000,1.17432],[1331424000000,1.17432],[1331510400000,1.17432],[1331596800000,1.17306],[1331683200000,1.17292],[1331769600000,1.17401],[1331856000000,1.16921],[1331942400000,1.1826],[1332028800000,1.1826],[1332115200000,1.1826],[1332201600000,1.18286],[1332288000000,1.18252],[1332374400000,1.18407],[1332460800000,1.17793],[1332547200000,1.18497],[1332633600000,1.18497],[1332720000000,1.18497],[1332806400000,1.18756],[1332892800000,1.1972],[1332979200000,1.19938],[1333065600000,1.19841],[1333152000000,1.20611]], 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: [[1330560000000, 1.218840],[1330560000000, 1.218840],[1330646400000, 1.206319],[1330732800000, 1.195450],[1330819200000, 1.195450],[1330905600000, 1.195450],[1330992000000, 1.194829],[1331078400000, 1.181767],[1331164800000, 1.174316],[1331251200000, 1.174316],[1331337600000, 1.174316],[1331424000000, 1.174316],[1331510400000, 1.174316],[1331596800000, 1.173060],[1331683200000, 1.172925],[1331769600000, 1.174007],[1331856000000, 1.169214],[1331942400000, 1.182602],[1332028800000, 1.182602],[1332115200000, 1.182602],[1332201600000, 1.182863],[1332288000000, 1.182518],[1332374400000, 1.184074],[1332460800000, 1.177928],[1332547200000, 1.184969],[1332633600000, 1.184969],[1332720000000, 1.184969],[1332806400000, 1.187564],[1332892800000, 1.197204],[1332979200000, 1.199384],[1333065600000, 1.198411],[1333152000000, 1.206109]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });