mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-18 22:40:10 +00:00
[feature][barchart] bar width
This commit is contained in:
@@ -1684,6 +1684,7 @@ namespace XCharts.Runtime
|
||||
|
||||
public float GetBarWidth(float categoryWidth, int barCount = 0)
|
||||
{
|
||||
if (categoryWidth < 2) return categoryWidth;
|
||||
if (m_BarWidth == 0)
|
||||
{
|
||||
var width = ChartHelper.GetActualValue(0.6f, categoryWidth);
|
||||
|
||||
Reference in New Issue
Block a user