@js-dot/data
v24.137.0
Published
Dot of Javascript Library based Typescript to make Line
Downloads
29
Readme
@js-dot/data
| Name | Version | Downloads | |---------------------------------------------------------------|------------------------------------------------|-------------------------------------------------| | @js-dot/data | | |
Simple Data Restructuring
Submodules
- @js-dot/data/frame
- @js-dot/data/csv
- @js-dot/data/ini
Cheatsheet
//@formatter:off
toRelate
Before
Group Items:
[
{ "primary": 1 },
{ "primary": 2 }
]
Related Items:
[
{ "parent": 1 },
{ "parent": 2 }
]
After
[
{
"primary" : 1,
"items": [
{ "parent": 1 }
]
},
{
"primary" : 2,
"items": [
{ "parent": 2 }
]
}
]
frameToXYSeriesSet
Before
[
["date", "foo", "bar"],
[ 1, 2, 3],
[ 2, 20, 30]
]
After
{
"foo": {
"x": [1, 2],
"y": [2, 20]
},
"bar": {
"x": [1, 3],
"y": [2, 30]
}
}
//@formatter:on