elevation graph on cesium earth

I want to draw an elevation graph based on the elevation of terrain map . By drawing a line on the terrain map.

example of my idea reference link:

This is how i need to plot

Hi there,

I just answered a very similar question in another post: https://groups.google.com/forum/#!topic/cesium-dev/HLJGUAg2xrw

See my answer there, and since you are both working on similar problems, perhaps you could help one another. :slight_smile: