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

  • Home
  • SEARCH
  • 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 8100377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T22:43:25+00:00 2026-06-05T22:43:25+00:00

I have a very simple highcharts js chart, which has dates on x-axis and

  • 0

I have a very simple highcharts js chart, which has dates on x-axis and values on y-axis. It works fine with this code:

chart = new Highcharts.Chart({
    chart: {
        renderTo: 'chart_container',
        type: 'line',
    },
    xAxis: {
        type: 'datetime',
            dateTimeLabelFormats: { 
                day: '%e / %b'              
            }
    },
    yAxis: {
            title: {
                text: null
            },              
            tickInterval: 1,
            tickmarkPlacement: 'on',
            min: 1,
            max: 5
    },
    series: [{
            name: 'serie_1',
            pointInterval: 24 * 3600 * 1000, // one day
            pointStart: Date.UTC(2011, 11, 22),            
            data: [
                2, 3, 5, 4, null, 4, 4, 4, 4, 3, 2, 2, 1, 2, 2, null               
            ]
   }]
});

I also have an event that changes the chart’s data when some action is triggered:

function reloadChart(){
    $.get('/my/ajax/link/', { ajax_param: 10 },                                         
        function(data){
            // HOW TO GET THIS TO WORKS??? series.pointStart is readonly
            chart.series[0].pointStart = data.newPointStart;

            chart.series[0].setData(data.data, true);
        }
    );
}

My question is: How can I update my series[0].pointStart after chart has been initialized?

  • 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-05T22:43:25+00:00Added an answer on June 5, 2026 at 10:43 pm

    I would rethink this. It would be easier to create an x,y points from your y-value series instead of using the pointStart and pointInterval options.

    startDate = Date.UTC(2010, 0, 1);
    createData = function(beginDate){
        someData = [];
        for (var i = 0; i < 11; i++){
         someData.push([beginDate + (3600 * 1000 * 24 * i), Math.random() * 100]);
        }
        return someData;
    }
    
    ....
    
    series: [{
            data: createData(startDate)
        }]
    

    Then in your function:

     nextDay = function(){
        startDate += 3600 * 1000 * 24;        
        chart.series[0].setData(createData(startDate), true);
     }
    

    Working fiddle here.

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

Sidebar

Related Questions

I have very simple code: List<String> list = new ArrayList<String>(); String a = a;
I have a very simple table with two columns, but has 4.5M rows. CREATE
I have a very simple Mac Cocoa app that just has a Web View
I have a very simple python script that should scan a text file, which
I have very simple query like this: SELECT * FROM `all_conversations` WHERE `deleted_1` !=
I have very simple NetBean Project. It include this controlller line, @RequestMapping(value = /MyDoc.htm,
I have very simple query that calls a UDF which splits a field by
This is a very simple task in every language I have ever used, but
I have very simple form, with input like this: <input id=my_id multiple=true type=file name=image_name[]
I have very simple code and I am not sure why the Foo function

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.