Plugin Error code : NVD3 in the format area .

Tirso

New Member
Hello everyone

I want to share with everyone I found a small error in the plugin code NVD3 .

This is the file :

/ plugins/fabrik_visualization/nvd3_chart/views/nvd3_chart/tmpl/default/default.php

In line 26 says:

< svg style = "height : < ? php echo $ this-> params -> get (' height' , 350) ; ? > px ; width =" < ? php $ this -> params -> get (' width' , 350 ) ? > px "> < / svg >

and I think the right thing would be:

< svg style = "height : < ? php echo $ this-> params -> get (' height' , 350) ? > px , width: < ? php echo $ this-> params -> get (' width' , 350 ) ? > px "> < / svg >

This error prevented the form plugin settings in the Format area , the width and height values ??are not met .

and as I have proved, would suggest the following:

< svg style = "height : < ? php echo $ this-> params -> get (' height' ) ? > px , width: < ? php echo $ this-> params -> get (' width' ) ? > % "> < / svg >

This change allows us to set the height of the graphic in pixels ( px ) and the width as a percentage of screen width ( % ) .

I hope I can be helpful for those considering this plugin as interesting as what I think .

I hope that soon the code can be complete for all chart types.
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top