Eliminazione spazi da grafico a barre

Sergio Basso 1 Reputation point

Buon pomeriggio
È possibile, in un grafico a barre creato con VB.net, eliminare gli spazi delle barre con valore uguale a zero?

An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,662 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Jiachen Li-MSFT 28,946 Reputation points Microsoft Vendor

    Hi @SergioBasso-1862 ,
    You can choose to Using Empty Data Points.
    Or use the following code to hide 0 value.

    For j As Integer = 0 To Me.radChart1.Series.Count - 1  
        Dim items As ChartSeriesItemsCollection = Me.radChart1.Series(j).Items  
        For i As Integer = 0 To items.Count - 1  
            If items(i).YValue = 0 Then items(i).Label.Visible = False  

    Best Regards.
    Jiachen Li


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Sergio Basso 1 Reputation point

    thanks for your answer.
    I haven't tried to see if it works because I didn't have time.
    However I decided to use Excel for the management of the graphs.

    0 comments No comments