Stats & Charts Bb Codes

Stats & Charts Bb Codes 1.0.2

No permission to download
Hello Cédric,

I finally put up some investigations to find out the reason of the error.

The error only pops out if you state the bbcode to use default height or default width and do an edit of the post and save.
Eg. :
HTML:
[bar=600x@|no-tick|pad:0|legend:no|zoom|point-labels]
{title=center}My data flow from Sep 1, 2016 to Sep 30, 2016{/title}
{xaxis=no-tick-mark}{/xaxis}
{yaxis=string:dollar|tick-zero|formatString: "%#.2f"|label-angle:-90}My data{/yaxis}
{data=no-renderer|animate:2000}
1115.00; 1005.00{/data}
{points}|{/points}
{zoom=loose}{/zoom}
{hl=tooltip:s|tooltip-axis:y|size-adjust:7.5}{/hl}
[/bar]
will pops the error I pointed when editing the post containing it.

While:
HTML:
[bar=600x400|no-tick|pad:0|legend:no|zoom|point-labels]
{title=center}My data flow from Sep 1, 2016 to Sep 30, 2016{/title}
{xaxis=no-tick-mark}{/xaxis}
{yaxis=string:dollar|tick-zero|formatString: "%#.2f"|label-angle:-90}My data{/yaxis}
{data=no-renderer|animate:2000}
1115.00; 1005.00{/data}
{points}|{/points}
{zoom=loose}{/zoom}
{hl=tooltip:s|tooltip-axis:y|size-adjust:7.5}{/hl}
[/bar]
will not.

Moreover, I found a bug. The height is incorrectly taken into account.

On line 108 of your bbm_6_jquery.jqplot you have:
HTML:
                    array_push($inlineCss, "height:{$width}px");

while it should be:
HTML:
                    array_push($inlineCss, "height:{$height}px");

Clément
 
@MtoR

The first problem has been fixed. The version 1.0.3 has been released on Github (ref). The jplot script has been updated to 1.0.9 version.
The second problem was fixed in January but only on Github.

Thank you for your help.
 
Top Bottom