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

Re: Adding a Second Measure to Custom Visual

$
0
0

I really appreciate your help.

 

Below is the settings.ts file.

 

My goal with this chart is to compare to values across one or more categories.  For example comparing budgeted amounts to actual amounts for each sales region where the green bars are the budget and the yellow bars are the actuals.  So to answer your question more directly, each bar would be the sume of different measures (e.g. actual, budget).  I hope that makes sense.

 

"use strict"; import { dataViewObjectsParser } from "powerbi-visuals-utils-dataviewutils"; import DataViewObjectsParser = dataViewObjectsParser.DataViewObjectsParser; import powerbi from "powerbi-visuals-api"; import Fill = powerbi.Fill; export class VisualSettings extends DataViewObjectsParser { // public dataPoint: dataPointSettings = new dataPointSettings(); public barchartProperties: BarchartProperties = new BarchartProperties(); } export class BarchartProperties { sortBySize: boolean = true; xAxisFontSize: number = 10; yAxisFontSize: number = 10; barColor: Fill = { "solid": { "color": "#018a80" } }; // default color is teal }

 


Viewing all articles
Browse latest Browse all 51369

Trending Articles



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