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.
In views preview, I'm unable to see the graph.
There is on javascript error "Drupal.settings.Dataviz is undefined". This is caused becuase of the following code
$output[] = '<script>Drupal.settings.Dataviz.chart.' . $chart_id . ' = null;jQuery.extend(true, Drupal.settings.Dataviz, ' . json_encode($settings) . ');</script>';
Comments
Comment #1
JurriaanRoelofs CreditAttribution: JurriaanRoelofs commentedNot sure what's the best way to fix this, it doesn't work because the views_dataviz javascript assets are not present on the views admin pages.
Comment #2
cursor CreditAttribution: cursor commentedWould it be possible to load them by a hook or something? Previewing is essential if you want to look at how it's rendering. BTW a view other charts can render in Preview, maybe one could look at that for ideas?