3.0 - bar chart

This commit is contained in:
monitor1394
2022-01-13 21:45:59 +08:00
parent 0282dae582
commit c9addaf02c
22 changed files with 195 additions and 106 deletions

View File

@@ -788,9 +788,9 @@ namespace XCharts
Debug.LogError("Serie no Handler:" + serie.GetType());
return;
}
var attrubte = serie.GetType().GetAttribute<SerieHandlerAttribute>();
var handler = (SerieHandler)Activator.CreateInstance(attrubte.handler);
handler.attribute = attrubte;
var attribute = serie.GetType().GetAttribute<SerieHandlerAttribute>();
var handler = (SerieHandler)Activator.CreateInstance(attribute.handler);
handler.attribute = attribute;
handler.chart = this;
handler.SetSerie(serie);
serie.handler = handler;