$(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: [[1496275200000,19.0249],[1496361600000,18.9845],[1496448000000,18.9553],[1496534400000,18.9553],[1496620800000,18.9553],[1496707200000,18.9553],[1496793600000,18.9985],[1496880000000,18.9655],[1496966400000,18.9133],[1497052800000,18.8745],[1497139200000,18.8745],[1497225600000,18.8745],[1497312000000,18.8358],[1497398400000,18.8109],[1497484800000,18.8553],[1497571200000,18.8031],[1497657600000,18.7997],[1497744000000,18.7997],[1497830400000,18.7997],[1497916800000,18.8228],[1498003200000,18.7602],[1498089600000,18.7309],[1498176000000,18.7186],[1498262400000,18.7691],[1498348800000,18.7691],[1498435200000,18.7691],[1498521600000,18.7518],[1498608000000,18.8232],[1498694400000,18.8232],[1498780800000,18.911]], 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: [[1496275200000, 19.024892],[1496275200000, 19.024892],[1496361600000, 18.984465],[1496448000000, 18.955329],[1496534400000, 18.955329],[1496620800000, 18.955329],[1496707200000, 18.955329],[1496793600000, 18.998524],[1496880000000, 18.965490],[1496966400000, 18.913335],[1497052800000, 18.874543],[1497139200000, 18.874543],[1497225600000, 18.874543],[1497312000000, 18.835835],[1497398400000, 18.810934],[1497484800000, 18.855258],[1497571200000, 18.803124],[1497657600000, 18.799674],[1497744000000, 18.799674],[1497830400000, 18.799674],[1497916800000, 18.822773],[1498003200000, 18.760181],[1498089600000, 18.730877],[1498176000000, 18.718590],[1498262400000, 18.769077],[1498348800000, 18.769077],[1498435200000, 18.769077],[1498521600000, 18.751787],[1498608000000, 18.823217],[1498694400000, 18.823217],[1498780800000, 18.911042]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });