I was able to get it working, I created two styles, hidePowerChartEdit and hidePowerChartDelete
I put the script into hidePowerChartEdit
}.psc-hidePowerChartEdit .ia_powerChartComponent__penDataDisplay__table__icon.edit-pen-icon { display: none !important; }{
and put this script into hidePowerChartDelete
}.psc-hidePowerChartEdit .ia_powerChartComponent__penDataDisplay__table__icon.delete-pen-icon { display: none !important; }{
With this done, if I set the powerchart class to be hidePowerChartEdit, the edit and delete button no longer appears, but I still can hide the pens and see all of the other data we want from the pen control table.
This is the first I’ve used the CSS injection, so this should be a useful tool in future, though I’ll need to check it all still works with future upgrades.
Thanks for the help!