# vtk.js LinePlot

**URL:** https://discourse.vtk.org/t/vtk-js-lineplot/10711
**Category:** Web
**Created:** [February 16, 2023, 12:06pm UTC](https://discourse.vtk.org/t/vtk-js-lineplot/10711 "2023-02-16T12:06:41Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![LSCoder](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lscoder/32/6557_2.png) [@LSCoder](https://discourse.vtk.org/u/LSCoder)
#### Post date: [February 16, 2023, 12:06pm UTC](https://discourse.vtk.org/t/vtk-js-lineplot/10711/1 "2023-02-16T12:06:41Z")

</div>

I’m new to vtk.js and after taking a look at vtk documentation I found the [LinePlot](https://kitware.github.io/vtk-examples/site/Cxx/Plotting/LinePlot/) example but I could not find that for vtk.js. Does anyone know if there is something similar already implemented for vtk.js that I can use to draw some charts? Any suggestion/advice?

Just to give some context I’m working with 4D datasets and I need to show some computed values over time.

Thanks in advance

---

<div class="post-metadata">

### Author: ![Sebastien\_Jourdain](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sebastien_jourdain/32/100_2.png) [@Sebastien\_Jourdain](https://discourse.vtk.org/u/Sebastien_Jourdain)
#### Post date: [February 16, 2023, 3:29pm UTC](https://discourse.vtk.org/t/vtk-js-lineplot/10711/2 "2023-02-16T15:29:27Z")

</div>

For non 3D stuff you should look at libraries like D3, chart.js or plotly.

---

<div class="post-metadata">

### Author: ![baoyun](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/4bbf92/32.png) [@baoyun](https://discourse.vtk.org/u/baoyun)
#### Post date: [July 28, 2023, 7:34pm UTC](https://discourse.vtk.org/t/vtk-js-lineplot/10711/3 "2023-07-28T19:34:10Z")

</div>

Want to follow up this question in more detail for 2D plot, just curious for web applications whether there is possibilty to code using vtk.js.

- I understand, chart.js, D3 can do 2d plot. But whether they have server side rendering. Server side rendering not only to resolve resource problem, some time for security reason. We don’t want to bring data onto user local machine.

- If use client side rendering, can we do it in vtk.js? ( from previous answer, seems we cannot). Can we confirm this, I didnot find any example for vtkCharXY using vtk.js.

- If user server side rendering, use python to render vtkCharXY seems quite straight forward. So once server rendering on vtkChartXY is ready, use same client code as [vtk.js (kitware.github.io)](https://kitware.github.io/vtk-js/examples/RemoteView.html) can we render chart??

---

<div class="post-metadata">

### Author: ![Sebastien\_Jourdain](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sebastien_jourdain/32/100_2.png) [@Sebastien\_Jourdain](https://discourse.vtk.org/u/Sebastien_Jourdain)
#### Post date: [July 28, 2023, 7:45pm UTC](https://discourse.vtk.org/t/vtk-js-lineplot/10711/4 "2023-07-28T19:45:10Z")

</div>

1. ok

2. No chart for client side rendering is supported in vtk.js and it won’t be something we would like to pursue due to the crowded space.

3. vtk.js should be able to be used to display server side rendering of vtkChartXY. (not tested which means you may run into small issue that will need some fixe)
