$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1485907200000,0.45069],[1485993600000,0.44766],[1486080000000,0.44989],[1486166400000,0.45652],[1486252800000,0.45652],[1486339200000,0.45652],[1486425600000,0.46435],[1486512000000,0.45667],[1486598400000,0.45221],[1486684800000,0.45787],[1486771200000,0.46234],[1486857600000,0.46234],[1486944000000,0.46234],[1487030400000,0.46786],[1487116800000,0.47161],[1487203200000,0.47547],[1487289600000,0.47224],[1487376000000,0.46893],[1487462400000,0.46893],[1487548800000,0.46893],[1487635200000,0.46518],[1487721600000,0.46739],[1487808000000,0.46929],[1487894400000,0.46813],[1487980800000,0.46935],[1488067200000,0.46935],[1488153600000,0.46935],[1488240000000,0.46695]], 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, 0.450690],[1485907200000, 0.450690],[1485993600000, 0.447660],[1486080000000, 0.449890],[1486166400000, 0.456520],[1486252800000, 0.456520],[1486339200000, 0.456520],[1486425600000, 0.464350],[1486512000000, 0.456670],[1486598400000, 0.452210],[1486684800000, 0.457870],[1486771200000, 0.462340],[1486857600000, 0.462340],[1486944000000, 0.462340],[1487030400000, 0.467860],[1487116800000, 0.471610],[1487203200000, 0.475470],[1487289600000, 0.472240],[1487376000000, 0.468930],[1487462400000, 0.468930],[1487548800000, 0.468930],[1487635200000, 0.465180],[1487721600000, 0.467390],[1487808000000, 0.469290],[1487894400000, 0.468130],[1487980800000, 0.469350],[1488067200000, 0.469350],[1488153600000, 0.469350],[1488240000000, 0.466950]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });