# GetActiveChart

Use the GetActiveChart method to get the active chart element. Learn its syntax and parameters in documentation.

## Content

Gets the active chart element.

## Syntax

[JavaScript]

```javascript
FpSpread1.GetActiveChart();
```

## Parameters

None

## Return Type

Element, chart image

## Remarks

This method gets the active chart.

## Example

This is a sample that contains the method. On the client side, the script that contains the method would look like this:

```javascript
<script type="text/javascript">
  function moveSelection() {
    var ret = FpSpread1.GetActiveChart();
  }
</script>
```

## See Also

[SetActiveChart](/spreadnet/docs/latest/online-asp/overview/spweb-clientscriptref/clientscript-members/clientscript-allmeths/CSSR-SetActiveChart)
[Scripting Members](/spreadnet/docs/latest/online-asp/overview/spweb-clientscriptref/clientscript-members)