Exemplo n.º 1
0
 private string GetTag(IBreakdownChartItem item, CultureInfo culture)
 {
     return(string.Format(
                culture, "[{0}]■[/] {1}",
                item.Color.ToMarkup() ?? "default",
                FormatValue(item, culture)).Trim());
 }
Exemplo n.º 2
0
        private string FormatValue(IBreakdownChartItem item, CultureInfo culture)
        {
            var formatter = TagValueFormat ?? "{0}";

            if (ShowTagValues)
            {
                return(string.Format(culture, "{0} [grey]{1}[/]",
                                     item.Label.EscapeMarkup(),
                                     string.Format(culture, formatter, item.Value)));
            }

            return(item.Label.EscapeMarkup());
        }