Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

231
Views
jqPlot LineRenderer plotting against date xaxis over DST change

As the title says, I am plotting data values against a date x-axis. The data spans a DST change in the UK. The x-axis displays as I'd like - in spring 01:00 is missing, in autumn it is duplicated.

However, for reasons around the fact I'm using a customised line renderer and point info, I need the data points to be plotted against the SECOND of the two 01:00 -> 02:00 periods, not the first.

Can I do that?

Here is a cut down sample - it uses the standard LineRenderer, but that exhibits the same behaviour:

http://jsfiddle.net/whelkaholism/yqrLx7z5/


    var arr = [
        [new Date('2021-10-31T00:30:00'), 4, 0.1, {}],
        [new Date('2021-10-31T00:45:00'), 4, 0.1, {}],
        [new Date('2021-10-31T01:00:00'), 4, 0.1, {}],
        [new Date('2021-10-31T01:15:00'), 6, 0.1, {}],
        [new Date('2021-10-31T01:30:00'), 2, 0.1, {}],
        [new Date('2021-10-31T01:45:00'), 5, 0.1, {}],
        [new Date('2021-10-31T02:00:00'), 1, 0.1, {}],
        [new Date('2021-10-31T02:15:00'), 7, 0.1, {}],
        [new Date('2021-10-31T02:30:00'), 3, 0.1, {}],
        [new Date('2021-10-31T02:45:00'), 4, 0.1, {}]
    ]

    plot1 = $.jqplot('chartdiv', [arr], {
        title: 'DST',
        axes: {
            xaxis: {
                renderer: $.jqplot.DateAxisRenderer
            }
        },
        seriesDefaults: {
            renderer: $.jqplot.LineRenderer            
        }
    });
});

This gives the following chart; the red circle shows the points in the first 01:00 period, the green circle shows where I want them.

enter image description here

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!