# Multiple X-Y graph grouped by time

**URL:** <https://community.grafana.com/t/multiple-x-y-graph-grouped-by-time/100236>\
**Category:** Grafana\
**Tags:** influxdb, x-y\
**Created:** [August 1, 2023, 10:12am UTC](https://community.grafana.com/t/multiple-x-y-graph-grouped-by-time/100236 "2023-08-01T10:12:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ricardosgeral](https://avatars.discourse-cdn.com/v4/letter/r/f08c70/32.png) [@ricardosgeral](https://community.grafana.com/u/ricardosgeral)\
**Post date:** [August 1, 2023, 10:12am UTC](https://community.grafana.com/t/multiple-x-y-graph-grouped-by-time/100236/1 "2023-08-01T10:12:01Z")

</div>

Hi friends

Lets suppose i have the following data columns

## Time X1 Y1 X2 Y2

2023-08-01 0 1.1 0.5 1.4  
2023-08-02 0 1.9 0.5 3  
…

I need to do a X-Y graph with 2 lines (one for each time).  
Each line connects points (X1,Y1) to (X2,Y2)

Is this even possible in grafana? If so how?

My data comes from InfluxDb, and I don’t know in front how many X-Y points each line will have (in the above example there are only two and in picture 3) and how lines will i have (depends on the number of time series - 3 in the picture below)

 ![Screenshot_2023-08-02-11-06-54-695_com.wacom.bamboopapertab](https://us1.discourse-cdn.com/grafana/original/3X/6/2/6291cd46a2665e9dd5df5a3889023e6a48d7a9bd.jpeg)

Best regards  
Ricardo

---

<div class="post-metadata">

**Author:** ![usman.ahmad](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/usman.ahmad/32/29706_2.png) [@usman.ahmad](https://community.grafana.com/u/usman.ahmad)\
**Post date:** [August 7, 2023, 10:14am UTC](https://community.grafana.com/t/multiple-x-y-graph-grouped-by-time/100236/2 "2023-08-07T10:14:37Z")

</div>

Hi @ricardosgeral,

Welcome to the :grafana: community support forums !!

We are excited that you joined our OSS community. Please read about some of the [FAQs](https://community.grafana.com/faq) in the community 🙂

I think it should be possible (never done myself though) as there is a blog post for this topic:

> **[Learn Grafana: How to use dual axis graphs | Grafana Labs](https://grafana.com/blog/2020/03/10/learn-grafana-how-to-use-dual-axis-graphs/)**
>
> Why on earth would you need another Y axis? In this post you'll learn about dual axis graphs in Grafana and when you should use them.

Also, you can use the grafana core XY Chart panel or use [this](https://grafana.com/grafana/plugins/michaeldmoore-scatter-panel/) community one as to test it it out.

I hope this helps.
