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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:42:31+00:00 2026-05-26T10:42:31+00:00

The problem is as follows: If I have a very sparsely populated date time

  • 0

The problem is as follows:

If I have a very sparsely populated date time x axis with column chart type then some columns are getting cut.

Here is a fiddle example: http://jsfiddle.net/qzqnX/

In this example, I have two columns and the column on extreme ends is getting cut.

If I increase data to have 3 columns, one of the series gets completely hidden.

Here is fiddle example: http://jsfiddle.net/GrKKt/

I would like to have the columns displayed within the plot area and not get partially cut or hide. It would also be nice if they draw with some margin from the plot area extremities. Thanks.

  • 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-05-26T10:42:31+00:00Added an answer on May 26, 2026 at 10:42 am

    I have found two solutions to the problem above:

    First solution as given in first answer is to add nulls. I have found that adding two nulls is optimum and works fine. Even if you have lots of series in your data.

    Example: http://jsfiddle.net/vwzeP/

    Second solution is to add minPadding, maxPadding to xaxis. There is no need to add nulls to your input either. But highcharts is a little inconsistent in its behavior for padding. So you need to apply different values for min/maxPadding properties. Once you have more than 6 points on datetime x-axis the column width are automatically according to plot area and you can set minPadding/maxPadding to their default of 0.01.

    good padding values are following:

    switch (numberOfPointsInDataArray) {
            case 1:
            case 2:
                padding = 0.25;
                break;
            case 3:
                padding = 0.13;
                break;
            case 4:
                padding = 0.075;
                break;
            case 5:
                padding = 0.05;
                break;
            case 6:
                padding = 0.03;
                break;
        }
    

    Example of padding with 2 points in data array: http://jsfiddle.net/J7zsk/

    hope this helps others.

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

Sidebar

Related Questions

The problem is as follows: I have the following XML snippet: <time format=minutes>11:60</time> The
I have two very similar programs, as follows. Program A: no problem when running,
Newbie here! My problem is as follows: I have a dynamically populating ul where
My problem is as follows. I have an array of objects in the form
I have a mysql problem, my query looks as follows but not complete SELECT
My given problem is follow: I have an object with x columns and every
A minimal code that reproduces the problem is as follows: <div class=cell> <input type=text
My problem is as follows. I have a CSV file (~100k rows) containting history
I have the very common problem of creating an index for an in-disk array
This is very strange. I have an XAML file that looks as follows... <Window

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.