Files
radzen-blazor/Radzen.Blazor/Spreadsheet/EditChartDraft.cs
Atanas Korchev eb1daaf52b Align Spreadsheet Table and Chart API names with Excel/Office.js conventions
- Table.ShowTotalsRow → ShowTotals (matches Excel/Aspose/Office.js)
- Table.DataRange → DataBodyRange (matches Excel/Aspose/Syncfusion; pairs
  with HeaderRowRange/TotalsRowRange)
- TableColumn.CalculatedFormula → Formula (matches Excel/Aspose)
- ChartSeriesDefinition → ChartSeries with Title→Name, CategoryFormula→
  Categories, ValueFormula→Values (matches Excel/Aspose/Office.js)
2026-06-15 18:45:13 +03:00

48 lines
1.5 KiB
C#

using System.Collections.Generic;
using Radzen.Documents.Spreadsheet;
namespace Radzen.Blazor.Spreadsheet;
#nullable enable
/// <summary>
/// Mutable working state for the Edit Chart dialog. Survives close/reopen
/// cycles when the user engages a range picker on one of the series.
/// </summary>
public sealed class EditChartDraft
{
/// <summary>Chart type.</summary>
public SpreadsheetChartType ChartType { get; set; }
/// <summary>Chart title.</summary>
public string? Title { get; set; }
/// <summary>Whether the legend is shown.</summary>
public bool ShowLegend { get; set; }
/// <summary>Legend position.</summary>
public ChartLegendPosition LegendPosition { get; set; }
/// <summary>Series being edited.</summary>
public List<EditChartSeriesDraft> Series { get; set; } = new();
}
/// <summary>Mutable working state for a single chart series row in the Edit Chart dialog.</summary>
public sealed class EditChartSeriesDraft
{
/// <summary>Zero-based ordinal of the series within the chart.</summary>
public int Index { get; set; }
/// <summary>Series name.</summary>
public string? Name { get; set; }
/// <summary>Series color.</summary>
public string? Color { get; set; }
/// <summary>Sheet-qualified absolute formula for categories.</summary>
public string? Categories { get; set; }
/// <summary>Sheet-qualified absolute formula for values.</summary>
public string? Values { get; set; }
}