$(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: [[1294272000000,6.16209],[1294358400000,6.15097],[1294444800000,6.15097],[1294531200000,6.15097],[1294617600000,6.15097],[1294704000000,6.11153],[1294790400000,6.1452],[1294876800000,6.16221],[1294963200000,6.18013],[1295049600000,6.16238],[1295136000000,6.16238],[1295222400000,6.16238],[1295308800000,6.17117],[1295395200000,6.1896],[1295481600000,6.20473],[1295568000000,6.17227],[1295654400000,6.18502],[1295740800000,6.18502],[1295827200000,6.18502],[1295913600000,6.18709],[1296000000000,6.18828],[1296086400000,6.19631],[1296172800000,6.1976],[1296259200000,6.20553],[1296345600000,6.20553],[1296432000000,6.20553]], 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: [[1294272000000, 6.162092],[1294272000000, 6.162092],[1294358400000, 6.150969],[1294444800000, 6.150969],[1294531200000, 6.150969],[1294617600000, 6.150969],[1294704000000, 6.111531],[1294790400000, 6.145204],[1294876800000, 6.162214],[1294963200000, 6.180125],[1295049600000, 6.162383],[1295136000000, 6.162383],[1295222400000, 6.162383],[1295308800000, 6.171174],[1295395200000, 6.189600],[1295481600000, 6.204731],[1295568000000, 6.172271],[1295654400000, 6.185022],[1295740800000, 6.185022],[1295827200000, 6.185022],[1295913600000, 6.187089],[1296000000000, 6.188277],[1296086400000, 6.196307],[1296172800000, 6.197600],[1296259200000, 6.205530],[1296345600000, 6.205530],[1296432000000, 6.205530]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });