ChartMancer::setYMaxValueRatio
Sets the maximum value ratio for the y-axis.
This method allows you to set the maximum value ratio for the y-axis in the chart. The ratio determines the maximum value displayed on the y-axis as a additional percentage of the actual maximum dataset value.
Signature
public function setYMaxValueRatio(float
$ratio )
Parameters
$ratio
— float- The maximum value ratio for the y-axis like 0.1 for 10% or 0.2 for 20%.
Returns
- void