Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9240349
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:10:23+00:00 2026-06-18T08:10:23+00:00

I use LIVE Highchart with 2 live graphs. The chart should display only 5

  • 0

I use LIVE Highchart with 2 live graphs. The chart should display only 5 datapoints at on time. Therefore is the shift-argument

 var series1 = chart.series[0];
 shift1 = series1.data.length > 5;       
 series1.addPoint(point1, true, shift1);

So when point six arrives, point one is thrown away. But when i disable a series for a while … and after enabling it again … there was no shift.

http://www.abload.de/img/errorh5kko.jpeg

I reproduced it on jsfiddle for you

http://jsfiddle.net/yeDYr/1/

So both livegraphs no matter whether enabled or disabled should be shifted.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T08:10:24+00:00Added an answer on June 18, 2026 at 8:10 am

    Looks like a bug in Highcharts to me. As a workaround, just .show() the series, then hide() it (if needed). Highcharts seems to be able to do this without any visible flickering.

    // the button action
    $('#button1').click(function() {
    
        var point1 = Math.random() * 10;
        var point2 = Math.random() * 10;
    
        var series1 = chart.series[0];
        shift1 = series1.data.length > 5;
    
        isVisible = series1.visible;
        if (!isVisible) series1.show();
        series1.addPoint(point1, true, shift1);
        if (!isVisible) series1.hide();
    
        var series2 = chart.series[1];
        shift2 = series2.data.length > 5;
    
        isVisible = series2.visible;
        if (!isVisible) series2.show();
        series2.addPoint(point2, true, shift2);
        if (!isVisible) series2.hide();
    });
    

    Updated fiddle.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Should I use E_NOTICE enabled on live server? As I can see in Why
I follow the following guide to create a live chart: http://www.highcharts.com/documentation/how-to-use#live-charts It catch the
I'm generating content using Ajax and therefore need to use .live() to attach a
Has anyone succeeded in configuring ADFS2 to use Live Id (or Google, Yahoo etc)
I want to use the live method to hide an element if the user
Anyone knows a good way to use http live streaming tools on non-Mac platforms?
I need a way to use the jquery .live() function to act on elements
I have the code below which I use clone() and live() . The code
I use config.ContentsCss to load the live site's styles into the editor: config.contentsCss =
I use blogger and I install a windows live writer, I don't know how

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.