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
| Nazwa | Typ | Dostęp | Opis |
|---|---|---|---|
chartType | : ChartType | Odczyt/zapis | Pobiera lub ustawia typ wykresu. |
title | : string | Odczyt/zapis | Pobiera lub ustawia tytuł. |
series | : ChartSeries[] | Odczyt/zapis | Uzyskuje 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/zapis | Pobiera lub ustawia obszar wykresu. |
fromRow | : number | Odczyt/zapis | Pobiera lub ustawia wiersz początkowy. |
fromCol | : number | Odczyt/zapis | Pobiera lub ustawia kolumnę początkową. |
toRow | : number | Odczyt/zapis | Pobiera lub ustawia wiersz docelowy. |
toCol | : number | Odczyt/zapis | Pobiera lub ustawia kolumnę docelową. |
fromRowOff | : number | Odczyt/zapis | Pobiera lub ustawia offset wiersza początkowego. |
fromColOff | : number | Odczyt/zapis | Pobiera lub ustawia wartość from col off. |
toRowOff | : number | Odczyt/zapis | Pobiera lub ustawia wiersz końcowy. |
toColOff | : number | Odczyt/zapis | Pobiera lub ustawia wartość to col off. |
originalX | : number | Odczyt/zapis | Pobiera lub ustawia oryginalną wartość x. |
originalY | : number | Odczyt/zapis | Pobiera lub ustawia oryginalną y. |
sheetIndex | : number | Odczyt/zapis | Pobiera lub ustawia indeks arkusza. |
type | : string | Odczyt/zapis | Pobiera lub ustawia typ. |
name | : string | Odczyt/zapis | Pobiera lub ustawia nazwę. |
originalChartXml | : string | Odczyt/zapis | Pobiera lub ustawia oryginalny XML wykresu. |
originalStyleXml | : string | Odczyt/zapis | Pobiera lub ustawia oryginalny styl xml. |
originalColorsXml | : string | Odczyt/zapis | Pobiera lub ustawia oryginalny xml kolorów. |
x | : number | Odczyt/zapis | Pobiera lub ustawia x. |
y | : number | Odczyt/zapis | Pobiera lub ustawia y. |
width | : number | Odczyt/zapis | Pobiera lub ustawia szerokość. |
height | : number | Odczyt/zapis | Pobiera lub ustawia wysokość. |
dataRange | : string | Odczyt/zapis | Pobiera lub ustawia zakres danych. |
dataIsVertical | : boolean | Odczyt/zapis | Pobiera lub ustawia, czy dane są pionowe. |
Metody
| Sygnatura | Opis |
|---|---|
constructor(type: ChartType, sheetIndex: number) | Wywołuje konstruktor(type, sheetIndex) na tej instancji Chart. |
setPosition(topRow: number, leftColumn: number, bottomRow: number, rightColumn: number) → Chart | Ustawia wartość pozycji. |
setPositionWithOffset(topRow: number, top: number, leftColumn: number, left: number, height: number, width: number) → Chart | Ustawia pozycję przy wartości offsetu. |
setDataRange(dataRange: string, isVertical: boolean) → Chart | Ustawia wartość zakresu danych. |
setWorksheet(worksheet: Worksheet) | Ustawia wartość worksheet. |
setTitle(title: string) → Chart | Ustawia wartość tytułu. |
| `setLegendPosition(position: “left” | “right” |