public string GetFormatterContent(string category) { if (string.IsNullOrEmpty(category)) { return(category); } if (string.IsNullOrEmpty(m_Formatter)) { return(m_TextLimit.GetLimitContent(category)); } else { var content = m_Formatter; FormatterHelper.ReplaceAxisLabelContent(ref content, category); return(m_TextLimit.GetLimitContent(content)); } }
public string GetFormatterContent(string category) { if (string.IsNullOrEmpty(category)) { return(category); } if (string.IsNullOrEmpty(m_Formatter)) { return(m_TextLimit.GetLimitContent(category)); } else { var content = m_Formatter.Replace("{value}", category); content = content.Replace("\\n", "\n"); content = content.Replace("<br/>", "\n"); return(m_TextLimit.GetLimitContent(content)); } }