# Vega scatterplot with specific color to each value

**URL:** <https://discuss.elastic.co/t/vega-scatterplot-with-specific-color-to-each-value/262268>\
**Category:** Kibana\
**Created:** [January 26, 2021, 6:58pm UTC](https://discuss.elastic.co/t/vega-scatterplot-with-specific-color-to-each-value/262268 "2021-01-26T18:58:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [January 27, 2021, 1:34pm UTC](https://discuss.elastic.co/t/vega-scatterplot-with-specific-color-to-each-value/262268/2 "2021-01-27T13:34:46Z")

</div>

This might be similar to [Color in vega bar charts](https://discuss.elastic.co/t/color-in-vega-bar-charts/261739/3) but I'm not 100% sure (in that case you just have to specify `scale: null`.

To make it easier to follow, could you export the spec with data inlined by

- for 7.10: Going to "Inspect" in the top right, switch "Requests" to "Vega debug", select the "spec" tab and copy the result
- for older versions: follow these instructions: [https://gist.github.com/nyurik/736c34970ba3c32f3fe3d45d66719b3e](https://gist.github.com/nyurik/736c34970ba3c32f3fe3d45d66719b3e)

---

_[View the full topic](https://discuss.elastic.co/t/vega-scatterplot-with-specific-color-to-each-value/262268)._
