# Is there a way to do a project transform in Vega-Lite?

**URL:** https://discuss.elastic.co/t/is-there-a-way-to-do-a-project-transform-in-vega-lite/261992
**Category:** Kibana
**Tags:** vega
**Created:** [January 23, 2021, 2:26pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-do-a-project-transform-in-vega-lite/261992 "2021-01-23T14:26:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![marcosvrrs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marcosvrrs/32/77073_2.png) [@marcosvrrs](https://discuss.elastic.co/u/marcosvrrs)
#### Post date: [January 23, 2021, 2:26pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-do-a-project-transform-in-vega-lite/261992/1 "2021-01-23T14:26:15Z")

</div>

Hi all,  
I'm having difficult to transform the data in Vega-Lite, and saw a project transform in the Vega documentation that is not in Vega-Lite.  
1- Is it possible to use, is there some workaround?  
2- Can I use my Vega-Lite codes and just add a Vega transform in the middle of my code? Is it possible just declaring the Vega schema?  
I was not expecting to learn Vega as it's a bit more verbose, and I'm having some rough time just learning Vega-Lite.

If you guys need a concrete example to understand what I mean:

> <https://stackoverflow.com/questions/60501158/tranform-data-in-vega/60535631#60535631>

---

<div class="post-metadata">

### Author: ![aaron-nimocks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron-nimocks/32/73965_2.png) [@aaron-nimocks](https://discuss.elastic.co/u/aaron-nimocks)
#### Post date: [January 23, 2021, 3:04pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-do-a-project-transform-in-vega-lite/261992/2 "2021-01-23T15:04:55Z")

</div>

Are you able to post your spec and show what you are trying to transform? Being able to see your code/spec would be very helpful for this.

> 1- Is it possible to use, is there some workaround?

Possibly depending on what you need to do. I've use the `calculate` transform before to mimic what `project` does. Just not as clean.

> 2- Can I use my Vega-Lite codes and just add a Vega transform in the middle of my code? Is it possible just declaring the Vega schema?

No. You pick a schema and need to use that only.

---

<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: [February 20, 2021, 3:04pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-do-a-project-transform-in-vega-lite/261992/3 "2021-02-20T15:04:58Z")

</div>

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