This commit is contained in:
Nikita Grachev 2016-11-24 22:38:09 +07:00
Родитель 5fc7efdc0d
Коммит 59dea3854d
3 изменённых файлов: 9 добавлений и 6 удалений

Просмотреть файл

@ -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;