# Giraffe graphs origin alignment

**URL:** <https://community.influxdata.com/t/giraffe-graphs-origin-alignment/29411>\
**Category:** InfluxDB 2\
**Tags:** giraffe\
**Created:** [April 7, 2023, 12:40pm UTC](https://community.influxdata.com/t/giraffe-graphs-origin-alignment/29411 "2023-04-07T12:40:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![GitHubAgneska](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/githubagneska/32/11976_2.png) [@GitHubAgneska](https://community.influxdata.com/u/GitHubAgneska)\
**Post date:** [April 7, 2023, 12:40pm UTC](https://community.influxdata.com/t/giraffe-graphs-origin-alignment/29411/1 "2023-04-07T12:40:31Z")

</div>

Hello !  
Is there a way to **get all graphs to align vertically**? (see screenshot)  
It’s essential to the data viz I’m working on, as all timelines are based on the same time range,  
but depending on the Yvalue length, the graphs offset to the right… such a shame !!  
Many thanks in advance

 ![Capture d’écran 2023-02-22 191341](https://us1.discourse-cdn.com/flex023/uploads/influxdata/original/2X/6/687d0807b23d0f27c45d0f7c32a56027d9bdbad2.png)

---

<div class="post-metadata">

**Author:** ![Anaisdg](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/anaisdg/32/6401_2.png) [@Anaisdg](https://community.influxdata.com/u/Anaisdg)\
**Post date:** [April 14, 2023, 6:04pm UTC](https://community.influxdata.com/t/giraffe-graphs-origin-alignment/29411/2 "2023-04-14T18:04:05Z")

</div>

Hello @GitHubAgneska,  
I’m not too familiar with Giraffe. Let me ask around and see.  
Thank you for your patience.  
I don’t know if this tutorial will help at all

> **[Giraffe Visualization Library and InfluxDB | Blog | InfluxData](https://www.influxdata.com/blog/giraffe-visualization-library-and-influxdb/)**
>
> This tutorial demonstrates how you can use Giraffe in conjunction with the InfluxDB 2.0 JavaScript Client to build a line graph in the browser.

But honestly your best bet is to post a question on gh.

> **[GitHub - influxdata/giraffe: A foundation for visualizations in the InfluxDB UI](https://github.com/influxdata/giraffe)**
>
> A foundation for visualizations in the InfluxDB UI - GitHub - influxdata/giraffe: A foundation for visualizations in the InfluxDB UI

I feel like getting multiple graphs vertically aligned has more to do with your CSS than it does Giraffe.

---

<div class="post-metadata">

**Author:** ![Anaisdg](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/anaisdg/32/6401_2.png) [@Anaisdg](https://community.influxdata.com/u/Anaisdg)\
**Post date:** [April 14, 2023, 6:07pm UTC](https://community.influxdata.com/t/giraffe-graphs-origin-alignment/29411/3 "2023-04-14T18:07:03Z")

</div>

> **[Giraffe/my-app at master · Anaisdg/Giraffe](https://github.com/Anaisdg/Giraffe/tree/master/my-app)**
>
> master/my-app

---

<div class="post-metadata">

**Author:** ![GitHubAgneska](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/githubagneska/32/11976_2.png) [@GitHubAgneska](https://community.influxdata.com/u/GitHubAgneska)\
**Post date:** [April 17, 2023, 8:18am UTC](https://community.influxdata.com/t/giraffe-graphs-origin-alignment/29411/4 "2023-04-17T08:18:24Z")

</div>

Dear Anais, unfortunately it is not something I can fix with CSS,  
Thing is, the way the canvas gets generated, the end user does not have access to the “inside mechanics” of this container and its alignment behavior.

The only workaround that seems to make it better (the absolute accuracy is difficult to make sure of), is to not display Yaxis values and Xaxis time values, as well as adding these lines to each graph query:

```auto
 ` |> aggregateWindow(every: 1s, fn: mean, createEmpty: true)
   |> truncateTimeColumn(unit: 1s)

```

Far for ideal obviously 🙂
