Skip to content

Commit

Permalink
feat ⚡️: column, bar, line, area and scaterplot added to chartConfigs…
Browse files Browse the repository at this point in the history
…PathOverrides
  • Loading branch information
squiles committed Dec 3, 2024
1 parent ac817c7 commit 51f4602
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions app/charts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1771,6 +1771,10 @@ const chartConfigsPathOverrides: {
};
} = {
column: {
bar: {
"fields.x.componentId": { path: "fields.y.componentId" },
"fields.y.componentId": { path: "fields.x.componentId" },
},
map: {
"fields.areaLayer.componentId": { path: "fields.x.componentId" },
"fields.areaLayer.color.componentId": { path: "fields.y.componentId" },
Expand Down Expand Up @@ -1799,6 +1803,22 @@ const chartConfigsPathOverrides: {
},
},
bar: {
column: {
"fields.x.componentId": { path: "fields.y.componentId" },
"fields.y.componentId": { path: "fields.x.componentId" },
},
line: {
"fields.x.componentId": { path: "fields.y.componentId" },
"fields.y.componentId": { path: "fields.x.componentId" },
},
area: {
"fields.x.componentId": { path: "fields.y.componentId" },
"fields.y.componentId": { path: "fields.x.componentId" },
},
scatterplot: {
"fields.x.componentId": { path: "fields.y.componentId" },
"fields.y.componentId": { path: "fields.x.componentId" },
},
map: {
"fields.areaLayer.componentId": { path: "fields.x.componentId" },
"fields.areaLayer.color.componentId": { path: "fields.y.componentId" },
Expand Down Expand Up @@ -1827,6 +1847,10 @@ const chartConfigsPathOverrides: {
},
},
line: {
bar: {
"fields.x.componentId": { path: "fields.y.componentId" },
"fields.y.componentId": { path: "fields.x.componentId" },
},
map: {
"fields.areaLayer.color.componentId": { path: "fields.y.componentId" },
},
Expand Down Expand Up @@ -1854,6 +1878,10 @@ const chartConfigsPathOverrides: {
},
},
area: {
bar: {
"fields.x.componentId": { path: "fields.y.componentId" },
"fields.y.componentId": { path: "fields.x.componentId" },
},
map: {
"fields.areaLayer.color.componentId": { path: "fields.y.componentId" },
},
Expand Down Expand Up @@ -1881,6 +1909,10 @@ const chartConfigsPathOverrides: {
},
},
scatterplot: {
bar: {
"fields.x.componentId": { path: "fields.y.componentId" },
"fields.y.componentId": { path: "fields.x.componentId" },
},
map: {
"fields.areaLayer.color.componentId": { path: "fields.y.componentId" },
},
Expand Down

0 comments on commit 51f4602

Please sign in to comment.