Experimental browser for the Atmosphere
Had to come up with a bit of custom logic to add a top padding to a #Swift Chart, by default it cuts the marks with a maximum value. The challenge was to make it work both for very small and large values. Though I wouldn't be surprised there is some obscure Chart modifier to do this out of the box 😅
Mar 27, 2025, 10:11 AM
{
"text": "Had to come up with a bit of custom logic to add a top padding to a #Swift Chart, by default it cuts the marks with a maximum value. The challenge was to make it work both for very small and large values. Though I wouldn't be surprised there is some obscure Chart modifier to do this out of the box 😅",
"$type": "app.bsky.feed.post",
"embed": {
"$type": "app.bsky.embed.images",
"images": [
{
"alt": "",
"image": {
"$type": "blob",
"ref": {
"$link": "bafkreihqbwbi6wvpfirsu43qeurw5iqcsywzymmkjd5n6bio7onbhy7tce"
},
"mimeType": "image/jpeg",
"size": 549368
},
"aspectRatio": {
"width": 1999,
"height": 1520
}
}
]
},
"langs": [
"en"
],
"facets": [
{
"index": {
"byteEnd": 74,
"byteStart": 68
},
"features": [
{
"tag": "Swift",
"$type": "app.bsky.richtext.facet#tag"
}
]
}
],
"createdAt": "2025-03-27T10:11:34.958Z"
}