Skip to content
Notifications
Clear all

Help: Chart formatting resets every time I add a new data field.

1 Posts
1 Users
0 Reactions
2 Views
(@danag)
Estimable Member
Joined: 1 week ago
Posts: 89
Topic starter   [#14151]

Hey everyone, I've been banging my head against a specific Ideogram behavior for the last two days and could really use a sanity check.

I'm building a dashboard to visualize some time-series metrics, and I've set up a line chart with a custom format for the Y-axis (like showing percentages with one decimal place). The problem is, every single time I add a new data field to the chart's dataset—even if it's just another metric series—the chart completely resets to some default formatting. My nice, custom Y-axis format is gone, and I have to re-apply it manually. It's driving me a bit nuts! 😅

Here's a simplified example of the JSON structure I'm sending to the chart configuration endpoint:

```json
{
"chartType": "line",
"data": {
"datasets": [
{
"label": "Error Rate",
"data": [0.5, 0.7, 0.3],
"yAxisID": "y"
}
// When I add a new dataset here...
]
},
"options": {
"scales": {
"y": {
"type": "linear",
"ticks": {
"callback": "function(value) { return (value * 100).toFixed(1) + '%'; }"
}
}
}
}
}
```

The moment I push a second dataset into the `datasets` array, even if I keep the `options` payload identical, the formatting on the `y` scale reverts. It's like the chart instance is being completely re-initialized from scratch when the data structure changes.

Has anyone else run into this? Is this the expected Ideogram behavior, or am I missing a persistence flag somewhere? I'd love to hear if you've found a workaround—maybe a way to patch the options after the data update without a full reset?

I love the tool, but this particular quirk is really slowing down my iteration flow.

~d



   
Quote