$(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: 'Курс CNY, грн'}, 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: 'Курс CNY', data: [[1462060800000,3.88632],[1462147200000,3.88632],[1462233600000,3.88632],[1462320000000,3.88632],[1462406400000,3.87586],[1462492800000,3.86215],[1462579200000,3.8699],[1462665600000,3.8699],[1462752000000,3.8699],[1462838400000,3.8699],[1462924800000,3.86626],[1463011200000,3.89345],[1463097600000,3.8831],[1463184000000,3.90307],[1463270400000,3.90307],[1463356800000,3.90307],[1463443200000,3.89317],[1463529600000,3.87243],[1463616000000,3.86462],[1463702400000,3.8576],[1463788800000,3.84905],[1463875200000,null],[1463961600000,3.84905],[1464048000000,3.83313],[1464134400000,3.83325],[1464220800000,3.82717],[1464307200000,3.82753],[1464393600000,3.83072],[1464480000000,3.83072],[1464566400000,3.83072],[1464652800000,3.82361]], 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, 3.886317],[1462060800000, 3.886317],[1462147200000, 3.886317],[1462233600000, 3.886317],[1462320000000, 3.886317],[1462406400000, 3.875860],[1462492800000, 3.862146],[1462579200000, 3.869904],[1462665600000, 3.869904],[1462752000000, 3.869904],[1462838400000, 3.869904],[1462924800000, 3.866263],[1463011200000, 3.893447],[1463097600000, 3.883099],[1463184000000, 3.903073],[1463270400000, 3.903073],[1463356800000, 3.903073],[1463443200000, 3.893173],[1463529600000, 3.872428],[1463616000000, 3.864617],[1463702400000, 3.857599],[1463788800000, 3.849048],[1463961600000, 3.849048],[1464048000000, 3.833134],[1464134400000, 3.833246],[1464220800000, 3.827170],[1464307200000, 3.827529],[1464393600000, 3.830722],[1464480000000, 3.830722],[1464566400000, 3.830722],[1464652800000, 3.823609]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });