This article provides a sample code on how to configure a Map Chart Marker to be a Pie
Introduction
This article provides a sample code on how to configure a Map Chart Marker to be a Pie
Code Sample
# Copyright © 2017. TIBCO Software Inc. Licensed under TIBCO BSD-style license. from Spotfire.Dxp.Application.Visuals import * from Spotfire.Dxp.Application.Visuals.Maps import * from Spotfire.Dxp.Application.Visuals import PieMarker # chart is a script parameter referencing the MapChart Visualization mapchart=chart.As[MapChart]() for layer in mapchart.Layers: # the MarkerLayer if layer.Title=="SalesAndMarketing": mLayer=layer.As[MarkerLayerVisualization]() mLayer.MarkerClass=MarkerClass.Chart #Pie Marker pieMarker=mLayer.PieMarker pieMarker.SectorSizeAxis.Expression = "UniqueCount([Region])"; pieMarker.VisualAttributes.LabelPosition = LabelPosition.Inside; pieMarker.VisualAttributes.LabelValue = False; pieMarker.VisualAttributes.LabelPercentage = True; pieMarker.VisualAttributes.LabelVisibility = LabelVisibility.All;
References
License: TIBCO BSD-Style License
Recommended Comments
There are no comments to display.