# How to plot (raw) data, Using Vega

**URL:** <https://discuss.elastic.co/t/how-to-plot-raw-data-using-vega/238259>\
**Category:** Kibana\
**Created:** [June 23, 2020, 12:43pm UTC](https://discuss.elastic.co/t/how-to-plot-raw-data-using-vega/238259 "2020-06-23T12:43:26Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![Stratoula\_Kalafateli](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stratoula_kalafateli/32/70923_2.png) [@Stratoula\_Kalafateli](https://discuss.elastic.co/u/Stratoula_Kalafateli)\
**Post date:** [June 30, 2020, 10:55am UTC](https://discuss.elastic.co/t/how-to-plot-raw-data-using-vega/238259/22 "2020-06-30T10:55:45Z")

</div>

Thank you @defalt for pointing this out! Will look into this, I agree transform function may be the reason.

---

<div class="post-metadata">

**Author:** ![defalt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/defalt/32/71379_2.png) [@defalt](https://discuss.elastic.co/u/defalt)\
**Post date:** [June 30, 2020, 11:10am UTC](https://discuss.elastic.co/t/how-to-plot-raw-data-using-vega/238259/23 "2020-06-30T11:10:07Z")

</div>

Oh my... Found it.  
`"format": "%d %H:%m"` or `%s`  
is wrong. %m = Month and %s is unix epoch ([Link](https://github.com/d3/d3-time-format#locale_format))  
Changed it to `"format": "%d %H:%M,%S"` and it looks good now.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/7/27e82cfcb57610db56e487f25c87ad1beb206ac2.png)

---

<div class="post-metadata">

**Author:** ![Stratoula\_Kalafateli](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stratoula_kalafateli/32/70923_2.png) [@Stratoula\_Kalafateli](https://discuss.elastic.co/u/Stratoula_Kalafateli)\
**Post date:** [June 30, 2020, 11:14am UTC](https://discuss.elastic.co/t/how-to-plot-raw-data-using-vega/238259/24 "2020-06-30T11:14:29Z")

</div>

Indeed, I was testing it with %H:%M. Great, I am really happy that works for you now 🙂 👏

---

<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 28, 2020, 11:14am UTC](https://discuss.elastic.co/t/how-to-plot-raw-data-using-vega/238259/25 "2020-07-28T11:14:30Z")

</div>

Closed on July 28, 2020, 11:14am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.

[Previous page](https://discuss.elastic.co/t/how-to-plot-raw-data-using-vega/238259.md?page=1)
