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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:11:33+00:00 2026-06-16T03:11:33+00:00

I have sample code for question here: http://jsfiddle.net/pzamora/ztxPr/1/ I have different colors in my

  • 0

I have sample code for question here: http://jsfiddle.net/pzamora/ztxPr/1/

I have different colors in my series, however I need them to appear in the legend

series: [{ name: 'V Genes',
        data: 
        [
            { 
                count: 18320.0, 
                y: 0.92, 
                color: '#3D96AE' 
            }, 
            { 
                count: 1337.0, 
                y: 0.17, 
                color: '#3D96AE' 
            }, 
            { 
                count: 33970.0, 
                y: 1.71, 
                color: '#4572A7' 
            }, 
            { 
                count: 1221.0, 
                y: 1.06, 
                color: '#3D96AE' 
            }, 
            { 
                count: 22073.0, 
                y: 1.11, 
                color: '#4572A7' 
            }, 
            { 
                count: 8331.0, 
                y: 0.42, 
                color: '#3D96AE' 
            }, 
            { 
                count: 64974.0, 
                y: 3.27, 
                color: '#4572A7' 
            },
            { 
                count: 9532.0, 
                y: 0.48, 
                color: '#3D96AE' 
            }, 
            { 
                count: 18106.0, 
                y: 0.91, 
                color: '#4572A7' 
            }
        ]
    }]

..I matched x values with the category position but I am not getting all my data displayed on the chart

@jsfiddle: http://jsfiddle.net/pzamora/phrP7/4/

  • 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-16T03:11:35+00:00Added an answer on June 16, 2026 at 3:11 am

    You could do the following:

    1. Split data into two series
    2. Add color for the legend in each series
    3. Add x parameter to each value so they don’t overlap

      series: [{ name: 'X Genes', color: '#3D96AE',
          data:
          [ 
              {
                  count: 18320.0,
                  y: 0.92,
                  color: '#3D96AE',
                  x: 0
              },
              {
                  count: 1337.0,
                  y: 0.17,
                  color: '#3D96AE',
                  x: 1
              },
              {
                  count: 1221.0,
                  y: 1.06,
                  color: '#3D96AE',
                  x: 3
              },
              {
                  count: 8331.0,
                  y: 0.42,
                  color: '#3D96AE',
                  x: 5
              },
              {
                  count: 9532.0,
                  y: 0.48,
                  color: '#3D96AE',
                  x: 7
              }
          ]
      },
      { name: 'V Genes', color: '#4572A7',
          data:
          [
              {
                  count: 33970.0,
                  y: 1.71,
                  color: '#4572A7',
                  x: 2
              },
              {
                  count: 22073.0,
                  y: 1.11,
                  color: '#4572A7',
                  x: 4
              },
              {
                  count: 64974.0,
                  y: 3.27,
                  color: '#4572A7',
                  x: 6
              },
              {
                  count: 18106.0,
                  y: 0.91,
                  color: '#4572A7',
                  x: 8
              }
          ]
      }]
      
    4. Add stacking: 'normal to the plotOptions so that the values are in the middle of each column.

      plotOptions: {
              column: {
                  cursor: 'pointer',
                  stacking: 'normal'
              }
      },
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have sample code for question here: http://jsfiddle.net/MuydK/ The problem relates to legend title
I have a fiddle here: http://jsfiddle.net/justinboyd101/4nrbb/ Here is my question: Why are my console.log
Here is a fiddle: http://jsfiddle.net/5s7vv/ What I want to do is have 2 buttons
I have the following simple code: http://jsfiddle.net/QUBCq/ You can see that I have 3
My question is simple. First off, take a look at this code: http://jsfiddle.net/Jk8Nr/ All
I have -- what I think -- is a simple question. Here's my code:
I have downloaded sample code from Apple Center.I also have gone through following question:
This feels like an extremely n00b question, but here goes... I have a series
i have this simple question please. I have this part of code which sets
Question simple and quick: I have started to use Netbeans to write some code

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.