Share via


DocumentChartFigure Class

public final class DocumentChartFigure
extends DocumentFigure

Figure containing a chart, such as a bar chart, line chart, or pie chart.

Method Summary

Modifier and Type Method and Description
static DocumentChartFigure fromJson(JsonReader jsonReader)

Reads an instance of DocumentChartFigure from the JsonReader.

Map<String,BinaryData> getContent()

Get the content property: Chart content represented using [Chart.js config](https://www.chartjs.org/docs/latest/configuration/).

DocumentFigureKind getKind()

Get the kind property: Figure kind.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from DocumentFigure

Methods inherited from java.lang.Object

Method Details

fromJson

public static DocumentChartFigure fromJson(JsonReader jsonReader)

Reads an instance of DocumentChartFigure from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DocumentChartFigure if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getContent

public Map<String,BinaryData> getContent()

Get the content property: Chart content represented using [Chart.js config](https://www.chartjs.org/docs/latest/configuration/).

Returns:

the content value.

getKind

public DocumentFigureKind getKind()

Get the kind property: Figure kind.

Overrides:

DocumentChartFigure.getKind()

Returns:

the kind value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DocumentChartFigure.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to