# Is there a way to color every other row in Discover or the Search Object?

**URL:** <https://discuss.elastic.co/t/is-there-a-way-to-color-every-other-row-in-discover-or-the-search-object/55790>\
**Category:** Kibana\
**Created:** [July 18, 2016, 6:10pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-color-every-other-row-in-discover-or-the-search-object/55790 "2016-07-18T18:10:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![secumind](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/secumind/32/70461_2.png) [@secumind](https://discuss.elastic.co/u/secumind)\
**Post date:** [July 18, 2016, 6:10pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-color-every-other-row-in-discover-or-the-search-object/55790/1 "2016-07-18T18:10:13Z")

</div>

I find the discover page very hard to read when I have a lot of data in an index. Is there a an easy line(s) I can edit in Kibana 4's code to make every other row a light gray or something so that the differentiation between rows is more noticeable? If it's easier to do with the search visualization on the dashboard I'm fine with that as well. I assume this is fairly easy to do but kibana's code base is large and I'm not familiar enough with where everything is just yet.

Thoughts?

---

<div class="post-metadata">

**Author:** ![shaunak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shaunak/32/6643_2.png) [@shaunak](https://discuss.elastic.co/u/shaunak)\
**Post date:** [July 18, 2016, 7:55pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-color-every-other-row-in-discover-or-the-search-object/55790/2 "2016-07-18T19:55:42Z")

</div>

Sure, you could use the [`ngClassOdd` directive](https://docs.angularjs.org/api/ng/directive/ngClassOdd) in the code that generates the `<tr>` element for each row in the Discover doc table: [https://github.com/elastic/kibana/blob/4.x/src/ui/public/doc\_table/doc\_table.html#L32-L38](https://github.com/elastic/kibana/blob/4.x/src/ui/public/doc_table/doc_table.html#L32-L38)

This sounds like a nice feature to have in Kibana. If you end up implementing it, would you mind submitting a pull request? Here's a bit more information on how to contribute code to Kibana: [https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#how-to-contribute-code](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#how-to-contribute-code)

---

<div class="post-metadata">

**Author:** ![secumind](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/secumind/32/70461_2.png) [@secumind](https://discuss.elastic.co/u/secumind)\
**Post date:** [July 18, 2016, 10:59pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-color-every-other-row-in-discover-or-the-search-object/55790/3 "2016-07-18T22:59:55Z")

</div>

Thank you for your advice. I followed [This tutorial](http://devzone.co.in/alternate-row-color-table-using-angularjs/) to add the necessary changes with great results. This is far more readable. I will attempt to follow the pull request process. Thanks again!

---

<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:45pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-color-every-other-row-in-discover-or-the-search-object/55790/4 "2017-07-06T13:45:53Z")

</div>

Closed on July 6, 2017, 1:45pm UTC


