Hide "0" labels from a Staked Column Chart - VB.NET

asked 2021-11-24T23:06:48.117+00:00
Alexander Santos Quincho 1 Reputation point

Hi.
I 've a Stacked Column chart in VB .net.
But the data label y zero and I can't hide when is zero.

152405-image-1.png

I tried to use this sentence:

grafico_dinamico2.Series("Pinturas").IsValueShownAsLabel = True

(Pinturas: Is my Serie name)

And I don't have any idea how to validate when label data is zero.

152384-image-2.png

Microsoft Graph Extensions API
Microsoft Graph Extensions API
A Microsoft API that allows you to extend the graph API resources to save the data of your own application.
50 questions
{count} votes

1 answer

Sort by: Most helpful
  1. answered 2021-11-24T23:33:22.29+00:00
    Alexander Santos Quincho 1 Reputation point

    I do it.

    I use this code:

    grafico_dinamico2.Series("Pinturas").LabelFormat = "#,##;(#,##);"

    No comments