Merged PR 88779: Corrected dataRoles display names to match changes in PBI

Corrected dataRoles display names to match changes in PBI.
**Summary**
User is not able to generate visuals like column chart in embedded playground.
We have checked and reproduced same issue from our end.

[Repro Steps]
•	Navigate to the Embedded Playground URL https://microsoft.github.io/PowerBI-JavaScript/demo/v2-demo/index.html#
•	Click on Show Case
•	Choose Quick Visual Creator > Start
•	It will take you to the next screen and select Column Chart or Waterfall Chart under Generator > Visual Type

**Root Cause**
Display names for two roles were changed in PBI (see [PR 79924](https://powerbi.visualstudio.com/PowerBIClients/_git/b5e9effd-6805-4409-85f3-01d4e4d64caa/pullrequest/79924?_a=files&path=%2Fsrc%2FClients%2FPowerBIVisuals%2FVisuals%2Fcapabilities%2FwaterfallChart.capabilities.ts)) - this caused a mismatch between this demo and PBI.
This commit is contained in:
Guy Moses 2020-05-21 09:53:18 +00:00
Родитель 3b9ad5cd15
Коммит 9a748a4a43
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -27,9 +27,9 @@ let VisualCreatorShowcaseState = {
// Define the available data roles for the visual types // Define the available data roles for the visual types
const visualTypeToDataRoles = [ const visualTypeToDataRoles = [
{ name: 'pieChart', displayName: 'Pie chart', dataRoles: ['Legend', 'Values', 'Tooltips'] }, { name: 'pieChart', displayName: 'Pie chart', dataRoles: ['Legend', 'Values', 'Tooltips'] },
{ name: 'columnChart', displayName: 'Column chart', dataRoles: ['Axis', 'Value', 'Tooltips'] }, { name: 'columnChart', displayName: 'Column chart', dataRoles: ['Axis', 'Values', 'Tooltips'] },
{ name: 'areaChart', displayName: 'Area chart', dataRoles: ['Axis', 'Legend', 'Values'] }, { name: 'areaChart', displayName: 'Area chart', dataRoles: ['Axis', 'Legend', 'Values'] },
{ name: 'waterfallChart', displayName: 'Waterfall Chart', dataRoles: ['Category', 'Breakdown', 'Y Axis'] }, { name: 'waterfallChart', displayName: 'Waterfall Chart', dataRoles: ['Category', 'Breakdown', 'Values'] },
]; ];
// Define the available fields for each data role // Define the available fields for each data role