# Using VTK LinePlot3D in an MFC child window

**URL:** https://discourse.vtk.org/t/using-vtk-lineplot3d-in-an-mfc-child-window/15804
**Category:** Support
**Tags:** code
**Created:** [July 11, 2025, 1:43pm UTC](https://discourse.vtk.org/t/using-vtk-lineplot3d-in-an-mfc-child-window/15804 "2025-07-11T13:43:45Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![efrederick](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/e/ec9cab/32.png) [@efrederick](https://discourse.vtk.org/u/efrederick)
#### Post date: [July 16, 2025, 3:25pm UTC](https://discourse.vtk.org/t/using-vtk-lineplot3d-in-an-mfc-child-window/15804/9 "2025-07-16T15:25:14Z")

</div>

Hi Todd, I was able to find the solution thanks to several posts made by dwventer. Thank you for your assistance with this problem.

If anyone else needs a bread crumb to the solution, see this:

> [@Using vtkChartXY with vtkMFCWindow](https://discourse.vtk.org/t/using-vtkchartxy-with-vtkmfcwindow/2959):
>
> So I found plenty of examples where I can plot a chart using something like the vtkChartXY and vtkContextView object. Something like “pvtContextViewChart-\>GetScene()-\>AddItem(pvtChart);” is needed. Can something please then tell me how do I add the Chart object to the vtkMFCWindow object?

---

_[View the full topic](https://discourse.vtk.org/t/using-vtk-lineplot3d-in-an-mfc-child-window/15804)._
