# Canvas line-chart with multiple lines

**URL:** https://discuss.elastic.co/t/canvas-line-chart-with-multiple-lines/285924
**Category:** Kibana
**Tags:** canvas
**Created:** [October 5, 2021, 1:17pm UTC](https://discuss.elastic.co/t/canvas-line-chart-with-multiple-lines/285924 "2021-10-05T13:17:41Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![marcw](https://avatars.discourse-cdn.com/v4/letter/m/91b2a8/32.png) [@marcw](https://discuss.elastic.co/u/marcw)
#### Post date: [October 5, 2021, 1:17pm UTC](https://discuss.elastic.co/t/canvas-line-chart-with-multiple-lines/285924/1 "2021-10-05T13:17:41Z")

</div>

I'm new to Kibana. I have the following data:

| DateTime | Temperature1 | Temperature2 | Temparature3 |
| --- | --- | --- | --- |
| 2021-10-05 09:00:00 | 5 | 2 | 9 |
| 2021-10-05 10:00:00 | 6 | 1 | 7 |

I want to create on a canvas a line-chart, x-axis is the DateTime, y-axis is the temperature. I want to have a line for temperature1, one for temperature2 and one for temperature3. Is this possible and how have I to do this? I don't find an option to add an extra line on the chart.

---

<div class="post-metadata">

### Author: ![Marco\_Liberati](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marco_liberati/32/82953_2.png) [@Marco\_Liberati](https://discuss.elastic.co/u/Marco_Liberati)
#### Post date: [October 5, 2021, 3:04pm UTC](https://discuss.elastic.co/t/canvas-line-chart-with-multiple-lines/285924/2 "2021-10-05T15:04:41Z")

</div>

Hi @marcw ,

welcome to the Kibana community.  
It is not trivial do have multiple series in Canvas charts, and it requires to change slightly the data: [Canvas: how to make stacked area chart? - #2 by Catherine\_Liu](https://discuss.elastic.co/t/canvas-how-to-make-stacked-area-chart/180399/2)

Another solution would be to create the visualization with the Lens or Aggregation-based editor, save it in the Visualize Library, then import it in Canvas: [Canvas | Kibana Guide [master] | Elastic](https://www.elastic.co/guide/en/kibana/master/canvas.html#add-kibana-visualizations)

_Note_: in case of import from other Kibana editor mind that the time range is saved within the visualization and not in the Canvas workpad

---

<div class="post-metadata">

### Author: ![marcw](https://avatars.discourse-cdn.com/v4/letter/m/91b2a8/32.png) [@marcw](https://discuss.elastic.co/u/marcw)
#### Post date: [October 6, 2021, 8:24am UTC](https://discuss.elastic.co/t/canvas-line-chart-with-multiple-lines/285924/3 "2021-10-06T08:24:51Z")

</div>

Hi @Marco_Liberati ,

Thanks for the answer. I will try to change the structure of the index.

---

<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: [November 3, 2021, 8:25am UTC](https://discuss.elastic.co/t/canvas-line-chart-with-multiple-lines/285924/4 "2021-11-03T08:25:01Z")

</div>

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