Skip to content

Commit

Permalink
#828: LineChartDataset - formating updates
Browse files Browse the repository at this point in the history
  • Loading branch information
gvreddy04 committed Aug 15, 2024
1 parent 9e89a2f commit 7469471
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class LineChartDataset : ChartDataset
/// <exception cref="ArgumentException">If the relative index is zero.</exception>
public LineChartDataset FillToDataset(int index, bool relativeIndex = false)
{
if (relativeIndex && index == 0)
if (relativeIndex && index == 0)
throw new ArgumentException("The relative index must be non-zero.");

Fill = relativeIndex ? index.ToString("+0;-0", CultureInfo.InvariantCulture) : index;
Expand Down Expand Up @@ -68,6 +68,7 @@ public LineChartDataset FillToDataset(ChartData chartData, IChartDataset dataset
public LineChartDataset FillToEnd()
{
Fill = "end";

return this;
}

Expand All @@ -78,6 +79,7 @@ public LineChartDataset FillToEnd()
public LineChartDataset FillToOrigin()
{
Fill = "origin";

return this;
}

Expand All @@ -88,6 +90,7 @@ public LineChartDataset FillToOrigin()
public LineChartDataset FillToStackedValueBelow()
{
Fill = "stack";

return this;
}

Expand All @@ -98,6 +101,7 @@ public LineChartDataset FillToStackedValueBelow()
public LineChartDataset FillToStart()
{
Fill = "start";

return this;
}

Expand All @@ -109,6 +113,7 @@ public LineChartDataset FillToStart()
public LineChartDataset FillToValue(double value)
{
Fill = new { value };

return this;
}

Expand Down

0 comments on commit 7469471

Please sign in to comment.