解决方法
您可以在创建/实例化时为Rickshaw.Graph对象添加填充:
var graph = new Rickshaw.Graph( { element: document.getElementById("chart"),renderer: 'line',stroke: true,series: seriesVar,padding: {top: 0.02,left: 0.02,right: 0.02,bottom: 0.02} } );
有关填充说明,请参阅Rickshaw homepage.