on 2019 Jun 26 8:48 AM
Hi,
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">
<viz:dataset>
<viz.data:FlattenedDataset data="{$this.odata>/IncidentsOverview}">
<viz.data:dimensions>
<viz.data:DimensionDefinition name="Incident Status"
value="{$this.odata>status}" />
</viz.data:dimensions>
<viz.data:measures>
<viz.data:MeasureDefinition name="Number of incidents"
value="{$this.odata>count}" />
</viz.data:measures>
</viz.data:FlattenedDataset>
</viz:dataset>
Request clarification before answering.
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 https://jsbin.com/dokofokefi/edit?html,output
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
73 | |
30 | |
8 | |
8 | |
7 | |
6 | |
6 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.