public HorizontalBar(string id, string title, List<HorizontalBarElement> elements, bool orderByDescending = true) { Id = id; _orderByDescending = orderByDescending; Style = GetStyle(); Title = title; Elements = elements; BarHtml = GetBar(); }