# I wanted to write code inside scripted\_fields in kibana

**URL:** <https://discuss.elastic.co/t/i-wanted-to-write-code-inside-scripted-fields-in-kibana/174795>\
**Category:** Kibana\
**Created:** [April 1, 2019, 1:37pm UTC](https://discuss.elastic.co/t/i-wanted-to-write-code-inside-scripted-fields-in-kibana/174795 "2019-04-01T13:37:31Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Shubhangi\_Priya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shubhangi_priya/32/43222_2.png) [@Shubhangi\_Priya](https://discuss.elastic.co/u/Shubhangi_Priya)\
**Post date:** [April 3, 2019, 11:18am UTC](https://discuss.elastic.co/t/i-wanted-to-write-code-inside-scripted-fields-in-kibana/174795/5 "2019-04-03T11:18:59Z")

</div>

> [@There has been some discrepancies in the data in timelion graph](https://discuss.elastic.co/t/there-has-been-some-discrepancies-in-the-data-in-timelion-graph/174968):
>
> I am adding the document in the es , I am able to see the document in discover mode. But the same data is not reflecting when I am seeing it in timelion graph. Suppose the data of 2014 year has been added present in discover mode and not reflecting in timelion graph. Can some one tell why its happening?

previous issue got resolved can you help with this one?

---

_[View the full topic](https://discuss.elastic.co/t/i-wanted-to-write-code-inside-scripted-fields-in-kibana/174795)._
