SOLVED: Pie Chart Element Bug

Browser: Chrome 110
OS: macOS / Windows / Linux / etc.

Pie Chart Element.

  1. Dynamic data value is not displaying in the Builder.
    Please wrap the code at line 138 and 221 with
    $this->set_attribute( ‘_root’, ‘data-percent’, $this->render_dynamic_data($settings[‘percent’]) );
    and
    echo “{$this->render_dynamic_data($this->settings[‘text’])}”;

  2. No condition checks for setting keys ‘text’ and ‘percent’. If either key is missing, a PHP warning is triggered at frontend.

Hi @bricksonemore,

about the #1, it’s not actually a bug, but would be more suitable for feature request. As you can see, there are also no dynamic tag pickers, so that would indicate that the dynamic value is not supported.

But, I was able to replicate the #2, and I’ve added it to our bug tracker.

Thank you,
Matej

We fixed this issue in Bricks 2.0 alpha, now available as a manual download in your account (see changelog).

Please let us know if you are still experiencing issues.

As with any pre-stable release, please do not use it on a production/live website. It is only meant for testing in a local or staging environment.