$(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: 'Курс CZK, грн'}, 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: 'Курс CZK', data: [[1485907200000,1.07783],[1485993600000,1.07811],[1486080000000,1.0794],[1486166400000,1.07637],[1486252800000,1.07637],[1486339200000,1.07637],[1486425600000,1.08078],[1486512000000,1.06793],[1486598400000,1.06222],[1486684800000,1.06936],[1486771200000,1.07021],[1486857600000,1.07021],[1486944000000,1.07021],[1487030400000,1.06857],[1487116800000,1.07054],[1487203200000,1.05443],[1487289600000,1.06393],[1487376000000,1.0652],[1487462400000,1.0652],[1487548800000,1.0652],[1487635200000,1.06177],[1487721600000,1.05454],[1487808000000,1.04943],[1487894400000,1.05281],[1487980800000,1.05916],[1488067200000,1.05916],[1488153600000,1.05916],[1488240000000,1.05998]], 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, 1.077830],[1485907200000, 1.077830],[1485993600000, 1.078105],[1486080000000, 1.079399],[1486166400000, 1.076365],[1486252800000, 1.076365],[1486339200000, 1.076365],[1486425600000, 1.080783],[1486512000000, 1.067930],[1486598400000, 1.062218],[1486684800000, 1.069364],[1486771200000, 1.070210],[1486857600000, 1.070210],[1486944000000, 1.070210],[1487030400000, 1.068569],[1487116800000, 1.070535],[1487203200000, 1.054430],[1487289600000, 1.063926],[1487376000000, 1.065203],[1487462400000, 1.065203],[1487548800000, 1.065203],[1487635200000, 1.061769],[1487721600000, 1.054540],[1487808000000, 1.049427],[1487894400000, 1.052811],[1487980800000, 1.059156],[1488067200000, 1.059156],[1488153600000, 1.059156],[1488240000000, 1.059980]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });