$(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: [[1477958400000,0.076138],[1478044800000,null],[1478131200000,0.075694],[1478217600000,0.075646],[1478304000000,0.075482],[1478390400000,0.075482],[1478476800000,0.075482],[1478563200000,0.07521],[1478649600000,0.075241],[1478736000000,0.074922],[1478822400000,0.075607],[1478908800000,0.075244],[1478995200000,0.075244],[1479081600000,0.075244],[1479168000000,0.075026],[1479254400000,0.075493],[1479340800000,0.077476],[1479427200000,0.076354],[1479513600000,0.075924],[1479600000000,0.075924],[1479686400000,0.075924],[1479772800000,0.075597],[1479859200000,0.076484],[1479945600000,0.076495],[1480032000000,0.076225],[1480118400000,0.076139],[1480204800000,0.076139],[1480291200000,0.076139],[1480377600000,0.075416],[1480464000000,0.075226]], 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: [[1477958400000, 0.076138],[1477958400000, 0.076138],[1478131200000, 0.075694],[1478217600000, 0.075646],[1478304000000, 0.075482],[1478390400000, 0.075482],[1478476800000, 0.075482],[1478563200000, 0.075210],[1478649600000, 0.075241],[1478736000000, 0.074922],[1478822400000, 0.075607],[1478908800000, 0.075244],[1478995200000, 0.075244],[1479081600000, 0.075244],[1479168000000, 0.075026],[1479254400000, 0.075493],[1479340800000, 0.077476],[1479427200000, 0.076354],[1479513600000, 0.075924],[1479600000000, 0.075924],[1479686400000, 0.075924],[1479772800000, 0.075597],[1479859200000, 0.076484],[1479945600000, 0.076495],[1480032000000, 0.076225],[1480118400000, 0.076139],[1480204800000, 0.076139],[1480291200000, 0.076139],[1480377600000, 0.075416],[1480464000000, 0.075226]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });