# Adding ML charts to a dashboard

**URL:** <https://discuss.elastic.co/t/adding-ml-charts-to-a-dashboard/221747>\
**Category:** Kibana\
**Tags:** elastic-stack-machine-learning\
**Created:** [March 2, 2020, 5:59pm UTC](https://discuss.elastic.co/t/adding-ml-charts-to-a-dashboard/221747 "2020-03-02T17:59:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![liorg2](https://avatars.discourse-cdn.com/v4/letter/l/ed8c4c/32.png) [@liorg2](https://discuss.elastic.co/u/liorg2)\
**Post date:** [March 2, 2020, 5:59pm UTC](https://discuss.elastic.co/t/adding-ml-charts-to-a-dashboard/221747/1 "2020-03-02T17:59:43Z")

</div>

Hi  
Is it possible to add ML charts (with anomalies and bounds) to a custom dashboard?

---

<div class="post-metadata">

**Author:** ![Peter\_Harverson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/peter_harverson/32/21057_2.png) [@Peter\_Harverson](https://discuss.elastic.co/u/Peter_Harverson)\
**Post date:** [March 3, 2020, 3:57pm UTC](https://discuss.elastic.co/t/adding-ml-charts-to-a-dashboard/221747/2 "2020-03-03T15:57:26Z")

</div>

Hi,

The charts and visuals used in the ML Anomaly Explorer and Single Metric Viewer are unfortunately not currently available as Kibana visualizations. The ability to add the anomaly charts and swimlane to Kibana dashboards, as Kibana [embeddables](https://github.com/elastic/kibana/issues/19875), is something we are looking at for a future release.

In the meantime, you can use out-the-box Kibana visualizations to build something similar. For example, you can use the Time Series Visual Builder (TSVB) visualization to overlay anomalies on top of metrics through its annotations feature, as demonstrated in this [blog post](https://www.elastic.co/blog/time-series-annotations-and-anomalies-with-kibana). This [ticket](https://discuss.elastic.co/t/how-do-display-anomaly-explorer-in-kibana-dashboard/93499) also provides some extra information on displaying machine learning information in Kibana dashboards.

For jobs with model plot enabled, the bounds in the Single Metric Viewer chart use the values of the `model_upper` and `model_lower` from the `result_type: model_plot` data of the job stored in the `.ml-anomalies-shared` (if using the default ML result index for the job).

Hope this helps,  
Regards  
Pete

---

<div class="post-metadata">

**Author:** ![richcollier](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/richcollier/32/115035_2.png) [@richcollier](https://discuss.elastic.co/u/richcollier)\
**Post date:** [March 3, 2020, 4:30pm UTC](https://discuss.elastic.co/t/adding-ml-charts-to-a-dashboard/221747/3 "2020-03-03T16:30:17Z")

</div>

Also, perhaps relevant:

> [@Show multi-metric machine learning job heatmap in Dashoard](https://discuss.elastic.co/t/show-multi-metric-machine-learning-job-heatmap-in-dashoard/142774):
>
> Hello, Can we illustrate multi-metric ml job heatmap in Dashoard? I have read through the forum and I tried to create a heatmap or swimlane but I cannot see the values of anomaly score when I split the data (e.g. by product) in machine learning job. It shows only the data from job\_id. Thank you very much in advance! /Angelos

And, if you want to know more about anomaly scoring, see the ever-useful blog Pete and I wrote:

> **[Machine Learning Anomaly Scoring and Elasticsearch - How it Works](https://www.elastic.co/blog/machine-learning-anomaly-scoring-elasticsearch-how-it-works)**

---

<div class="post-metadata">

**Author:** ![liorg2](https://avatars.discourse-cdn.com/v4/letter/l/ed8c4c/32.png) [@liorg2](https://discuss.elastic.co/u/liorg2)\
**Post date:** [March 4, 2020, 8:45am UTC](https://discuss.elastic.co/t/adding-ml-charts-to-a-dashboard/221747/4 "2020-03-04T08:45:03Z")

</div>

thanks, it is relevant

---

<div class="post-metadata">

**Author:** ![liorg2](https://avatars.discourse-cdn.com/v4/letter/l/ed8c4c/32.png) [@liorg2](https://discuss.elastic.co/u/liorg2)\
**Post date:** [March 4, 2020, 8:45am UTC](https://discuss.elastic.co/t/adding-ml-charts-to-a-dashboard/221747/5 "2020-03-04T08:45:45Z")

</div>

thanks very helpful

---

<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:** [April 1, 2020, 8:45am UTC](https://discuss.elastic.co/t/adding-ml-charts-to-a-dashboard/221747/6 "2020-04-01T08:45:47Z")

</div>

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