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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:07:57+00:00 2026-06-18T12:07:57+00:00

I faked a clear circle as markers by setting the fillColor the same as

  • 0

I “faked” a clear circle as markers by setting the fillColor the same as the background. It works just fine. Now, on hover, I am trying to get the circle to fill with the series color. I can’t set it as null, as then it takes the background color still.

Any ideas?

Here is my chart code (live version here:http://jsbin.com/ukabob/2/edit):

$(function () {
var chart;
$(document).ready(function() {
    chart = new Highcharts.Chart({
        chart: {
            renderTo: 'container',
            type: 'line',
            backgroundColor: '#E9E7DC'
        },
        colors: ['#A74B59', '#46C4B7', '#EDBA70'],
        credits: {
          enabled: false
        },
        title: {
            text: null
        },            
        xAxis: {
            categories: ['2013', '2014', '2015', '2016', '2017', '2018',
                '2019', '2020', '2021', '2022'],
            gridLineWidth:1,
            gridLineColor: '#FFFFFF',
            labels: {
              style: {
                color: '#000000'
              },
              formatter: function() {
                return '<div style="font-size:22px; font-family: \'Advent Pro\', sans-serif;">'+
                    this.value +'</div>';
              },
              y:25
            },
            lineColor: '#FFFFFF',
            tickColor: '#FFFFFF',
            tickLength: 30
        },
        yAxis: {
            gridLineWidth:0,
            title: {
                text: null
            },
            labels: {
              enabled: false
            }
        },
        plotOptions: {
          series: {
            marker: {
                radius: 6,
                fillColor: '#E9E7DC',
                lineWidth: 2,
                lineColor: null, // inherit from series
                symbol: 'circle',
                states: {
                    hover: {
                        fillColor: null,
                        lineWidth: 2,
                      radius:6
                    }
                }
            },
            states: {
              hover: {
                lineWidth:4
              }
            }
          }
        },
        tooltip: {
            borderWidth:0,
            borderRadius: 0
            },
        legend: {
            layout: 'vertical',
            align: 'right',
            verticalAlign: 'top',
            x: -10,
            y: 100,
            borderWidth: 0
        },
        series: [{
            name: 'Honeywell',
            data: [700,725,750,850,950,1000,1025,1050,1050,1050]
        }, {
            name: 'Bombardier',
            data: [661,758,880,990,1065,1136,1193,1241,1289,1335]
        }, {
            name: 'Embraer',
            data: [747,789,839,861,890,908,984,1030,1097,1156]
        }]
    });
});

});
  • 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-18T12:07:58+00:00Added an answer on June 18, 2026 at 12:07 pm

    I’m not sure how this should look like, but I see two ways:

    • you want empty space between lines, and on hover fill that space, in that case you can use this solution: http://jsbin.com/ukabob/3/edit As you can see, for each series you have to set marker options:

          series: [{    
              data: [],
              marker: {
                  states: {
                      hover: {
                        fillColor: yourColor
                      }
                  }
              }
          }]
      
    • you don’t want empty space between lines, in that case you can set radius of marker to 0, see: http://jsbin.com/ukabob/5/edit

        plotOptions: {
            series: {
              marker: {
                  radius: 0,
                  lineColor: null, // inherit from series
                  symbol: 'circle',
                  states: {
                      hover: {
                        fillColor: null,
                        fillColor: null,
                        lineWidth: 2,
                        radius: 6
                      }
                  }
              }
           }
        }
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two UIImageView with same frame. One imageView above second imageView now I'm
I asked a similar question before but wasn't able to get an answer. Now
Apologies for the long intro - just trying to suitably set the scene to
Fake data for illustration: df <- data.frame(a=c(1,2,3,4,5), b=(c(2,2,2,2,NA)), c=c(NA,2,3,4,5))) This would get me the
Does anyone know why std::queue, std::stack, and std::priority_queue don't provide a clear() member function?
When using .htaccess to redefine the URLs for a site, there are two clear
I've been using Chrome for a long time now and I've never (well not
I am trying to virtualize GPS device in android running in virtual-box. I want
I've faced with a weird problem now. The query itself is huge so I'm
First I'd like to make it clear, I'm not looking for a my tech

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.