Paint.FontMetrics fontMetrics = paint.getFontMetrics(); // 获取标题文字的高度（fontMetrics.descent - fontMetrics.ascent）
float textH = fontMetrics.descent - fontMetrics.ascent;
List<AxisValue> valuesX = axisX.getValues();
if(axisX.isShowText()){
for (int i = 0; i < valuesX.size(); i++) {
<BUG>AxisValue value = valuesX.get(i);
float textW = paint.measureText(value.getLabel());
canvas.drawText(value.getLabel(), value.getPointX() - textW / 2,  value.getPointY() - textH / 2,paint);
}</BUG>
}

Paint.FontMetrics fontMetrics = paint.getFontMetrics(); // 获取标题文字的高度（fontMetrics.descent - fontMetrics.ascent）
float textH = fontMetrics.descent - fontMetrics.ascent;
List<AxisValue> valuesX = axisX.getValues();
if(axisX.isShowText()){
for (int i = 0; i < valuesX.size(); i++) {
AxisValue value = valuesX.get(i);
if(value.isShowLabel()){
float textW = paint.measureText(value.getLabel());
canvas.drawText(value.getLabel(), value.getPointX() - textW / 2,  value.getPointY() - textH / 2,paint);
}
}
}
