# Color with date range

**URL:** https://discuss.elastic.co/t/color-with-date-range/45689
**Category:** Kibana
**Created:** [March 29, 2016, 1:35pm UTC](https://discuss.elastic.co/t/color-with-date-range/45689 "2016-03-29T13:35:28Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![pittoch](https://avatars.discourse-cdn.com/v4/letter/p/df788c/32.png) [@pittoch](https://discuss.elastic.co/u/pittoch)
#### Post date: [March 29, 2016, 1:35pm UTC](https://discuss.elastic.co/t/color-with-date-range/45689/1 "2016-03-29T13:35:29Z")

</div>

How Can i configure color if I use date range ?  
When i configure color on the date range it no longer works.  
I use data range  
"from": "now-3d/d",  
"to": "now"

{  
"vis": {  
"colors": {  
"March 13th 2016, 01:00:00.000 to March 16th 2016, 14:43:35.351: Average TOTAL\_MOD54\_avecpra": "#7EB26D",  
"March 13th 2016, 01:00:00.000 to March 16th 2016, 14:43:35.351: Average TOTAL\_MOD54\_libre\_avecpra": "#629E51",  
"March 26th 2016, 01:00:00.000 to March 29th 2016, 12:03:23.555: Average TOTAL\_MOD54\_libre\_avecpra": "#629E51",  
"March 26th 2016, 01:00:00.000 to March 29th 2016, 12:03:23.555: Average TOTAL\_MOD54\_avecpra": "#3F6833"  
}  
}  
}

Thanks!

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [March 29, 2016, 8:56pm UTC](https://discuss.elastic.co/t/color-with-date-range/45689/2 "2016-03-29T20:56:11Z")

</div>

Is this a Kibana questions, cause you posted it in Logstash.

---

<div class="post-metadata">

### Author: ![pittoch](https://avatars.discourse-cdn.com/v4/letter/p/df788c/32.png) [@pittoch](https://discuss.elastic.co/u/pittoch)
#### Post date: [March 30, 2016, 1:45pm UTC](https://discuss.elastic.co/t/color-with-date-range/45689/3 "2016-03-30T13:45:21Z")

</div>

For example, I want to force color of this graph:  
but the date change every day .... ☹

 ![](https://us1.discourse-cdn.com/elastic/original/2X/b/b3f0983a4d511e8608188631cc98fdd9dba9d21a.PNG)

---

<div class="post-metadata">

### Author: ![spalger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spalger/32/14092_2.png) [@spalger](https://discuss.elastic.co/u/spalger)
#### Post date: [March 30, 2016, 9:12pm UTC](https://discuss.elastic.co/t/color-with-date-range/45689/4 "2016-03-30T21:12:08Z")

</div>

You can do a "split bars" on the same date historgram, which will create a different color per day.

---

<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: [July 6, 2017, 1:57pm UTC](https://discuss.elastic.co/t/color-with-date-range/45689/5 "2017-07-06T13:57:23Z")

</div>


