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 9174377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:44:46+00:00 2026-06-17T16:44:46+00:00

Here is a picture with my problem. After the chart is drawn the xAxxis

  • 0

Here is a picture with my problem. After the chart is drawn the xAxxis is exactly 1 one to late ( if it is 12:20 -> in the chart it is 11:20 ) … but when i zoom in the chart and after reset zoom it is normal!

What could be the problem ?

Here is a picture with the problem

var chart;
// draw chart
$(function(){   
   $.getJSON('data.php?name=<?php echo $name; ?>&mysqltablename=<?php echo       $mysqltablename; ?>&datatabletyp=<?php echo $datatabletyp ?>', 
   function(data) {  
   chart = new Highcharts.Chart
   ({
  chart: { renderTo: '<?php echo $tabname; ?>', zoomType: 'x',  type: 'line', width:800 },   
  credits: { enabled: false   },
  plotOptions: {  series: { marker : { enabled: false, states: {  hover: { enabled: true  }  }   } }   },
  xAxis: { type: 'datetime' },                             
  title: { text:' '     },   
  yAxis: { title: { text: ''  } },
  legend: { enabled: false },
  series: [{ name: '<?php echo $tabname; ?>', data: data }], 
  tooltip: { valueDecimals: 2 } ,
   });
   Highcharts.setOptions({ global: { useUTC: false } });
   Highcharts.numberFormat(this.y, 2, '.', ',');
});
});
  • 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-17T16:44:47+00:00Added an answer on June 17, 2026 at 4:44 pm

    I had a similar problem with HighCharts.

    The Axis Extremes are guessed on the first load so you will have to set the Extremes of the Chart and redraw.

    This should work:

    var chart = new Highcharts.Chart(opts, function(chart) {
        if (min && max) {
            chart.xAxis[0].setExtremes(min, max, true, true);
        }
    });
    

    http://api.highcharts.com/highcharts#Axis.setExtremes%28%29

    Also you should setOptions before creating the chart

    Edit: Now that I think about it that could be the real problem:

    The Chart is created with useUTC = true and because of that the Dateformatting is off one hour. On the Zoom the Chart is redrawn and gets the updated Settings.
    So be sure to move your global settings to the top 🙂

    http://api.highcharts.com/highcharts#Highcharts.setOptions%28%29

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

Sidebar

Related Questions

I am making a picture preview with jCarousel (http://sorgalla.com/projects/jcarousel/), but faced with one problem:
I have my signed assemblies here, in one of them I have a picture
I don't know if it's a bug or not, but here's my problem: I
In my application I sometimes generate a new picture. After reading comments here I
This is a big-picture question... but I also have details on the problem I
So here's my problem: I've created a custom AVCaptureSession that takes pictures. I'm not
I'm just looking a big picture idea here; I can google specifics once provided
Stack Trace Picture of stack trace here Values aren't being passed to the other
I have got a big problem. After searching through the internet, I didn't find
I am using the excellent jQuery coverflow plugin ContentFlow but I have a problem

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.