mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-30 13:28:47 +00:00
修复Legend的LabelStyle的formatter不生效的问题
This commit is contained in:
@@ -70,6 +70,7 @@ slug: /changelog
|
|||||||
|
|
||||||
## master
|
## master
|
||||||
|
|
||||||
|
* (2023.12.19) 修复`Legend`的`LabelStyle`的`formatter`不生效的问题
|
||||||
* (2023.12.12) 增加`Legend`的`TextLimit`可限制图例显示文本的长度
|
* (2023.12.12) 增加`Legend`的`TextLimit`可限制图例显示文本的长度
|
||||||
* (2023.12.11) 修复`Serie`添加`double.MaxValue`时坐标绘制失败的问题
|
* (2023.12.11) 修复`Serie`添加`double.MaxValue`时坐标绘制失败的问题
|
||||||
* (2023.12.10) 增加`Serie`的`minShowLabel`可隐藏小于指定值的`label`
|
* (2023.12.10) 增加`Serie`的`minShowLabel`可隐藏小于指定值的`label`
|
||||||
|
|||||||
@@ -161,7 +161,7 @@ namespace XCharts.Runtime
|
|||||||
private string GetFormatterContent(Legend legend, int dataIndex, string category)
|
private string GetFormatterContent(Legend legend, int dataIndex, string category)
|
||||||
{
|
{
|
||||||
#pragma warning disable 0618
|
#pragma warning disable 0618
|
||||||
if (string.IsNullOrEmpty(legend.formatter) || string.IsNullOrEmpty(legend.labelStyle.formatter))
|
if (string.IsNullOrEmpty(legend.formatter) && string.IsNullOrEmpty(legend.labelStyle.formatter))
|
||||||
return category;
|
return category;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user