# VTK Chart Overlay Doesn't work with VTK 9

**URL:** https://discourse.vtk.org/t/vtk-chart-overlay-doesnt-work-with-vtk-9/3616
**Category:** Development
**Created:** [June 22, 2020, 5:42pm UTC](https://discourse.vtk.org/t/vtk-chart-overlay-doesnt-work-with-vtk-9/3616 "2020-06-22T17:42:31Z")
**Posts on this page:** 1
**Showing post:** 10

<div class="post-metadata">

### Author: ![codeling](https://discourse.vtk.org/user_avatar/discourse.vtk.org/codeling/32/3792_2.png) [@codeling](https://discourse.vtk.org/u/codeling)
#### Post date: [July 31, 2020, 6:54am UTC](https://discourse.vtk.org/t/vtk-chart-overlay-doesnt-work-with-vtk-9/3616/10 "2020-07-31T06:54:42Z")

</div>

Finally found the problem: I need to do the `vtk_module_autoinit` directly on the library using the chart overlay.

Previously, we had only done the `vtk_module_autoinit` on our core library (a .dll /.so) which was used from all our other libraries and which exports VTK libraries by using `PUBLIC` in the `target_link_library` call with VTK libraries…

---

_[View the full topic](https://discourse.vtk.org/t/vtk-chart-overlay-doesnt-work-with-vtk-9/3616)._
