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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:00:56+00:00 2026-06-16T01:00:56+00:00

I have a highcharts table with two data series that use named values. In

  • 0

I have a highcharts table with two data series that use named values. In my tooltips for one series, I want to reference a data point from the series. So the solution in this answer: How to use a different formatter on Highcharts in each curve of the same graphic? doesn’t help me. I need more than just tooltipText, I need a formatter:

For one:

formatter: function() {
    return this.x + ': ' + this.series.name +
    '<br> $' + Highcharts.numberFormat(this.y, 0);
     }

And for the other:

formatter: function() {
    return 'In ' + this.x + ' the median value was' + this.median + 
    'and the total $' + Highcharts.numberFormat(this.y, 0);                        
 }
  • 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-16T01:00:58+00:00Added an answer on June 16, 2026 at 1:00 am

    Inside formatter this reffers to the focused serie, you can add an if/else inside the formatter and return a string for each one, like the following.

    tooltip: {
        shared: false,
        formatter: function() {
            var text = '';
            if(this.series.name == 'MSFT') {
                text = this.x + ': ' + this.series.name +
                       '<br> $' + Highcharts.numberFormat(this.y, 0);
            } else {
                text = 'In ' + this.x + ' the median value was' + this.median +
                       'and the total $' + Highcharts.numberFormat(this.y, 0);
            }
            return text;
        }
    }
    

    demo

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

Sidebar

Related Questions

First I want to say that I have looked at stackoverflow and highcharts forum,
I have a highcharts that renders data according to data in my database. I
Possible Duplicate: Set Additional Data to highcharts series So I have this graph: http://jsfiddle.net/Gg3ZL/
I have this HighCharts chart that has more than 50 values on the x-asis.
I have irregular data. Chart draws well when I use highcharts : $(function() {
I have what I'd consider a relatively simple Highcharts chart that I want to
I have a highcharts line graph that shows sales data. Is there a way
I have built some highcharts charts and I am displaying them one at a
I have a highchart that I am generating the data for dynamically based on
I have a query in Rails that's extracting 3 data points: data1, data2, and

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.