3.0 - tooltip

This commit is contained in:
monitor1394
2022-02-12 20:10:29 +08:00
parent cc4ee3735c
commit a19b796a02
16 changed files with 88 additions and 36 deletions

View File

@@ -92,11 +92,11 @@ namespace XCharts
/// <summary>
/// theme的颜色索引
/// </summary>
internal int colorIndex;
public int colorIndex;
/// <summary>
/// 绘制点
/// </summary>
internal List<PointInfo> drawPoints = new List<PointInfo>();
public List<PointInfo> drawPoints = new List<PointInfo>();
public SerieParams param = new SerieParams();
}
}

View File

@@ -294,7 +294,6 @@ namespace XCharts
serieData.labelObject.SetPosition(serieData.context.position);
serieData.labelObject.UpdateIcon(iconStyle);
if (serie.show
&& currLabel != null
&& (currLabel.show || isHighlight)
@@ -414,7 +413,7 @@ namespace XCharts
param.serieData = serieData;
param.value = serieData.GetData(param.dimension);
param.total = SerieHelper.GetMaxData(serie, dimension);
param.color = chart.theme.GetColor(dataIndex);
param.color = chart.GetLegendRealShowNameColor(serieData.name);
param.marker = SerieHelper.GetItemMarker(serie, serieData, marker);
param.itemFormatter = itemFormatter;
param.numericFormatter = SerieHelper.GetNumericFormatter(serie, serieData, numericFormatter);