Пример #1
0
 private static HtmlBuilder Td(
     this HtmlBuilder hb,
     Context context,
     SiteSettings ss,
     Column value,
     string aggregateType,
     bool daily,
     string x,
     decimal max,
     decimal data)
 {
     return(hb.Td(css: DayOfWeekCss(daily, x), action: () => hb
                  .Text(text: CrosstabUtilities.CellText(
                            context: context,
                            value: value,
                            aggregateType: aggregateType,
                            data: data))
                  .Svg(css: "svg-crosstab", action: () => hb
                       .Rect(
                           x: 0,
                           y: 0,
                           width: max > 0
                     ? (data / max * 100).ToString("0.0") + "%"
                     : "0",
                           height: "20px"))));
 }
Пример #2
0
 private static HtmlBuilder Td(
     this HtmlBuilder hb,
     Context context,
     SiteSettings ss,
     Column value,
     string aggregateType,
     bool daily,
     string x,
     decimal max,
     decimal data)
 {
     return(hb.Td(css: DayOfWeekCss(daily, x), action: () => hb
                  .Text(text: CrosstabUtilities.CellText(
                            context: context,
                            value: value,
                            aggregateType: aggregateType,
                            data: data))
                  .Svg(
                      ss: ss,
                      max: max,
                      data: data)));
 }