Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,20 @@ public BarChartDataset()
[Description("If <b>true</b>, null or undefined values will not be used for spacing calculations when determining bar size.")]
public bool SkipNull { get; set; }

//Stack
//https://www.chartjs.org/docs/latest/charts/bar.html#general
/// <summary>
/// The ID of the group to which this dataset belongs. Datasets sharing the same
/// stack are stacked together; datasets with different stacks render side by side.
/// <para>
/// Default value is <see langword="null" />.
/// </para>
/// <see href="https://www.chartjs.org/docs/latest/charts/bar.html#general" />
/// </summary>
[AddedVersion("1.2.3")]
[DefaultValue(null)]
[Description("The ID of the group to which this dataset belongs. Datasets sharing the same stack are stacked together; datasets with different stacks render side by side.")]
[ParameterTypeName("string?")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Stack { get; set; }

/// <summary>
/// The ID of the x-axis to plot this dataset on.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -563,8 +563,21 @@ public LineChartDataset FillToValue(double value)
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public bool? SpanGaps { get; set; }

//stack
//https://www.chartjs.org/docs/latest/charts/line.html#general
/// <summary>
/// The ID of the group to which this dataset belongs. On a stacked scale,
/// datasets sharing the same stack are stacked together; datasets with
/// different stacks are drawn independently.
/// <para>
/// Default value is <see langword="null" />.
/// </para>
/// <see href="https://www.chartjs.org/docs/latest/charts/line.html#general" />
/// </summary>
[AddedVersion("1.2.3")]
[DefaultValue(null)]
[Description("The ID of the group to which this dataset belongs. Datasets sharing the same stack are stacked together; datasets with different stacks are drawn independently.")]
[ParameterTypeName("string?")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Stack { get; set; }

/// <summary>
/// If the stepped value is set to anything other than <see langword="false"/>, tension will be ignored.
Expand Down