---
Product: Aspose.Slides
Platform: python
Page Type: reference
Canonical URL: https://reference.aspose.org/slides/python/StringOrDoubleChartValue
---

# StringOrDoubleChartValue

## Overview

`StringOrDoubleChartValue` is a class in Aspose.Slides FOSS for Python.
Inherits from: `IStringOrDoubleChartValue`, `BaseChartValue`.

Represents a value that can be string or double, backed by a cell or literal.

This class provides 1 method for working with StringOrDoubleChartValue objects in Python programs.
Available methods include: `to_double`.
All public members are accessible to any Python application after installing the Aspose.Slides FOSS for Python package.
Properties: `as_cell`, `as_literal_double`, `as_literal_string`, `data`, `data_source_type`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `as_cell` | `IChartDataCell` | Read/Write | Gets or sets the as cell. |
| `as_literal_string` | `str` | Read/Write | Gets or sets the as literal string. |
| `as_literal_double` | `float` | Read/Write | Gets or sets the as literal double. |
| `data_source_type` | `DataSourceType` | Read/Write | Gets or sets the data source type. |
| `data` | `object` | Read/Write | Gets or sets the data. |

## Methods

| Signature | Description |
|-----------|-------------|
| `to_double()` → `float` | Converts the stored value to a float and returns it |

## See Also

- [Aspose.Slides — Enterprise API Reference](https://reference.aspose.com/slides/)