how to read .vti files created from stack of 2d PNG Images and render it in vtk.js

Hello Sebastien,

Thank you so much for your help. I checked the example, but I just want the same color as the image that I am using for volume rendering.

This is what i want to render. I am able to acheive it in python, but I want it in vtk.js. In the web it is coming as greyscale.

I would really really appreciate if you can help me out!