$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1462060800000,1.27344],[1462147200000,1.27344],[1462233600000,1.27344],[1462320000000,1.27344],[1462406400000,1.27269],[1462492800000,1.26801],[1462579200000,1.26963],[1462665600000,1.26963],[1462752000000,1.26963],[1462838400000,1.26963],[1462924800000,1.27336],[1463011200000,1.27947],[1463097600000,1.27773],[1463184000000,1.28481],[1463270400000,1.28481],[1463356800000,1.28481],[1463443200000,1.28246],[1463529600000,1.27681],[1463616000000,1.27515],[1463702400000,1.27405],[1463788800000,1.26936],[1463875200000,null],[1463961600000,1.26936],[1464048000000,1.26208],[1464134400000,1.25956],[1464220800000,1.25568],[1464307200000,1.25135],[1464393600000,1.25341],[1464480000000,1.25341],[1464566400000,1.25341],[1464652800000,1.25775]], 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, 1.273442],[1462060800000, 1.273442],[1462147200000, 1.273442],[1462233600000, 1.273442],[1462320000000, 1.273442],[1462406400000, 1.272688],[1462492800000, 1.268013],[1462579200000, 1.269630],[1462665600000, 1.269630],[1462752000000, 1.269630],[1462838400000, 1.269630],[1462924800000, 1.273362],[1463011200000, 1.279468],[1463097600000, 1.277734],[1463184000000, 1.284808],[1463270400000, 1.284808],[1463356800000, 1.284808],[1463443200000, 1.282462],[1463529600000, 1.276810],[1463616000000, 1.275154],[1463702400000, 1.274050],[1463788800000, 1.269361],[1463961600000, 1.269361],[1464048000000, 1.262079],[1464134400000, 1.259557],[1464220800000, 1.255675],[1464307200000, 1.251352],[1464393600000, 1.253411],[1464480000000, 1.253411],[1464566400000, 1.253411],[1464652800000, 1.257747]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });