0

我想将最大刻度设置为更大的值。我怎么能用 ChartOptions 做到这一点?OptionsJsonString不起作用,因为首先我需要从请求中获取最大值

BarChartOptions GetBarChartOptions()
{
    return new BarChartOptions
    {
        Legend = new Legend
        {
            Display = false
        },
        Scales = new Scales
        {
            YAxes = new List<Axis>
            {
                new Axis
                {
                    Ticks = new AxisTicks
                    {
                        BeginAtZero = true,
                    }
                }
            }
        }
    };
}

图表图片

4

0 回答 0