Skip to Content

How to show values beside legend in vizFrame donut chart?


I want to display the count or % displayed chart in legent as well ,beside the legent items like below(attached image), how can i do it? for now i just have below code written for the regular donut chart.

 <viz:VizFrame id="incidentsChart" class="incidentChart" height="1000px" width="461px" visible="{$this.IncidentChart>/visible}" vizType="donut">
                    < data="{$this.odata>/IncidentsOverview}">
                            < name="Incident Status"
                                value="{$this.odata>status}" />
                            < name="Number of incidents"
                                value="{$this.odata>count}" />

capture.png (21.6 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jul 02, 2019 at 10:07 AM

    plotArea.dataPointStyle.rule is the only property that could modify the visible string on legend label. But you need to define the visible string (which allows you to add the numbers behind) and font color of every dimension strings . Please check,output

    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.