# How to create % comparative line graph for a set of stocks

**URL:** <https://discuss.elastic.co/t/how-to-create-comparative-line-graph-for-a-set-of-stocks/239623>\
**Category:** Kibana\
**Created:** [July 2, 2020, 11:26am UTC](https://discuss.elastic.co/t/how-to-create-comparative-line-graph-for-a-set-of-stocks/239623 "2020-07-02T11:26:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tenet\_testuser1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tenet_testuser1/32/67526_2.png) [@tenet\_testuser1](https://discuss.elastic.co/u/tenet_testuser1)\
**Post date:** [July 2, 2020, 11:26am UTC](https://discuss.elastic.co/t/how-to-create-comparative-line-graph-for-a-set-of-stocks/239623/1 "2020-07-02T11:26:27Z")

</div>

I would like to compare (say 10 stocks) on their relative performance for a given period (% increase or % decrease).

I have the data (time, symbols, and daily change percent).

I am doing a line chart  
I have used the sum of cumulative sum on change percent as Y axis but on x axis I need to use time, and each line must correspond to one symbol.

However, Kibana shows symbols on X axis and draws the line graph for dates.

Understandably, I tried many options but I could not succeed.

Any suggestions please.

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 30, 2020, 11:26am UTC](https://discuss.elastic.co/t/how-to-create-comparative-line-graph-for-a-set-of-stocks/239623/2 "2020-07-30T11:26:50Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
