| Spread for ASP.NET 8.0 Product Documentation > Client-Side Scripting Reference > Scripting Members > Methods > GetActiveChart | 
Gets the active chart element.
[JavaScript]
FpSpread1.GetActiveChart();
None
Element, chart image
This method gets the active chart.
This is a sample that contains the method. On the client side, the script that contains the method would look like this:
| JavaScript | 
                     
                        Copy Code
                     
                 | 
            
|---|---|
                    <SCRIPT> function moveSelection() { var ret = FpSpread1.GetActiveChart(); } </SCRIPT>  | 
            |