I have some problems with the output using 7.x-4.x. When using the svggraph, the svg is somehow corrupt and want be displayed in browser.
When I copied the svg code only, I can view. Before I had no problem with 7.x-3.14.

I will take a look at the code what reproduced the error.
Has someone else got the same problem? I know it's still in dev, but I think the alpha version also reproduce the same problem.

Comments

hgkris’s picture

I found that when reproducing the svg code there are some breaks in the code.

<br/>

In my code it places 3 breaks before

hgkris’s picture

It seems not be in Forena module. In my test Drupal I had no problem. In my new new Drupal testing env I have problems with all modules of Forena. I think the problems seems to be in generating xml to svg...
I've tried a new Drupal env and installed the module. Seems to be corrupted to.

Did you ran into any problem when using Forena on new Drupal 7.26 install and Forena module when generating svg graphs?

hgkris’s picture

It's strange. If I insert svg through the code below, it works!
<div frx:src="reports/graph.svg?height=400&amp;width=600" frx:renderer="FrxInclude" frx:height="480" frx:width="640" id="forena-1"/>

And if I call reports/graph it doesn't show the svg graph. Is it not possible when showing a graph, that it's directly embedded in the website, so the javascript will work for tooltips?

metzlerd’s picture

Re #2, This is a sign that the input text format being used by forena has its input filter configured to convert line feeds into
tags. Particularly when doing SVG you want to make sure that you have turned this feature as well as any "clean up html" filters. These features will seriously muck with your svg. The tooltips should work if these settings are configured as well.

hgkris’s picture

Yep. Forgot this urning off when setting up a new env.
Sorry for the trouble...

hgkris’s picture

Status: Active » Closed (fixed)