Fixed grouped error
This commit is contained in:
Родитель
5fc7efdc0d
Коммит
59dea3854d
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "powerbi-visuals-chordchart",
|
||||
"version": "0.4.1",
|
||||
"version": "0.4.2",
|
||||
"author": {
|
||||
"name": "Microsoft",
|
||||
"email": "pbicvsupport@microsoft.com"
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"displayName": "Chord",
|
||||
"guid": "ChordChart1444757060245",
|
||||
"visualClassName": "ChordChart",
|
||||
"version": "0.4.1",
|
||||
"version": "0.4.2",
|
||||
"description": "A chord diagram is a graphical method of displaying the inter-relationships between data in a matrix.",
|
||||
"supportUrl": "http://community.powerbi.com",
|
||||
"gitHubUrl": "https://github.com/Microsoft/powerbi-visuals-chord"
|
||||
|
|
|
@ -199,7 +199,10 @@ module powerbi.extensibility.visual {
|
|||
|
||||
categoricalValues.Series = categoricalValues.Series || ChordChartColumns.getSeriesValues(dataView);
|
||||
|
||||
let grouped: DataViewValueColumnGroup[] = columns.Series.grouped();
|
||||
let grouped: DataViewValueColumnGroup[] = null;
|
||||
if (columns.Series) {
|
||||
grouped = columns.Series.grouped();
|
||||
}
|
||||
|
||||
let dataMatrix: number[][] = [];
|
||||
let renderingDataMatrix: number[][] = [];
|
||||
|
@ -254,12 +257,12 @@ module powerbi.extensibility.visual {
|
|||
|
||||
color = colorHelper.getColorForSeriesValue(thisCategoryObjects, categoricalValues.Category[index])
|
||||
} else if ((index = seriesIndex[totalFields[i]]) !== undefined) {
|
||||
let seriesData: DataViewValueColumn= columns.Y[index];
|
||||
let seriesObjects: DataViewObjects = grouped[index].objects;
|
||||
let seriesObjects: DataViewObjects = (grouped) ? grouped[index].objects : null;
|
||||
let seriesData: DataViewValueColumn = columns.Y[index];
|
||||
let seriesNameStr: PrimitiveValue = converterHelper.getSeriesName(seriesData.source);
|
||||
|
||||
id = host.createSelectionIdBuilder()
|
||||
.withSeries(columns.Series, grouped[index])
|
||||
.withSeries(columns.Series, (grouped) ? grouped[index] : null)
|
||||
.createSelectionId();
|
||||
isCategory = false;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче