# Customise line chart component

**URL:** <https://community.weweb.io/t/customise-line-chart-component/826>\
**Category:** How do I?\
**Tags:** chart\
**Created:** [July 19, 2022, 2:12pm UTC](https://community.weweb.io/t/customise-line-chart-component/826 "2022-07-19T14:12:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anna.fae](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/anna.fae/32/776_2.png) [@Anna.fae](https://community.weweb.io/u/Anna.fae)\
**Post date:** [July 19, 2022, 2:12pm UTC](https://community.weweb.io/t/customise-line-chart-component/826/1 "2022-07-19T14:12:33Z")

</div>

Im exploring nocode charts and thats really cool tool, thank you WeWeb!

I try to show Nr of items sold by Date/time and is there any way to customise it:

1. to make X axis for date/time linear - currently events distributed in strange way… 1 week or 6 months has same interval

2. Y axis make not decimal but number and change range or so…

 ![Screenshot 2022-07-19 at 16.06.32](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/1X/3ce0f0bb33a3d27f7ae6fdea451a28ae7f969e4b.png)

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [July 22, 2022, 3:24pm UTC](https://community.weweb.io/t/customise-line-chart-component/826/2 "2022-07-22T15:24:47Z")

</div>

Hi @Anna.fae 👋

Not sure about this. The X-axis is not a timeline by default so if you don’t have any events between December 2021 and June 2022, it will not display anything.

Just asked the dev team how they would approach your use case. I’ll keep you posted!

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [July 27, 2022, 3:34pm UTC](https://community.weweb.io/t/customise-line-chart-component/826/3 "2022-07-27T15:34:45Z")

</div>

Hi again @Anna.fae 👋

It looks like there’s no easy solution for this.

Basically, if you want the graph to display all the dates in the calendar, you need to pass an array that includes all the dates in the calendar, even those where there were no sales.

Whether you manipulate the data on the backend or frontend side is your choice really.

If you decide to do it in WeWeb, I think a Workflow that loops through your array of sales and creates a new array that includes every day of the period and sums the sales per day could work.

You might need a bit of JS in some places.

---

<div class="post-metadata">

**Author:** ![Anna.fae](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/anna.fae/32/776_2.png) [@Anna.fae](https://community.weweb.io/u/Anna.fae)\
**Post date:** [July 28, 2022, 2:29pm UTC](https://community.weweb.io/t/customise-line-chart-component/826/4 "2022-07-28T14:29:31Z")

</div>

Thank you! Ill try something and share if that works 🙂
