$(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: [[1231200000000,5.23247],[1231286400000,5.20596],[1231372800000,5.20596],[1231459200000,5.19552],[1231545600000,5.20279],[1231632000000,5.20279],[1231718400000,5.20279],[1231804800000,5.18312],[1231891200000,5.16945],[1231977600000,5.15826],[1232064000000,5.14106],[1232150400000,5.18149],[1232236800000,null],[1232323200000,5.18149],[1232409600000,5.15419],[1232496000000,5.10072],[1232582400000,5.11932],[1232668800000,5.14602],[1232755200000,5.10951],[1232841600000,5.10951],[1232928000000,5.10951],[1233014400000,5.13676],[1233100800000,5.12322],[1233187200000,5.13876],[1233273600000,5.11785],[1233360000000,5.10096]], 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: [[1231200000000, 5.232471],[1231200000000, 5.232471],[1231286400000, 5.205964],[1231372800000, 5.205964],[1231459200000, 5.195525],[1231545600000, 5.202785],[1231632000000, 5.202785],[1231718400000, 5.202785],[1231804800000, 5.183124],[1231891200000, 5.169454],[1231977600000, 5.158264],[1232064000000, 5.141060],[1232150400000, 5.181491],[1232323200000, 5.181491],[1232409600000, 5.154187],[1232496000000, 5.100722],[1232582400000, 5.119322],[1232668800000, 5.146016],[1232755200000, 5.109506],[1232841600000, 5.109506],[1232928000000, 5.109506],[1233014400000, 5.136760],[1233100800000, 5.123222],[1233187200000, 5.138759],[1233273600000, 5.117850],[1233360000000, 5.100961]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });