Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If a "%" is used as an Value suffix, it does weird stuff to Y-axis and output
For example, if a value is 0.37, adding "%" will make the output 0.37%, which is about right
If a value is 3.7, adding "%" will make the output 370%, which is wrong
If a value is 37, adding "%" will make the output 3700%, which is wrong, again.
Comment | File | Size | Author |
---|---|---|---|
#2 | charts_google_icu_escape-2052727.patch | 1.55 KB | quicksketch |
Comments
Comment #1
quicksketchThanks for the report! I think this is an auto-formatting thing done by the charting library. Are you using Google or Highcharts in this example?
I don't think Highcharts would cause this problem, but Google specifically states a format that includes a % sign gets auto-formatted:
My guess is we need to escape that % sign before attempting to use it as a suffix.
Comment #2
quicksketchThis patch should fix the problem with special characters causing unexpected formatting in Google.