aachraf
aachraf

Reputation: 119

How can I correct this behavior on google line chart

I'm trying to plot two series using Google chart, the series does not have the pts and in the graph i got a discontinuous line for one serie (see the pic below)

enter image description here

Can any one know how to fix this please.

Upvotes: 0

Views: 56

Answers (1)

asgallant
asgallant

Reputation: 26340

You can change the size of the points by using either the pointSize option or the series.<series index>.pointSize option. Both will take an integer for the point size in pixels. The pointSize option controls the point size for all series (default is 0). The series option overrides the default for specific series.

pointSize: 3

or

series: {
    0: {
        pointSize: 3 // first series
    },
    1: {
        pointSize: 5 // second series
    }
}

To eliminate the gap in the data, you have to set the interpolateNulls option to true:

interpolateNulls: true

Upvotes: 2

Related Questions