Skip to content

How can I omit plotting zero values in the array #947

@jsr1611

Description

@jsr1611

Dear Scott,

I am plotting growing live data (using fixed array data structure) and if I don't have data for certain plots, I am skipping it by continueing it in the loop.
But, I feel like it is still plotting those as zero thus making the plot look not so good.
How can I omit plotting those zero values in the array? I want to plot only non-zero values.
Here is the snapshot of the charts.
image

I am using 4.0.42.0 version.

I have multiple charts and multiple lines in each chart. Sometimes I have data for all charts, and it plots them nicely. But when I have data for certain charts, and not for all of them, I don't update the relevant array value (which is by default is 0 I guess), and this array index then produces this issue.

Any help would be appreciated!
Jimmy

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions