Class SparklineGroup
Namespace: Aspose.Cells.Charts
Assembly: Aspose.Cells.dll (25.2.0)
Aspose.Cells.Charts.Sparklineはスパークライングループに整理されています。スパークライングループには可変数のスパークライン項目が含まれます。
スパークライングループは、スパークラインのタイプ、表示設定、および軸設定を指定します。
public class SparklineGroup
継承
継承されたメンバー
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
例
Workbook book = new Workbook();
Worksheet sheet = book.Worksheets[0];
sheet.Cells["A1"].PutValue(5);
sheet.Cells["B1"].PutValue(2);
sheet.Cells["C1"].PutValue(1);
sheet.Cells["D1"].PutValue(3);
// セルエリアを定義
CellArea ca = new CellArea();
ca.StartColumn = 4;
ca.EndColumn = 4;
ca.StartRow = 0;
ca.EndRow = 0;
int idx = sheet.SparklineGroups.Add(Aspose.Cells.Charts.SparklineType.Line, "A1:D1", false, ca);
SparklineGroup group = sheet.SparklineGroups[idx];
group.Sparklines.Add(sheet.Name + "!A1:D1", 0, 4);
// CellsColorを作成
CellsColor clr = book.CreateCellsColor();
clr.Color = Color.Orange;
group.SeriesColor = clr;
// 高点を緑色、低点を赤色に設定
group.ShowHighPoint = true;
group.ShowLowPoint = true;
group.HighPointColor.Color = Color.Green;
group.LowPointColor.Color = Color.Red;
// 線の太さを設定
group.LineWeight = 1.0;
book.Save("output.xlsx", SaveFormat.Xlsx);
プロパティ
DisplayHidden
非表示の行と列のデータを表示するかどうかを示します。
public bool DisplayHidden { get; set; }
プロパティ値
FirstPointColor
スパークライングループのデータの最初のポイントの色を取得または設定します。
public CellsColor FirstPointColor { get; set; }
プロパティ値
HighPointColor
スパークライングループのデータの最高点の色を取得または設定します。
public CellsColor HighPointColor { get; set; }
プロパティ値
HorizontalAxisColor
スパークライングループの横軸の色を取得または設定します。
public CellsColor HorizontalAxisColor { get; set; }
プロパティ値
HorizontalAxisDateRange
スパークラインデータの日時値を含む範囲を表します。
public string HorizontalAxisDateRange { get; set; }
プロパティ値
LastPointColor
スパークライングループのデータの最後のポイントの色を取得または設定します。
public CellsColor LastPointColor { get; set; }
プロパティ値
LineWeight
スパークライングループ内の各ラインスパークラインの線の太さをポイント単位で取得または設定します。
public double LineWeight { get; set; }
プロパティ値
LowPointColor
スパークライングループのデータの最低点の色を取得または設定します。
public CellsColor LowPointColor { get; set; }
プロパティ値
MarkersColor
スパークライングループ内の各ラインスパークラインのポイントの色を取得または設定します。
public CellsColor MarkersColor { get; set; }
プロパティ値
NegativePointsColor
スパークライングループの負の値の色を取得または設定します。
public CellsColor NegativePointsColor { get; set; }
プロパティ値
PlotEmptyCellsType
空のセルをプロットする方法を示します。
public PlotEmptyCellsType PlotEmptyCellsType { get; set; }
プロパティ値
PlotRightToLeft
プロットデータが右から左であるかどうかを示します。
public bool PlotRightToLeft { get; set; }
プロパティ値
PresetStyle
スパークライングループのプリセットスタイルタイプを取得または設定します。
public SparklinePresetStyleType PresetStyle { get; set; }
プロパティ値
SeriesColor
スパークライングループ内のスパークラインの色を取得または設定します。
public CellsColor SeriesColor { get; set; }
プロパティ値
ShowFirstPoint
スパークライングループのデータの最初のポイントを強調表示するかどうかを示します。
public bool ShowFirstPoint { get; set; }
プロパティ値
ShowHighPoint
スパークライングループのデータの最高点を強調表示するかどうかを示します。
public bool ShowHighPoint { get; set; }
プロパティ値
ShowHorizontalAxis
スパークラインの横軸を表示するかどうかを示します。
スパークラインにゼロ軸を越えるデータがある場合、横軸が表示されます。
public bool ShowHorizontalAxis { get; set; }
プロパティ値
ShowLastPoint
スパークライングループのデータの最後のポイントを強調表示するかどうかを示します。
public bool ShowLastPoint { get; set; }
プロパティ値
ShowLowPoint
スパークライングループのデータの最低点を強調表示するかどうかを示します。
public bool ShowLowPoint { get; set; }
プロパティ値
ShowMarkers
スパークライングループ内の各ラインスパークラインの各ポイントを強調表示するかどうかを示します。
public bool ShowMarkers { get; set; }
プロパティ値
ShowNegativePoints
スパークライングループの負の値を異なる色またはマーカーで強調表示するかどうかを示します。
public bool ShowNegativePoints { get; set; }
プロパティ値
Sparklines
Aspose.Cells.Charts.Sparklineオブジェクトのコレクションを取得します。
public SparklineCollection Sparklines { get; }
プロパティ値
Type
スパークライングループのスパークラインタイプを示します。
public SparklineType Type { get; set; }
プロパティ値
VerticalAxisMaxValue
縦軸のカスタム最大値を取得または設定します。
public double VerticalAxisMaxValue { get; set; }
プロパティ値
VerticalAxisMaxValueType
縦軸の最大値タイプを表します。
public SparklineAxisMinMaxType VerticalAxisMaxValueType { get; set; }
プロパティ値
VerticalAxisMinValue
縦軸のカスタム最小値を取得または設定します。
public double VerticalAxisMinValue { get; set; }
プロパティ値
VerticalAxisMinValueType
縦軸の最小値タイプを表します。
public SparklineAxisMinMaxType VerticalAxisMinValueType { get; set; }
プロパティ値
メソッド
ResetRanges(string, bool, CellArea)
スパークライングループのデータ範囲と位置範囲をリセットします。
このメソッドは、グループ内の元のスパークライン項目をクリアし、新しい範囲のために新しいスパークライン項目を作成します。
public void ResetRanges(string dataRange, bool isVertical, CellArea locationRange)
パラメータ
dataRange
string
スパークライングループの新しいデータ範囲を指定します。
isVertical
bool
新しいデータ範囲からスパークラインを行または列でプロットするかどうかを指定します。
locationRange
CellArea
スパークラインを配置する場所を指定します。