Start a new topic

simple transpose component

I could use a simple data transpose component similar to the simple filter. The problem is that I have a wide CSV of metadata and I'm querying it down to one row but for display purposes I want it to show as a list of key value pairs and I want to do this without sending it to a backend component first. I'd build it myself but my javascript just isn't that good. 


A B C D

1 2 3 4


A 1

B 2

C 3

D 4


Hey Tom, 


Is the data you're wanting to transpose 1 entity? Looking like: 


{
	"A": 1, 
	"B": 2, 
	"C": 3, 
	"D": 4
}

 

And you instead want a list of entities each holding one of the key value pairs? 


First part: Yes. The input is a single entity. 


Second part: So long as I can push it directly into a table component and achieve a list like this: 

A 1
B 2
C 3
D 4
Login to post a comment