$(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: [[1509494400000,19.7112],[1509580800000,19.7439],[1509667200000,19.7952],[1509753600000,19.8249],[1509840000000,19.8249],[1509926400000,19.8249],[1510012800000,19.676],[1510099200000,19.6106],[1510185600000,19.5562],[1510272000000,19.5256],[1510358400000,19.492],[1510444800000,19.492],[1510531200000,19.492],[1510617600000,19.4582],[1510704000000,19.4768],[1510790400000,19.5321],[1510876800000,19.5137],[1510963200000,19.5372],[1511049600000,19.5372],[1511136000000,19.5372],[1511222400000,19.5296],[1511308800000,19.5513],[1511395200000,19.7093],[1511481600000,19.957],[1511568000000,19.9946],[1511654400000,19.9946],[1511740800000,19.9946],[1511827200000,19.9673],[1511913600000,19.987],[1512000000000,20.0624]], 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: [[1509494400000, 19.711234],[1509494400000, 19.711234],[1509580800000, 19.743928],[1509667200000, 19.795234],[1509753600000, 19.824875],[1509840000000, 19.824875],[1509926400000, 19.824875],[1510012800000, 19.675995],[1510099200000, 19.610600],[1510185600000, 19.556195],[1510272000000, 19.525648],[1510358400000, 19.491988],[1510444800000, 19.491988],[1510531200000, 19.491988],[1510617600000, 19.458220],[1510704000000, 19.476774],[1510790400000, 19.532143],[1510876800000, 19.513730],[1510963200000, 19.537238],[1511049600000, 19.537238],[1511136000000, 19.537238],[1511222400000, 19.529582],[1511308800000, 19.551312],[1511395200000, 19.709298],[1511481600000, 19.957004],[1511568000000, 19.994581],[1511654400000, 19.994581],[1511740800000, 19.994581],[1511827200000, 19.967326],[1511913600000, 19.987003],[1512000000000, 20.062402]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });