* if the chart width < 300, set to 300.

This commit is contained in:
wangchunsheng
2010-01-02 01:35:45 +00:00
parent f3a4fb0701
commit beb68af9cc
+1
View File
@@ -62,6 +62,7 @@ function createChart$count()
{
chartWidth = "$width";
if(chartWidth == 'auto') chartWidth = $('#$divID').width();
if(chartWidth < 300) chartWidth = 300;
var $chartID = new FusionCharts("$chartRoot$swfFile", "{$chartID}id", chartWidth, "$height");
$chartID.setDataXML("$dataXML");
$chartID.render("$divID");