• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    About pie chart & webfont

    Scheduled Pinned Locked Moved Dashboard Designer & Custom AngularJS Pages
    3 Posts 2 Posters 1.4k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • seanS Offline
      sean
      last edited by sean

      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');

      1 Reply Last reply Reply Quote 0
      • phildunlapP Offline
        phildunlap
        last edited by

        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>'}"

        seanS 1 Reply Last reply Reply Quote 0
        • seanS Offline
          sean @phildunlap
          last edited by

          @phildunlap Thank you Phildunlap it's work.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post