$(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: [[1462060800000,0.076272],[1462147200000,0.076272],[1462233600000,0.076272],[1462320000000,0.076272],[1462406400000,0.076533],[1462492800000,0.075556],[1462579200000,0.074954],[1462665600000,0.074954],[1462752000000,0.074954],[1462838400000,0.074954],[1462924800000,0.075302],[1463011200000,0.075689],[1463097600000,0.075962],[1463184000000,0.077177],[1463270400000,0.077177],[1463356800000,0.077177],[1463443200000,0.077162],[1463529600000,0.077081],[1463616000000,0.076987],[1463702400000,0.07657],[1463788800000,0.075253],[1463875200000,null],[1463961600000,0.075253],[1464048000000,0.074994],[1464134400000,0.07472],[1464220800000,0.074633],[1464307200000,0.074649],[1464393600000,0.075463],[1464480000000,0.075463],[1464566400000,0.075463],[1464652800000,0.075015]], 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: [[1462060800000, 0.076272],[1462060800000, 0.076272],[1462147200000, 0.076272],[1462233600000, 0.076272],[1462320000000, 0.076272],[1462406400000, 0.076533],[1462492800000, 0.075556],[1462579200000, 0.074954],[1462665600000, 0.074954],[1462752000000, 0.074954],[1462838400000, 0.074954],[1462924800000, 0.075302],[1463011200000, 0.075689],[1463097600000, 0.075962],[1463184000000, 0.077177],[1463270400000, 0.077177],[1463356800000, 0.077177],[1463443200000, 0.077162],[1463529600000, 0.077081],[1463616000000, 0.076987],[1463702400000, 0.076570],[1463788800000, 0.075253],[1463961600000, 0.075253],[1464048000000, 0.074994],[1464134400000, 0.074720],[1464220800000, 0.074633],[1464307200000, 0.074649],[1464393600000, 0.075463],[1464480000000, 0.075463],[1464566400000, 0.075463],[1464652800000, 0.075015]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });