我正在尝试使 x 轴上的标签成两条线,但它被切断了。这是我的代码
<!DOCTYPE html >
<html>
<head>
<script src="RGraph.common.core.js" ></script>
<script src="RGraph.line.js" ></script>
</head>
<body>
<canvas id="cvs" width="320" height="320">[No canvas support]</canvas>
<script>
window.onload = function ()
{
var line = new RGraph.Line('cvs', [0,52,90,86,86,75,75,75,75,75,60,60,60,60,60,60,100,95,53,53]);
line.Set('chart.labels',['10/05\n21:00','11/05\n08:00','11/05\n20:00','12/05\n08:00','12/05\n20:00']);
line.Draw();
}
</script>
</body>
</html>
这是它的样子
我已经玩过画布高度,但它并没有改变它。