Show name in legend

Hello,

I am trying to add tags to the Dataframe in the OSISoft Plugin but something is not working properly.

This is the legend for the OSISoft plugin:

image

This is the legend for the InfluxDB plugin:

image

You can see that in red the name property in the Dataframe is shown in the Legend for the InfluxDB plugin.

I am using the toDataframe function to generate the dataframe.

{
    "data": [
        {
            "name": "AST-M01-102-01HCR|Valor Atual",
            "refId": "A",
            "meta": {
                "path": "\\\\SAURIOPIAF02\\M01\\M01_102\\M01_102_CH4\\AST-M01-102-01HCR|Valor Atual",
                "pathSeparator": "\\"
            },
            "fields": [
                {
                    "name": "Time",
                    "type": "time",
                    "config": {},
                    "values": [
                        1676640986192
                    ]
                },
                {
                    "name": "Value",
                    "type": "number",
                    "config": {},
                    "values": [
                       111
                    ],
                    "labels": {
                        "element": "AST-M01-102-01HCR",
                        "name": "Valor Atual",
                        "type": "Double"
                    }
                }
            ],
            "length": 1
        }
    ]
}

You can see that the name property is set ok, but is not shown in the Legend for the OSISoft plugin.

Any ideas what I might be doing wrong?

Thank you,
Paulo Vitor

Managed to find the solution. Thank you.

For the benefit of others, do you want to share your solution?

1 Like

Adding the tag name to the value Field and not to the Dataframe. GridProtectionAlliance/osisoftpi-grafana at feature/v4.0.0 (github.com)

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.