About pie chart & webfont
-
how to setting option in amchart web demo code like
"balloonText": "[[title]]<br><span style='font-size:14px'><b>[[value]]</b> ([[percents]]%)</span>"
I use in mango code<ma-pie-chart value="[{ value: temperature1.renderedValue, text: 'Temperature1', color:'#187dea'}, { value: temperature2.renderedValue, text: 'Temperature2', color:'#3AD622'}, { value: temperature3.renderedValue, text: 'Temperature3', color:'#37b76b'}]" options="{labelsEnabled:false,outlineAlpha:0.2,innerRadius:70,hoverAlpha:0.5, balloonText:[{<span style='font-size:20px'>[[title]]</span><br><span style='font-size:35px'><b>[[value]]</b> ([[percents]]%)</span>}],}"></ma-pie-chart>
but it error
Error: [$parse:syntax] Syntax Error: Token '<' invalid key at column 96 of the expression [{labelsEnabled:false,outlineAlpha:0.2,innerRadius:70,hoverAlpha:0.5, balloonText:[{<span style='font-size:20px'>[[title]]</span><br><span style='font-size:35px'><b>[[value]]</b> ([[percents]]%)</span>}],}] starting at [<span style='font-size:20px'>[[title]]</span><br><span style='font-size:35px'><b>[[value]]</b> ([[percents]]%)</span>}],}].
how do I fix balloonText ?after 3.4.4 How to use webfont ?
Now in css can not use like
@import url(https://fonts.googleapis.com/earlyaccess/notosanstc.css); @import url('https://fonts.googleapis.com/css?family=Share+Tech+Mono');
-
Hi sean,
I'm not sure what the enclosing
[{ }]
is trying to do on the balloon text from what you provide in the first sentence, so, I'm going to ignore that. The balloon text option needs to be a string, and there will probably be some quote escaping because this is HTML in a string in an HTML component, so we need three levels of quote marks, like,options="{labelsEnabled:false,outlineAlpha:0.2,innerRadius:70,hoverAlpha:0.5, balloonText:'<span style=\'font-size:20px\'>[[title]]</span><br><span style=\'font-size:35px\'><b>[[value]]</b> ([[percents]]%)</span>'}"
-
@phildunlap Thank you Phildunlap it's work.