# VTKChartLegend not movable

**URL:** https://discourse.vtk.org/t/vtkchartlegend-not-movable/1237
**Category:** Support
**Created:** [July 1, 2019, 8:00am UTC](https://discourse.vtk.org/t/vtkchartlegend-not-movable/1237 "2019-07-01T08:00:37Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ChristopherWaters](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/c/d78d45/32.png) [@ChristopherWaters](https://discourse.vtk.org/u/ChristopherWaters)
#### Post date: [July 1, 2019, 8:00am UTC](https://discourse.vtk.org/t/vtkchartlegend-not-movable/1237/1 "2019-07-01T08:00:37Z")

</div>

My VTKChartLegend is unmovable, even with this returning true:

```auto
chart->GetLegend()->GetDragEnabled();

```

Everything else about my VTKChartXY is working, and the interactor seems to be fully functional except for this. I am not setting the legend’s position anywhere either, only showing it.

Info:  
Win64 on 64bit machine, vtk8.2.0, Qt5.13.0, compiled/built in MCVS2017(Release x64) with cmake3.15.0

---

<div class="post-metadata">

### Author: ![ChristopherWaters](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/c/d78d45/32.png) [@ChristopherWaters](https://discourse.vtk.org/u/ChristopherWaters)
#### Post date: [July 4, 2019, 2:43am UTC](https://discourse.vtk.org/t/vtkchartlegend-not-movable/1237/2 "2019-07-04T02:43:28Z")

</div>

Not sure why but this fixed it:

```auto
chart->GetLegend()->SetHorizontalAlignment(vtkChartLegend::CUSTOM);

```

Would love to know why this is needed, if anyone knows.
