---
title: "ChartXValue.from_time_span method"
url: "https://reference.aspose.com/words/python-net/aspose.words.drawing.charts/chartxvalue/from_time_span/"
product: "Aspose.Words for Python"
description: "ChartXValue.from_time_span method. Creates a [ChartXValue](../) instance of the [ChartXValueType.TIME](../../chartxvaluetype/#TIME) type."
---


## from_time_span(value) {#timespan}

Creates a [ChartXValue](../) instance of the [ChartXValueType.TIME](../../chartxvaluetype/#TIME) type.



```python
def from_time_span(self, value: datetime.timespan):
    ...
```

| Parameter | Type | Description |
| --- | --- | --- |
| value | datetime.timespan |  |

### See Also

* module [aspose.words.drawing.charts](../../)
* class [ChartXValue](../)

