Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

0

powerbi js menu commands extensions not showing legends data

Hello,

 

I have been fiddling with getting the menu commands extension setup on our embedded solution and I have found that in a line chart not all data comes through in the command details of the underlying event.

From the json output, under dataPoints I can see identity(which is related to the axis) and values(which are the values) but I am not able to see anything related to the legends.

 

Is this a bug? or is legends not yet implemented as a feature?

 

Edit: This happens when I trigger the command over a blank area rather than a specific point on the line, therefore showing values across the legend range on the axis value but no data showing the legend that the value is related to.

 

The type of output I get from the command is so:

{
    "dataPoints": [{
        "identity": [{
            "target": {
                "table": "Date",
                "column": "DayOfYear"
            },
            "equals": 6
        }],
        "values": [{
            "target": {
                "table": "Table2",
                "measure": "Measure"
            },
            "value": 9359,
            "formattedValue": "9359"
        }, {
            "target": {
                "table": "Table2",
                "measure": "Measure"
            },
            "value": 9270,
            "formattedValue": "9270"
        }, {
            "target": {
                "table": "Table2",
                "measure": "Measure"
            },
            "value": 9323,
            "formattedValue": "9323"
        }, {
            "target": {
                "table": "Table2",
                "measure": "Measure"
            },
            "value": 7680,
            "formattedValue": "7680"
        }]
    }]
}

What I would expect is that for the values to be spread out into multiple dataPoints objects in the format of:

{
    "identity": [{
        "target": {
            "table": "Date",
            "column": "DayOfYear"
        },
        "equals": 6
    }, {
        "target": {
            "table": "Date",
            "column": "Year"
        },
        "equals": 2019
    }],
    "values": [{
        "target": {
            "table": "Table2",
            "measure": "Measure"
        },
        "value": 9359,
        "formattedValue": "9359"
    }]
}

so the identity array would contain the legend data also which is something that you get if you trigger the command on a single datapoint.

 

Thank you in advance

 

Status: Delivered
Comments
v-qiuyu-msft
Community Support

Hi @hoonybro90,

 

I would suggest you create a support ticket to get dedicated support. 

 

Support Ticket.gif

 

Best Regards,
Qiuyun Yu 

v-qiuyu-msft
Community Support
Status changed to: Delivered