I am trying to generate a simple line chart from a series of nodes which have a number(float) field and a value without any fractional part (basically, the field is populated with an integer in each of the four nodes), but I would like to leave the option of having up to two positions on the decimal in the future. There are four fields populated with a number. The fields in views are unformatted. I have tried with aggregation on and off.

The chart will not display and I get the following error in the error logs.

Notice: Object of class Drupal\Core\Render\Markup could not be converted to int in Drupal\visualization\Plugin\visualization\handler\HighchartsHandler->render() (line 90 of /var/www/root-of-site/modules/visualization/src/Plugin/visualization/handler/HighchartsHandler.php

Can anyone tell me what I am doing wrong?

Thank you.

CommentFileSizeAuthor
#4 highchart-library-2677552-1.patch2.98 KBerik seifert

Comments

RKopacz created an issue. See original summary.

RKopacz’s picture

Issue summary: View changes
dmitri.daranuta’s picture

erik seifert’s picture

StatusFileSize
new2.98 KB

Also have the problem with theme debug enabled. Add patch for use Xss::filter and change deprecated SafeMarkup::checkPlain to Html::escape

grimreaper’s picture

Status: Active » Reviewed & tested by the community

Thanks for the patch.

grimreaper’s picture

Status: Reviewed & tested by the community » Needs work

Sorry, the class Xss is not found in HighchartsHandler.php

The last submitted patch, 4: highchart-library-2677552-1.patch, failed testing.