$(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: [[1485907200000,3.08175],[1485993600000,3.09077],[1486080000000,3.0969],[1486166400000,3.08033],[1486252800000,3.08033],[1486339200000,3.08033],[1486425600000,3.08692],[1486512000000,3.04362],[1486598400000,3.03653],[1486684800000,3.0469],[1486771200000,3.04809],[1486857600000,3.04809],[1486944000000,3.04809],[1487030400000,3.0464],[1487116800000,3.0561],[1487203200000,3.01475],[1487289600000,3.03419],[1487376000000,3.04651],[1487462400000,3.04651],[1487548800000,3.04651],[1487635200000,3.02686],[1487721600000,3.00926],[1487808000000,2.99436],[1487894400000,2.99532],[1487980800000,3.00662],[1488067200000,3.00662],[1488153600000,3.00662],[1488240000000,2.99763]], 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: [[1485907200000, 3.081746],[1485907200000, 3.081746],[1485993600000, 3.090774],[1486080000000, 3.096899],[1486166400000, 3.080328],[1486252800000, 3.080328],[1486339200000, 3.080328],[1486425600000, 3.086923],[1486512000000, 3.043618],[1486598400000, 3.036529],[1486684800000, 3.046901],[1486771200000, 3.048090],[1486857600000, 3.048090],[1486944000000, 3.048090],[1487030400000, 3.046402],[1487116800000, 3.056102],[1487203200000, 3.014745],[1487289600000, 3.034190],[1487376000000, 3.046512],[1487462400000, 3.046512],[1487548800000, 3.046512],[1487635200000, 3.026856],[1487721600000, 3.009264],[1487808000000, 2.994359],[1487894400000, 2.995316],[1487980800000, 3.006623],[1488067200000, 3.006623],[1488153600000, 3.006623],[1488240000000, 2.997627]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });