Missing values in a series - no line

1,626 views
Skip to first unread message

Ruben Olsen

unread,
Jun 14, 2010, 12:03:12 PM6/14/10
to jqplot...@googlegroups.com
Hi list people.

Given missing valued in a time series, jqplot now draws a line between two adjacent points. Is it possible to not draw this line?

Current behaviour: http://www.open-voip.com/jqplot/current.jpg

Wanted behaviour: http://www.open-voip.com/jqplot/wanted.jpg

Is there a way to achieve this without writing my own renderer (or using more than one dataset)?

\Ruben

Chris Leonello

unread,
Aug 4, 2010, 6:50:09 PM8/4/10
to jqplot-users
Hi Ruben,

I think this is the same issue noted here (maybe you're the same
poster):

http://groups.google.com/group/jqplot-users/browse_thread/thread/ab7f81a9fb3127a7

In any case, I saw the original post and have been working to handle
this for line charts as indicated in picture. I dove right in to
implement but neglected to post back a response.

It is nearly working and sources are in the repository. I am working
out some bugs that are breaking stacked bar charts (note, I don't
intend to handle null values with bars/areas at this point). I should
have it wrapped up in the near future (anywhere from later tonight to
sometime next week).

Chris Leonello

unread,
Aug 8, 2010, 2:43:02 PM8/8/10
to jqplot...@googlegroups.com
Hi Ruben,

I pushed these changes into the repository a few days ago. You should be able to do what you need with the latest sources.

--
Chris Leonello

> --
> You received this message because you are subscribed to the Google Groups "jqplot-users" group.
> To post to this group, send email to jqplot...@googlegroups.com.
> To unsubscribe from this group, send email to jqplot-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/jqplot-users?hl=en.
>

sscottgis

unread,
Aug 16, 2010, 1:32:41 PM8/16/10
to jqplot-users
I just downloaded the latest release from bitbucket (jquery.jqplot.
0.9.7r597.zip) to take advantage of the missing data fixes, but the
data is not displaying as expected. I'm creating a basic line chart
with one value per week ([1/1/2000, 0.1], [1/8/2000, 0.7], etc). The
data plotted correctly in 0.9.6, with zeros as null, but now I'm
seeing a very odd sawtooth pattern. It might be related to the series
starting with a few null values? It's also still connecting points
between nulls (see the long section between the two dark blobs
1905-1909).

Chart with nulls:
http://torka.unl.edu:8080/jqplot_errors/missingdata_full.png

The same plot zoomed in to the first dark blue section:
http://torka.unl.edu:8080/jqplot_errors/missingdata_zoom.png

Using an earlier version of jqplot (0.9.6):
http://torka.unl.edu:8080/jqplot_errors/missingdata_as_zero.png

Or it could be some glitch when using the date axis renderer. Anyway,
just thought I'd let you know.

sscottgis

On Aug 8, 1:43 pm, Chris Leonello <chris.leone...@gmail.com> wrote:
> Hi Ruben,
>
> I pushed these changes into the repository a few days ago.  You should be able to do what you need with the latest sources.
>
> --
> Chris Leonello
>
> On Aug 4, 2010, at 6:50 PM, Chris Leonello wrote:
>
> > Hi Ruben,
>
> > I think this is the same issue noted here (maybe you're the same
> > poster):
>
> >http://groups.google.com/group/jqplot-users/browse_thread/thread/ab7f...

Chris Leonello

unread,
Aug 16, 2010, 8:59:42 PM8/16/10
to jqplot...@googlegroups.com
Changes are in the repository, not in the pre-built distribution. They are post r597 changes.

--
Chris Leonello

Ruben Olsen

unread,
Aug 17, 2010, 4:04:23 AM8/17/10
to jqplot...@googlegroups.com
Hi Chris & list!

This is excellent news - I'll check it out ASAP.

Btw, I was not the same poster as in the other thread. Even if I did
search the list archive I did not see that one :-)

\Ruben

Michael Kintzer

unread,
Jun 19, 2012, 1:10:04 AM6/19/12
to jqplot...@googlegroups.com
Hi Chris,

I'm using 1.0.0b2_r1012 .   What option do I specify to not plot lines for missing data points?

Thanks,

Michael

> To unsubscribe from this group, send email to jqplot-users+unsubscribe@googlegroups.com.

Yoshio Endo

unread,
Nov 8, 2012, 3:14:10 AM11/8/12
to jqplot...@googlegroups.com
Hi  Michael ,
I was able to "breakOnNull" options as follows:
--------------------------------------------------------------
jQuery( function() {
     jQuery . jqplot(
         'timechart',
         [
             [
                [ '2012-01-01 0:00', 65 ],
                [ '2012-01-01 1:00', 96 ],
                [ '2012-01-01 2:00', 74 ],
                [ '2012-01-01 3:00', 63 ],
                [ '2012-01-01 4:00', 85 ],
                [ '2012-01-01 5:00', 90 ],
                [ '2012-01-01 6:00', 91 ],
                [ '2012-01-01 7:00', 92 ],
                [ '2012-01-01 8:00', 93 ],
                [ '2012-01-01 9:00', 89 ],
                [ '2012-01-01 10:00', null ],
                [ '2012-01-01 11:00', 60 ],
                [ '2012-01-01 12:00', 50 ],
                [ '2012-01-01 13:00', 55 ],
                [ '2012-01-01 14:00', 58 ],
                [ '2012-01-01 15:00', 59 ],
                [ '2012-01-01 16:00', 63 ],
                [ '2012-01-01 17:00', 68 ],
                [ '2012-01-01 18:00', 73 ],
                [ '2012-01-01 19:00', 80 ],
                [ '2012-01-01 20:00', 86 ],
                [ '2012-01-01 21:00', 90 ],
                [ '2012-01-01 22:00', 95 ],
                [ '2012-01-01 23:00', 98 ]
                ]
         ],
         {
             series: [
                {
                    breakOnNull: true
                }
            ],
             axes:{
                 xaxis:{
                     renderer: jQuery . jqplot . DateAxisRenderer,
                     min: '2012-01-01 0:00',
                     max: '2012-01-01 24:00',
                     tickInterval: '4 hours',
                     tickOptions:{
                         formatString: '%H:%M'
                        }
                     },
                 yaxis:{
                     min: 0,
                     max: 100,
                     tickInterval: 20
                 }
             }
         }
     );
 } );
--------------------------------------------------------------
 

2012年6月19日火曜日 14時10分04秒 UTC+9 Michael Kintzer:

> To unsubscribe from this group, send email to jqplot-users...@googlegroups.com.

Reply all
Reply to author
Forward
Message has been deleted
0 new messages