mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-26 02:40:13 +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)
|
public float GetBarWidth(float categoryWidth, int barCount = 0)
|
||||||
{
|
{
|
||||||
|
if (categoryWidth < 2) return categoryWidth;
|
||||||
if (m_BarWidth == 0)
|
if (m_BarWidth == 0)
|
||||||
{
|
{
|
||||||
var width = ChartHelper.GetActualValue(0.6f, categoryWidth);
|
var width = ChartHelper.GetActualValue(0.6f, categoryWidth);
|
||||||
|
|||||||
Reference in New Issue
Block a user