# Split chart with individual y axis?

**URL:** <https://discuss.elastic.co/t/split-chart-with-individual-y-axis/288492>\
**Category:** Kibana\
**Created:** [November 5, 2021, 12:52pm UTC](https://discuss.elastic.co/t/split-chart-with-individual-y-axis/288492 "2021-11-05T12:52:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![NiclasK](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/niclask/32/47189_2.png) [@NiclasK](https://discuss.elastic.co/u/NiclasK)\
**Post date:** [November 5, 2021, 12:52pm UTC](https://discuss.elastic.co/t/split-chart-with-individual-y-axis/288492/1 "2021-11-05T12:52:05Z")

</div>

Hi,

I have a field that contains a string representation of a state. Some states are normal which means that there are many documents with these states. Other states represents errors. Usually, the number of documents containing these states are much lower than the normal states. I would like to view a count of the states as a time series. Since the count of different states are so different, I need to have a different scale for each state. Is that possible in kibana? I have tried to create a line graph with date histogram and then split chart based on terms. But the scale on Y axis is the same for all charts which means that some charts just have a line close to 0 even if they are not 0.

Thanks!

---

<div class="post-metadata">

**Author:** ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)\
**Post date:** [November 15, 2021, 4:00pm UTC](https://discuss.elastic.co/t/split-chart-with-individual-y-axis/288492/2 "2021-11-15T16:00:30Z")

</div>

I think you can get your chart with [Lens](https://www.elastic.co/guide/en/kibana/current/lens.html). You need to create one layer with the vertical axis on the left for one state, using the `Filters` option in the `Break down by` section to only render that data. Then you add another layer and filter by the other data and set your vertical axis on the right.

Check this screenshot. These are flight positions. On the left you have all positions that are on the ground based on the filter `onGround: true` and rendered as bars. Then on the right, with the same horizontal axis and vertical axis parameters, but changing the `Filters` to be `onGround: false` and rendered as a line. See the right axis shows a much larger value.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/0/20fe31b32cc52a59441b470065996d1a16852d02.png)

![Peek 2021-11-15 16-59](https://us1.discourse-cdn.com/elastic/original/3X/6/6/66c6f0d076746d5956d468881b76198d57fab073.gif)

---

<div class="post-metadata">

**Author:** ![NiclasK](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/niclask/32/47189_2.png) [@NiclasK](https://discuss.elastic.co/u/NiclasK)\
**Post date:** [November 19, 2021, 12:40pm UTC](https://discuss.elastic.co/t/split-chart-with-individual-y-axis/288492/3 "2021-11-19T12:40:52Z")

</div>

Thanks! but I don't think it is exactly what I want. I have about 25 states that have values in different scales. Some have a count of thousands and other maybe have a couple of hundreds or in the single digits. I would like to have one chart per state but without having to create 25 individual charts. The split chart functionality almost did what I wanted, but all charts shared the same scale on the y-axis...

---

<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:** [December 17, 2021, 12:41pm UTC](https://discuss.elastic.co/t/split-chart-with-individual-y-axis/288492/4 "2021-12-17T12:41:51Z")

</div>

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