* UIBarChart: Option.YAxis.ShowGridLine为false时,不显示水平表格虚线

This commit is contained in:
Sunny 2022-09-07 11:33:24 +08:00
parent 286721d0c6
commit 8400e5ff37

View File

@ -26,6 +26,7 @@
* 2022-07-30: V3.2.2 AxisLabel.DecimalPlaces
* 2022-08-10: V3.2.2 Y轴显示名称
* 2022-08-17: V3.2.3 Nan
* 2022-09-07: V3.2.3 Option.YAxis.ShowGridLine为false时线
******************************************************************************/
using System;
@ -480,6 +481,7 @@ namespace Sunny.UI
g.DrawLine(ForeColor, DrawOrigin.X, labels[i], DrawOrigin.X - Option.YAxis.AxisTick.Length, labels[i]);
if (YLabels[i].IsNanOrInfinity()) continue;
if (!Option.YAxis.ShowGridLine) continue;
if (!YLabels[i].EqualsDouble(0))
{
using (Pen pn = new Pen(ForeColor))