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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T09:17:39+00:00 2026-06-10T09:17:39+00:00

In a highchart line chart, is it possible that, given two arrays A and

  • 0

In a highchart line chart, is it possible that, given two arrays A and B, to have B displayed after A?

eg: A = [11,22,13,4,7], B=[6,11,45,7]

to have A[0] at x=0, A[1] at x=1 … B[0] at x=5, B[1] at x=6 …?

If not, how can I have two styles (solid line and dashed) for the same set of data? essentially I want to build a chart of actual data and predictions and I want the predictions to appear in dashed lines

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-10T09:17:40+00:00Added an answer on June 10, 2026 at 9:17 am

    Create two series of data – your A and B.
    Set the A line color the way you want it and then set the B line color in its fashion. Use dashStyle to set the dashes. See here:

    series: [{
            name: 'A',
            color: '#0066FF',
            data: [...]
        },{
            name: 'B',
            color: '#FF0000',
            dashStyle: 'ShortDash',
            data: [...]
        }]
    

    As to how to set up the points to start on the 5th xAxis location. Well, many ways to skin a cat here. But what I did was to pass in null values for the first 4 data points in B.
    Look at this example.

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

Sidebar

Related Questions

I have a Javascript Highchart that I'm displaying and trying to get more information
I have a highchart that I am generating the data for dynamically based on
I have a Highchart's graph that needs to be regenerated every minute. I was
I need a javascript (HTML4/5) based library to draw a line chart that has
I have an area Highchart chart. Added a click event to the chart, like
I have a chart that I would like to update whenever a form on
I have a Highcharts line chart going and I have tooltips enabled, however, I
I have a highchart column graph, in that at some time the y axis
I created a line chart in Highcharts and i want the maximum to be
I've got this JS highchart that I'm trying to pass some values into that

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.