mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-16 21:40:41 +00:00
重构Component相关代码,调整API接口
This commit is contained in:
@@ -47,7 +47,7 @@ namespace XCharts.Example
|
||||
serie.itemStyle.borderColor = Color.clear;
|
||||
|
||||
//设置高亮样式
|
||||
var emphasisStyle = serie.AddExtraComponent<EmphasisStyle>();
|
||||
var emphasisStyle = serie.EnsureComponent<EmphasisStyle>();
|
||||
emphasisStyle.itemStyle.show = true;
|
||||
emphasisStyle.itemStyle.borderWidth = 1;
|
||||
emphasisStyle.itemStyle.borderColor = Color.black;
|
||||
|
||||
Reference in New Issue
Block a user