@code{
protected List DataSets2 { get; set; } = new List
{
new HorizontalBarDataSet2
{
XValue = 0,
FormattedValue1 = "Value1",
Label1 = "1",
Value1 = 12,
FormattedValue2 = "Value2",
Label2 = "2",
Value2 = 15,
FormattedValue3 = "Value3",
Label3 = "3",
Value3 = 17,
FormattedValue4 = "Value4",
Label4 = "4",
Value4 = 18
}
};
public class HorizontalBarDataSet2
{
public decimal XValue { get; set; }
public decimal Value1 { get; set; }
public decimal Value2 { get; set; }
public decimal Value3 { get; set; }
public decimal Value4 { get; set; }
public string Label1 { get; set; } = string.Empty;
public string Label2 { get; set; } = string.Empty;
public string Label3 { get; set; } = string.Empty;
public string Label4 { get; set; } = string.Empty;
public string FormattedValue1 { get; set; } = string.Empty;
public string FormattedValue2 { get; set; } = string.Empty;
public string FormattedValue3 { get; set; } = string.Empty;
public string FormattedValue4 { get; set; } = string.Empty;
}
}