Eliminazione spazi da grafico a barre

Sergio Basso 1 Reputation point
2022-04-22T12:35:03.9+00:00

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

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

2 answers

Sort by: Most helpful
  1. Jiachen Li-MSFT 26,506 Reputation points Microsoft Vendor
    2022-04-26T02:29:35.333+00:00

    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  
        Next  
    Next  
    

    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
    2022-04-28T08:44:28.303+00:00

    Hello,
    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.
    Sergio

    0 comments No comments