public override void OnSerieDataUpdate(int serieIndex)
 {
     if (FormatterHelper.NeedFormat(component.formatter))
     {
         component.refreshComponent();
     }
 }
Ejemplo n.º 2
0
 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));
     }
 }
Ejemplo n.º 3
0
 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);
     }
 }