Skip to content

Commit

Permalink
remove first newline in split
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasxsong committed May 23, 2024
1 parent b30f739 commit a4c806f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/reports/DistributionChartFacet.vue
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ const distributionChartFacet = (taskId) => {
labelExpr:
props.facetMode.name === 'Grade'
? "join(['Grade ',if(datum.value == 'Kindergarten', 'K', datum.value ), ], '')"
: 'split(slice(datum.value, 1, datum.value.length), " ")',
: 'split(slice(datum.value, 2, datum.value.length), " ")',
labelLimit: 200,
labelSeparation: 2, // Set the spacing between lines in pixels
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/reports/DistributionChartSupport.vue
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ const distributionBySupport = computed(() => {
labelExpr:
props.facetMode.name === 'Grade'
? "join(['Grade ',if(datum.value == 'Kindergarten', 'K', datum.value ), ], '')"
: 'split(slice(datum.value, 1, datum.value.length), " ")',
: 'split(slice(datum.value, 2, datum.value.length), " ")',
},
},
yOffset: {
Expand Down

0 comments on commit a4c806f

Please sign in to comment.