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

# StringChartValue

## Overview

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

Represents a string value backed by workbook cells or literal.

This class provides 2 methods for working with StringChartValue objects in Python programs.
Available methods include: `set_from_one_cell`, `to_string`.
All public members are accessible to any Python application after installing the Aspose.Slides FOSS for Python package.
Properties: `as_literal_string`, `data`, `data_source_type`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `as_literal_string` | `str` | Read/Write | Gets or sets the as literal string. |
| `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 |
|-----------|-------------|
| `set_from_one_cell(cell: 'ChartDataCell')` | Sets the from one cell value. |
| `to_string()` → `str` | Returns the string representation of the chart value |

## See Also

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