I am using Views Dataviz as a views formatter. I would like to insert the graph generated by this view into a WYSIWYG text field. When I apply a text-rendering formatter, the view inserts/displays correctly. When I apply the Dataviz formatter, the view does not display and I receive a notice: Unable to render media from "584","3373","2464","4928","164","8760","8760","1460","913","2190". Error: No file Id. The values in "" are the data points that should be graphed. This graph displays correctly when inserted elsewhere on the site or page via other means and without error, so I don't believe the problem lies with the Dataviz module.

How does Insert View deal with formatters? Does it have to "understand" each one?

Thanks!

Comments

mastoll’s picture

Extra info: if I use Drupal's block assignment means to display the views block on the page (just for comparison), the block displays correctly when I DON'T have the tag entered into the text field. It does not display at all when I do. For some reason, the tag is messing up the display of the view all together.

petarb’s picture

I am using Charts module to do a similar thing (i.e., using Chart as the view formatter).

Rather than display anything, there is no display at all, i.e.:

where is should be

rendered chart

So possibly similar issue, with no notices.

petarb’s picture

This is probably a little late for you, but I found the solution, hopefully it helps others:

Change the following in the TEXT FORMATS, relevant to the text format for the node you're embedding in (i.e., Full HTML, etc).

[ x ] Convert Media tags to markup
This filter will convert [[{type:media... ]] tags into markup.

Make sure this is NOT ticked. This will enable to media tags to work!

igor mashevskyi’s picture

Status: Active » Closed (outdated)

D7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
Development or support is not planned for D7. All D7-related issues are marked as outdated in a bunch.

Everyone can apply the patch above (not tested by the maintainers, tested by the community) to their D7 projects.
If the issue remains relevant for D10+ versions, merge requests with proposed solutions for a new module version (D10+) are welcome in a new follow-up issue.

Thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.