# Vega + Sankey Diagram Color Change

**URL:** https://discuss.elastic.co/t/vega-sankey-diagram-color-change/191106
**Category:** Kibana
**Tags:** vega
**Created:** [July 17, 2019, 11:03pm UTC](https://discuss.elastic.co/t/vega-sankey-diagram-color-change/191106 "2019-07-17T23:03:16Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)
#### Post date: [July 18, 2019, 4:58pm UTC](https://discuss.elastic.co/t/vega-sankey-diagram-color-change/191106/2 "2019-07-18T16:58:02Z")

</div>

You could try and use this example as a guide:

> [@Vega plugin:Changing color and size of the labels](https://discuss.elastic.co/t/vega-plugin-changing-color-and-size-of-the-labels/128847):
>
> Hello, Is it possible to change the laben size and/or color? I am using Vega plugin. Here is the screenshot of my diagram. and the query is { "$schema": "[https://vega.github.io/schema/vega-lite/v2.json](https://vega.github.io/schema/vega-lite/v2.json)", "description": "A bar chart that directly encodes color names in the data.", "data": { "values": [ {"customer":"A", "@timestamp": 7, "state": "red"}, {"customer":"A", "@timestamp": 5, "state": "green"}, {"customer":"B", "@timestamp": 6, "state": "green"}, {"customer…

---

_[View the full topic](https://discuss.elastic.co/t/vega-sankey-diagram-color-change/191106)._
