-
Content count
6 -
Joined
-
Last visited
Posts posted by joka
-
-
ok
i will help myself.
-
-
hi~
if u want to Different Datalabel Different Font Style ,
i have one idea.
code:
"styles": { "definition": [
{ "name": "myHTMLFont", "type": "font", "ishtml": "1"} ],
"application": [
{ "toobject": "DATALABELS", "styles": "myHTMLFont" },
{ "toobject": "TOOLTIP", "styles": "myHTMLFont" } ] },
then if i push data
var data={};
var t=parseFloat(width)/fvObj.getItemCount();
data["x"]=t*i+t/2;
data["y"]="220";
data["width"]="100";
data["height"]="70";
data["color"]="62D0FE";
data["name"]="<font color='red'>"+fvObj.getItemText("szName",i)+"</font>";
data["alpha"]="100";
data["tooltext"]=fvObj.getItemText("szName",i);
data["id"]=fvObj.getItemText("GroupID",i);
retObj.dataset[0].data.push(data);
var ammeter={};
ammeter["x"]=t*i+t/2-30;
ammeter["y"]="90";
ammeter["width"]="60";
ammeter["height"]="65";
ammeter["imagenode"]="1";
ammeter["imageurl"]="resources/swf/ammeter.jpg";
ammeter["labelalign"]= "BOTTOM";
ammeter["imagealign"]= "top";
ammeter["alpha"]= "1";
ammeter["imagewidth"]= "40";
ammeter["imageheight"]="40";
ammeter["color"]="FE9191";
ammeter["name"]="<font color='blue'>"+dayAEnergy.toFixed(0)+"度</font>";
ammeter["id"]=fvObj.getItemText("GroupID",i)+"a";
retObj.dataset[0].data.push(ammeter);
but it useless :( :(
Why?
set isHtml='1'
but html tag is useless
-
Hi,
Welcome to the FusionCharts Forum
Thank you for the post.
I am afraid FusionCharts does not support such a feature.
Hope this helps !
but thx too
-
Different Datalabel Different Font Style 2
in Using PowerCharts XT
Posted · Report reply