-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[IMP] custom color: handle all the chart colors #4967
Conversation
4febd0d
to
9c10c0c
Compare
@robodoo r+ |
@robodoo r- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.getChartColors(sheetId)
in computeCustomColors
is completely wrong 😝 (sheetId vs expected chartId).
It can be removed.
But actually, why are charts handled differently (not at finalize with the other stuff)?
Because it's way better performance-wise to not parse the chart every time we have some random command that triggers a finalize, but to only do that when we have a command that actually updates the chart. Actually I think I'll do another commit to compute every color this way, the plugin does not care at all about the evaluation, so it make no sense to do things in the finalize ? (I guess there was some older version of this plugin where it mattered). And handling the commands separatly would be way better than looping on every cell at each command. |
The custom color plugin wasn't handling data series color, or chart title color. Now we run a regex through the whole chart definition to get all the colors, so we don't have to think to add new handling in the custom color plugin every time we add a chart customization. Task: 4178763
9c10c0c
to
fa19ac1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
robodoo r +
The custom color plugin wasn't handling data series color, or chart title color. Now we run a regex through the whole chart definition to get all the colors, so we don't have to think to add new handling in the custom color plugin every time we add a chart customization. closes #4967 Task: 4178763 Signed-off-by: Lucas Lefèvre (lul) <[email protected]>
Description
The custom color plugin wasn't handling data series color, or chart title color. Now we run a regex through the whole chart definition to get all the colors, so we don't have to think to add new handling in the custom color plugin every time we add a chart customization.
Task: 4178763
review checklist