public override void OnSerieDataUpdate(int serieIndex) { if (FormatterHelper.NeedFormat(component.formatter)) { component.refreshComponent(); } }
public override void OnSerieDataUpdate(int serieIndex) { if (m_LabelObject != null && FormatterHelper.NeedFormat(component.text)) { m_LabelObject.SetText(GetTitleText(component)); } if (m_SubLabelObject != null && FormatterHelper.NeedFormat(component.subText)) { m_SubLabelObject.SetText(GetSubTitleText(component)); } }
private string GetSubTitleText(Title title) { if (FormatterHelper.NeedFormat(title.subText)) { var content = title.subText; FormatterHelper.ReplaceContent(ref content, 0, title.subLabelStyle.numericFormatter, null, chart); return(content); } else { return(title.subText); } }