# Vega heatmap chart for matrix stats (correlation)

**URL:** <https://discuss.elastic.co/t/vega-heatmap-chart-for-matrix-stats-correlation/226099>\
**Category:** Kibana\
**Tags:** vega\
**Created:** [April 1, 2020, 5:32pm UTC](https://discuss.elastic.co/t/vega-heatmap-chart-for-matrix-stats-correlation/226099 "2020-04-01T17:32:42Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Vincent\_Maury](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vincent_maury/32/59973_2.png) [@Vincent\_Maury](https://discuss.elastic.co/u/Vincent_Maury)\
**Post date:** [April 2, 2020, 3:16pm UTC](https://discuss.elastic.co/t/vega-heatmap-chart-for-matrix-stats-correlation/226099/3 "2020-04-02T15:16:11Z")

</div>

and enhanced by a split !

> [@Vega chart for matrix stats (correlation) split!](https://discuss.elastic.co/t/vega-chart-for-matrix-stats-correlation-split/226238):
>
> Hey following [Vega heatmap chart for matrix stats (correlation)](https://discuss.elastic.co/t/vega-heatmap-chart-for-matrix-stats-correlation/226099) Here is a vega displaying a heatmap of correlation matrix (matrix stats Elasticsearch api call) split by a key (isFraud in this example). A bit long, but it's worth it! { "$schema": "https://vega.github.io/schema/vega/v4.3.json", "title": "A heatmap showing the correlation of features", "background": "white", "padding": 0, "data": [ { "name": "feature\_correlation", "url": { "%context%": true, …

---

_[View the full topic](https://discuss.elastic.co/t/vega-heatmap-chart-for-matrix-stats-correlation/226099)._
