$(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: 'Курс KZT, грн'}, 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: 'Курс KZT', data: [[1483228800000,0.081586],[1483315200000,0.081586],[1483401600000,0.081586],[1483488000000,0.081586],[1483574400000,0.079795],[1483660800000,0.079795],[1483747200000,0.081716],[1483833600000,0.081716],[1483920000000,0.081716],[1484006400000,0.081716],[1484092800000,0.081679],[1484179200000,0.081187],[1484265600000,0.08212],[1484352000000,null],[1484438400000,0.083326],[1484524800000,0.083326],[1484611200000,0.083185],[1484697600000,0.083052],[1484784000000,0.08317],[1484870400000,0.082887],[1484956800000,0.082648],[1485043200000,0.082648],[1485129600000,0.082648],[1485216000000,0.082471],[1485302400000,0.0829],[1485388800000,0.082987],[1485475200000,0.082896],[1485561600000,0.082719],[1485648000000,0.082719],[1485734400000,0.082719],[1485820800000,0.083123]], 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: [[1483228800000, 0.081586],[1483228800000, 0.081586],[1483315200000, 0.081586],[1483401600000, 0.081586],[1483488000000, 0.081586],[1483574400000, 0.079795],[1483660800000, 0.079795],[1483747200000, 0.081716],[1483833600000, 0.081716],[1483920000000, 0.081716],[1484006400000, 0.081716],[1484092800000, 0.081679],[1484179200000, 0.081187],[1484265600000, 0.082120],[1484438400000, 0.083326],[1484524800000, 0.083326],[1484611200000, 0.083185],[1484697600000, 0.083052],[1484784000000, 0.083170],[1484870400000, 0.082887],[1484956800000, 0.082648],[1485043200000, 0.082648],[1485129600000, 0.082648],[1485216000000, 0.082471],[1485302400000, 0.082900],[1485388800000, 0.082987],[1485475200000, 0.082896],[1485561600000, 0.082719],[1485648000000, 0.082719],[1485734400000, 0.082719],[1485820800000, 0.083123]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });