# OfficeChartSnapshot

Dependency-free chart snapshot that can be rendered by shared OfficeIMO visual engines.

Class 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeChartSnapshot.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeChartSnapshot.cs#L21)

**Modifiers**

sealed

Dependency-free chart snapshot that can be rendered by shared OfficeIMO visual engines.

## Inheritance

- object
- OfficeChartSnapshot

## Usage

Explore 3 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 1

- Method [OfficeChartSnapshot.WithSize](/api/core/officeimo-drawing-officechartsnapshot/#method-withsize-officeimo-officelength-officeimo-officelength)

### Accepted by parameters 2

- Method [OfficeChartDrawingRenderer.Render](/api/core/officeimo-drawing-officechartdrawingrenderer/#method-render-officeimo-drawing-officechartsnapshot-boolean) parameter `snapshot`
- Method [OfficeChartDrawingRenderer.RenderWithQuality](/api/core/officeimo-drawing-officechartdrawingrenderer/#method-renderwithquality-officeimo-drawing-officechartsnapshot-officeimo-drawing-officedrawingqualityoptions) parameter `snapshot`

Filter members 

Show inherited

## Constructors

OfficeChartSnapshot 5 overloads

`public OfficeChartSnapshot(string name, string? title, OfficeChartType chartKind, OfficeChartData data, OfficeLength width, OfficeLength height, OfficeChartStyle? style = null, OfficeChartLayout? layout = null)` [#](#member-02a299f8bdda6f295aead328)

[OfficeChartSnapshot.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeChartSnapshot.cs#L21)

Initializes a chart snapshot for rendering.

Parameters

**name string required**

Source shape or drawing name.

**title string? required**

Optional display title.

**chartKind OfficeIMO.OfficeChartType required**

Supported chart family.

**data OfficeIMO.Drawing.OfficeChartData required**

Chart category and series data.

**width OfficeIMO.OfficeLength required**

Requested physical render width.

**height OfficeIMO.OfficeLength required**

Requested physical render height.

**style OfficeIMO.Drawing.OfficeChartStyle? = null optional**

Optional shared chart style metadata.

**layout OfficeIMO.Drawing.OfficeChartLayout? = null optional**

Optional shared chart layout metadata.

`public OfficeChartSnapshot(string name, string? title, OfficeChartType chartKind, OfficeChartData data, OfficeLength width, OfficeLength height, double bubbleScalePercent, OfficeChartBubbleSizeMode bubbleSizeMode = Area)` [#](#constructor-ctor-string-string-officeimo-officecharttype-officeimo-drawing-officechartdata-officeimo-officelength-officeimo-officelength-double-officeimo-drawing-officechartbubblesizemode)

[OfficeChartSnapshot.cs:40](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeChartSnapshot.cs#L40)

Initializes a bubble-aware chart snapshot for rendering with default style and layout.

Parameters

**name string required**

Source shape or drawing name.

**title string? required**

Optional display title.

**chartKind OfficeIMO.OfficeChartType required**

Supported chart family.

**data OfficeIMO.Drawing.OfficeChartData required**

Chart category and series data.

**width OfficeIMO.OfficeLength required**

Requested physical render width.

**height OfficeIMO.OfficeLength required**

Requested physical render height.

**bubbleScalePercent double required**

Bubble diameter scale as a percentage from zero through 300.

**bubbleSizeMode OfficeIMO.Drawing.OfficeChartBubbleSizeMode = Area optional**

Whether bubble values represent area or width.

`public OfficeChartSnapshot(string name, string? title, OfficeChartType chartKind, OfficeChartData data, OfficeLength width, OfficeLength height, OfficeChartStyle? style, OfficeChartLayout? layout, double bubbleScalePercent, OfficeChartBubbleSizeMode bubbleSizeMode)` [#](#member-464a5c4f5e8ea471a00290d7)

[OfficeChartSnapshot.cs:61](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeChartSnapshot.cs#L61)

Initializes a bubble-aware chart snapshot for rendering.

Parameters

**name string required**

Source shape or drawing name.

**title string? required**

Optional display title.

**chartKind OfficeIMO.OfficeChartType required**

Supported chart family.

**data OfficeIMO.Drawing.OfficeChartData required**

Chart category and series data.

**width OfficeIMO.OfficeLength required**

Requested physical render width.

**height OfficeIMO.OfficeLength required**

Requested physical render height.

**style OfficeIMO.Drawing.OfficeChartStyle? required**

Optional shared chart style metadata.

**layout OfficeIMO.Drawing.OfficeChartLayout? required**

Optional shared chart layout metadata.

**bubbleScalePercent double required**

Bubble diameter scale as a percentage from zero through 300.

**bubbleSizeMode OfficeIMO.Drawing.OfficeChartBubbleSizeMode required**

Whether bubble values represent area or width.

`public OfficeChartSnapshot(string name, string? title, OfficeChartType chartKind, OfficeChartData data, OfficeLength width, OfficeLength height, OfficeChartStyle? style, OfficeChartLayout? layout, OfficeChartRadialLayout radialLayout)` [#](#member-61f656d287de079d02a08839)

[OfficeChartSnapshot.cs:69](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeChartSnapshot.cs#L69)

Creates a chart snapshot with explicit radial geometry and default bubble sizing.

Parameters

**name string required**

**title string? required**

**chartKind OfficeIMO.OfficeChartType required**

**data OfficeIMO.Drawing.OfficeChartData required**

**width OfficeIMO.OfficeLength required**

**height OfficeIMO.OfficeLength required**

**style OfficeIMO.Drawing.OfficeChartStyle? required**

**layout OfficeIMO.Drawing.OfficeChartLayout? required**

**radialLayout OfficeIMO.Drawing.OfficeChartRadialLayout required**

`public OfficeChartSnapshot(string name, string? title, OfficeChartType chartKind, OfficeChartData data, OfficeLength width, OfficeLength height, OfficeChartStyle? style, OfficeChartLayout? layout, double bubbleScalePercent, OfficeChartBubbleSizeMode bubbleSizeMode, OfficeChartRadialLayout radialLayout)` [#](#member-edb2ff5f487692cce76d61dd)

[OfficeChartSnapshot.cs:74](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeChartSnapshot.cs#L74)

Creates a chart snapshot with explicit bubble sizing and radial geometry.

Parameters

**name string required**

**title string? required**

**chartKind OfficeIMO.OfficeChartType required**

**data OfficeIMO.Drawing.OfficeChartData required**

**width OfficeIMO.OfficeLength required**

**height OfficeIMO.OfficeLength required**

**style OfficeIMO.Drawing.OfficeChartStyle? required**

**layout OfficeIMO.Drawing.OfficeChartLayout? required**

**bubbleScalePercent double required**

**bubbleSizeMode OfficeIMO.Drawing.OfficeChartBubbleSizeMode required**

**radialLayout OfficeIMO.Drawing.OfficeChartRadialLayout required**

## Methods

`public OfficeChartSnapshot WithSize(OfficeLength width, OfficeLength height)` [#](#method-withsize-officeimo-officelength-officeimo-officelength)

[OfficeChartSnapshot.cs:160](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeChartSnapshot.cs#L160)

Creates a snapshot at a different render size while retaining all chart data and presentation metadata.

Parameters

**width OfficeIMO.OfficeLength required**

Positive physical render width.

**height OfficeIMO.OfficeLength required**

Positive physical render height.

Returns

`OfficeChartSnapshot`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public string Name { get; }` [#](#property-name)

[OfficeChartSnapshot.cs:124](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeChartSnapshot.cs#L124)

Source shape or drawing name.

`public string? Title { get; }` [#](#property-title)

[OfficeChartSnapshot.cs:127](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeChartSnapshot.cs#L127)

Optional display title.

`public OfficeChartType ChartKind { get; }` [#](#property-chartkind)

[OfficeChartSnapshot.cs:130](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeChartSnapshot.cs#L130)

Supported chart family.

`public OfficeChartData Data { get; }` [#](#property-data)

[OfficeChartSnapshot.cs:133](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeChartSnapshot.cs#L133)

Chart category and series data.

`public OfficeLength Width { get; }` [#](#property-width)

[OfficeChartSnapshot.cs:136](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeChartSnapshot.cs#L136)

Requested physical render width.

`public OfficeLength Height { get; }` [#](#property-height)

[OfficeChartSnapshot.cs:139](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeChartSnapshot.cs#L139)

Requested physical render height.

`public OfficeChartStyle Style { get; }` [#](#property-style)

[OfficeChartSnapshot.cs:142](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeChartSnapshot.cs#L142)

Shared chart style metadata.

`public OfficeChartLayout Layout { get; }` [#](#property-layout)

[OfficeChartSnapshot.cs:145](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeChartSnapshot.cs#L145)

Shared chart layout metadata.

`public double BubbleScalePercent { get; }` [#](#property-bubblescalepercent)

[OfficeChartSnapshot.cs:148](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeChartSnapshot.cs#L148)

Bubble diameter scale as a percentage from zero through 300.

`public OfficeChartBubbleSizeMode BubbleSizeMode { get; }` [#](#property-bubblesizemode)

[OfficeChartSnapshot.cs:151](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeChartSnapshot.cs#L151)

Whether bubble values represent area or width.

`public OfficeChartRadialLayout RadialLayout { get; }` [#](#property-radiallayout)

[OfficeChartSnapshot.cs:154](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeChartSnapshot.cs#L154)

Pie rotation and doughnut hole geometry.

<!-- PowerForge markdown artifact sha256:35C96306DDCA99EE4A2F621523C86CEA8AE9619E6F5D3BCDCDF8945D7B1387DF -->
