In most cases Charts just fetches the value from views fields directly rather than rendering the field. I can see why this might be the case (in fact I broke my chart immediately when I tried to change it due to adding a % sign in my rewrite) but there are some situations where views rewriting is necessary. In my case I was applying a twig filter to an aggregated result to remove the decimal places.

I'd like to have the option to explicitly enable rewriting for when you do need to use it on a chart view. I'll attach a patch shortly.

Comments

Dylan Donkersgoed created an issue. See original summary.

dylan donkersgoed’s picture

Status: Active » Needs review
StatusFileSize
new3.38 KB

Patch attached.

andileco’s picture

Thanks, @Dylan Donkersgoed - this section was changed just a few days ago, so it's not surprising that some issues are cropping up.

Would you have any time/interest in writing a test for this?

andileco’s picture

Status: Needs review » Fixed

For anyone reading this, start a new issue for a test.

andileco’s picture

Status: Fixed » Closed (fixed)