Deneb - Gauge With Text / Scale

Hi,
I need to create gauge with multiple texts based on the parameter. In the bar chart I can do it. But with gauge and the type is arch, I don’t know how to show the text.
This is the bar chart that I created:

This is the progress of the gauge:

Kindly need your help to show the text like I created in the bar chart.
Deneb Templates - Radial Gauge EDIT.pbix (1.7 MB)

Thank You,
Yusuf

Hi @yusufkurniaromadhon.

You’ll need to add text marks to display the range labels. My starting point is most often the Vega Lite Examples gallery; here’s a link to their instance of presenting data labels on a circular chart:

Your instance is more complicated, what with several separate arc marks. Here’s a possible start:

Here’s the code for one of the text marks:

    {
      "name": "RING RANGE LABEL 4",
      "mark": {
        "type": "text",
        "radius": {
          "expr": "ring1_outer_1 + 10"
        },
        "theta": {
          "expr": "datum['_arc_end_radians_4']"
        },
        "align": "left",
        "color": "black"
      },
      "encoding": {
        "text": {"value": "Exceed"}
      }
    }

Hope it helps.
Greg
eDNA Forum - Deneb Radial Gauge Range Labels.pbix (1.7 MB)

1 Like

Hi @Greg

Awesome! Thank you so much for your help.

Regards,
Yusuf

Hi @Greg

I have a related question.
Based on the file you sent, I edited the label with number
image

How to make the percentage in-sync with the label?
Is it because of my formula in “fill”?

I think the problem is the percentage isn’t in-sync with the degree.

Thank You,
Yusuf

Hi @yusufkurniaromadhon.

As per the forum use guidelines, posting to a solved thread is discouraged. Please instead create a new thread for each new issue, and you can add the link to the solved thread if it provides more context. Also, many forum members only review un-solved threads, so …

Regardless, your issue is not clear. For the forum members to provide further assistance, please create a new thread and attach a marked-up screenshot of your desired outcome along with your work-in-progress PBIX file.

Greg

Hi @Greg

Well noted. I have created a new thread for this one.

Thanks,
Yusuf