Configuring capabilities
Step by step guide how to build React-based Custom Visual
-
Open
capabilities.json
. RemoveCategory Data
object fromdataRoles
. ReactCircleCard will display a single value, so we need onlyMeasure Data
."dataRoles": [ { "displayName": "Measure Data", "name": "measure", "kind": "Measure" } ],
-
Remove all the content of
objects
key. It will be filled in later."objects": {},
-
Copy the following code of
dataViewMappings
property. Pay attention tocondition
:max: 1
It means that the only one measure column can be submitted."dataViewMappings": [ { "conditions": [ { "measure": { "max": 1 } } ], "single": { "role": "measure" } } ]
-
Now you can drag some data from
Fields
pane into the visual settings.
The next step of tutorial will describe how to render data using React.