Skip to Content
-1

Text in RadialMicroChart

Hi,

I have been facing problem in adding text and displaying the number in fraction value inside of the radial chart.

I tired using fraction and total properties of the RadialMicroChart to display the number in fraction but din't help.

I want the radial chart to look exactly like this.radialmicrochart.jpg.

I tried with Jquery It's working but i'm looking for some different approach.

NEED HELP!!!!

Thank you in advance.

Regards,

Varali

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Mar 02, 2019 at 06:29 PM

    HI

    You can display fraction in the chart. However we do not suggest that you display text/label in it because there are no space.

    You do this by extending the control

      RadialMicroChart.extend("FractionRadialMicroChart", {
        renderer: {},
        onAfterRendering: function() {
          if (RadialMicroChart.prototype.onAfterRendering) {
            RadialMicroChart.prototype.onAfterRendering.apply(this, arguments);
          }
          if (this.getFraction()) {
            var oLabel = this.$().find(".sapSuiteRMCInsideLabel");
            oLabel.text(this.getFraction() + "/" + this.getTotal());
          }
        }
      });
    

    and here we have shown the percent and fraction can be displayed correctly based on the property values provided.

    https://jsbin.com/mowocum/edit?js,output

    Hope this helps you to move forwards

    Thanks

    Dennis

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.