Quantcast
Channel: All Developer posts
Viewing all articles
Browse latest Browse all 51368

Re: Adding a Second Measure to Custom Visual

$
0
0

Thanks so much.  I was doing some more research on this and I think it has something to do with using for...in instead of bind...to.

 

Below is the capabilities JSON

{ "dataRoles": [ { "displayName": "Bar Grouping", "name": "myCategory", "kind": "Grouping" }, { "displayName": "Bar Measurement", "name": "myMeasure", "kind": "Measure" } ], "dataViewMappings": [ { "conditions": [ { "myCategory": { "max": 1 }, "myMeasure": { "max": 2 } } ], "categorical": { "categories": { "for": { "in": "myCategory" }, "dataReductionAlgorithm": { "top": {} } }, "values": { "select": [ { "bind": { "to": "myMeasure" } } ] } } } ], "objects": { "barchartProperties": { "displayName": "Barchart Properties", "properties": { "sortBySize": { "displayName": "Sort by Size", "type": { "bool": true } }, "barColor": { "displayName": "Bar Color", "type": { "fill": { "solid": { "color": true } } } }, "xAxisFontSize": { "displayName": "X Axis Font Size", "type": { "integer": true } }, "yAxisFontSize": { "displayName": "Y Axis Font Size", "type": { "integer": true } } } } } }

 


Viewing all articles
Browse latest Browse all 51368

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>