Problem/Motivation

When generating graphs using multi-line graphing series legends become inaccurate where gaps are generated in the data.

Proposed resolution

Eliminate the legend entry when not present in the data prior to handing off to SVG Graph.

Comments

metzlerd created an issue. See original summary.

metzlerd’s picture

Attempted the following fix as recommended:

    // added test for empty string which occurs in crosstab data
    if(strcmp ( $legend_str , "" ) ) {
       $legend[$legend_str] = $legend_str;
    }

But this seemed to break and not show a legend entry for the second series.

metzlerd’s picture

I have been unable to reproduce the null value problem with the current versions of both Forena and the Graphing Library. In my frx sandbox I've created a sample report (reports/empty-series-test) to try and reproduce this problem. I'd be interested in working with you to verify this problem and see if we can get a fix.

metzlerd’s picture

Status: Active » Closed (outdated)