---
id: "P:cAlgo.API.GannLevel.IsVisible"
kind: "property"
type: "T:cAlgo.API.GannLevel"
url: "https://help.ctrader.com/ctrader-algo/references/Chart/Drawings/Gann/GannLevel/IsVisible/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# GannLevel.IsVisible

Member of [GannLevel](https://help.ctrader.com/ctrader-algo/references/Chart/Drawings/Gann/GannLevel/index.md).

## IsVisible

Defines if the level is visible.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
bool IsVisible {get; set;}
```

Python:

```python
gannLevel.IsVisible: bool
```

### Returns

`bool` — 

Available since cAlgo.API 5.6.

### Examples

C#:

```csharp
var gannFan = Chart.DrawGannFan("gannFan", Bars.OpenTimes.Last(30), Bars.LowPrices.Last(30), Bars.OpenTimes.LastValue, Bars.HighPrices.LastValue, Color.Blue);
foreach (var level in gannFan.GannLevels)
    level.IsVisible = level.Ratio == 1;
Print("Only the 1x1 Gann ray is visible now");
```

Python:

```python
gannFan = api.Chart.DrawGannFan("gannFan", api.Bars.OpenTimes.Last(30), api.Bars.LowPrices.Last(30), api.Bars.OpenTimes.LastValue, api.Bars.HighPrices.LastValue, Color.Blue)
for level in gannFan.GannLevels:
    level.IsVisible = level.Ratio == 1
api.Print("Only the 1x1 Gann ray is visible now")
```

