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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:12:04+00:00 2026-06-13T07:12:04+00:00

I would like to use multiple x axis using HighStocks. I would like to

  • 0

I would like to use multiple x axis using HighStocks.

I would like to compare the values from different date periods.

If I am not able to use multiple x-axis I would like to use numbering for example convert all dates to points and use 1,2,3,4,...

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-06-13T07:12:05+00:00Added an answer on June 13, 2026 at 7:12 am

    To remove the date-time formatting in hishstock x axis use xAxis.labels.formatter

    xAxis: {
            labels: {
                formatter: function() {
                    return this.value;
                }
            }
        }
    

    If I have to guess, I assume that you data is across different time range and hence you are looking for multiple x-axis, else the other alternative you have is showing time elapsed since start to have a proper comparison for the two series, in this case you want to show raw values like you mentioned. Here you may also want to offset your data so that the values fall in a single x-range as follows

    function offsetData(data,offset){
        //Use the given time offset or use first timestamp
        offset=offset || data[0][0];
        var newData=[];
        for(var i=0;i<data.length;i++){
            newData.push([data[i][0]-offset,data[i][2]]);
        }
        return newData;
    }
    

    Aligning timeseries data over different timerange | Highcharts & Highstock @ jsFiddle

    Having said all the above, the option of having multiple x-axis is possible in highstock

     series: [
            {
            name: 'series1',
            data: data1,
            xAxis: 0},
    
        {
            name: 'series2',
            data: data2,
            xAxis: 1}
    
        ],
        xAxis: [{
            min: data1[0][0]},
        {
            min: data2[0][0]}]
    

    The tooltip and x-labels may need to be reformatted to fix the multiple x-axis case, I leave that to you as exercise 😉

    Multiple X-axis | Highcharts & Highstock @ jsFiddle

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

Sidebar

Related Questions

I'm using Javawebparts Ajaxparts and would like to use one axis event multiple times
I would like to use the wikipedia API to return the extract from multiple
I would like to use the logout function from Django but not sure how
I am using jQuery ColorPicker Plugin and I would like to use this multiple
I would like to be able to use multiple form field widgets for the
I'm using Google CSE and would like to use multiple redefinements in a query,
I would like to use the following class across multiple modules without needing log
I would like to use Akka to implement a multiple-readers / one-writer pattern on
I would like to use the form_for helper multiple times for the same model
I would like to know how can I use jQuery to select multiple items

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.