Chart

Chart

Przegląd

Chart jest klasą w Aspose.Cells FOSS dla TypeScript.

Ta klasa deklaruje 7 metod dla obiektów Chart w programach TypeScript. Dostępne metody to: constructor, setDataRange, setLegendPosition, setPosition, setPositionWithOffset, setTitle, setWorksheet. Publiczne członki są dostępne dla każdej aplikacji TypeScript po zainstalowaniu pakietu Aspose.Cells FOSS dla TypeScript. Właściwości: categoryAxisPosition, chartType, dataIsVertical, dataRange, fromCol, fromColOff, oraz 23 więcej.

Właściwości

NazwaTypDostępOpis
chartType: ChartTypeOdczyt/zapisPobiera lub ustawia typ wykresu.
title: stringOdczyt/zapisPobiera lub ustawia tytuł.
series: ChartSeries[]Odczyt/zapisUzyskuje lub ustawia serie.
legendPosition`: “left”“right”“top”
categoryAxisPosition`: “left”“right”“top”
valueAxisPosition`: “left”“right”“top”
plotArea: { x: number; y: number; width: number; height: number }Odczyt/zapisPobiera lub ustawia obszar wykresu.
fromRow: numberOdczyt/zapisPobiera lub ustawia wiersz początkowy.
fromCol: numberOdczyt/zapisPobiera lub ustawia kolumnę początkową.
toRow: numberOdczyt/zapisPobiera lub ustawia wiersz docelowy.
toCol: numberOdczyt/zapisPobiera lub ustawia kolumnę docelową.
fromRowOff: numberOdczyt/zapisPobiera lub ustawia offset wiersza początkowego.
fromColOff: numberOdczyt/zapisPobiera lub ustawia wartość from col off.
toRowOff: numberOdczyt/zapisPobiera lub ustawia wiersz końcowy.
toColOff: numberOdczyt/zapisPobiera lub ustawia wartość to col off.
originalX: numberOdczyt/zapisPobiera lub ustawia oryginalną wartość x.
originalY: numberOdczyt/zapisPobiera lub ustawia oryginalną y.
sheetIndex: numberOdczyt/zapisPobiera lub ustawia indeks arkusza.
type: stringOdczyt/zapisPobiera lub ustawia typ.
name: stringOdczyt/zapisPobiera lub ustawia nazwę.
originalChartXml: stringOdczyt/zapisPobiera lub ustawia oryginalny XML wykresu.
originalStyleXml: stringOdczyt/zapisPobiera lub ustawia oryginalny styl xml.
originalColorsXml: stringOdczyt/zapisPobiera lub ustawia oryginalny xml kolorów.
x: numberOdczyt/zapisPobiera lub ustawia x.
y: numberOdczyt/zapisPobiera lub ustawia y.
width: numberOdczyt/zapisPobiera lub ustawia szerokość.
height: numberOdczyt/zapisPobiera lub ustawia wysokość.
dataRange: stringOdczyt/zapisPobiera lub ustawia zakres danych.
dataIsVertical: booleanOdczyt/zapisPobiera lub ustawia, czy dane są pionowe.

Metody

SygnaturaOpis
constructor(type: ChartType, sheetIndex: number)Wywołuje konstruktor(type, sheetIndex) na tej instancji Chart.
setPosition(topRow: number, leftColumn: number, bottomRow: number, rightColumn: number) → ChartUstawia wartość pozycji.
setPositionWithOffset(topRow: number, top: number, leftColumn: number, left: number, height: number, width: number) → ChartUstawia pozycję przy wartości offsetu.
setDataRange(dataRange: string, isVertical: boolean) → ChartUstawia wartość zakresu danych.
setWorksheet(worksheet: Worksheet)Ustawia wartość worksheet.
setTitle(title: string) → ChartUstawia wartość tytułu.
`setLegendPosition(position: “left”“right”

Zobacz także

 Polski