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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T22:54:36+00:00 2026-06-17T22:54:36+00:00

So I made this pie chart using the jQuery plugin Highcharts and what it

  • 0

So I made this pie chart using the jQuery plugin “Highcharts” and what it gives back to me is the percentage of the total fed into it. What I would also like to do is display specifically the number passed to the plugin. Is this possible and how, what I have is blocked through a login in system but this link is to the exact demo I am using:

http://www.highcharts.com/demo/pie-legend

If you view the source you will see this for the plugin:

$(function () {
    var chart;

    $(document).ready(function () {

        // Build the chart
        chart = new Highcharts.Chart({
            chart: {
                renderTo: 'container',
                plotBackgroundColor: null,
                plotBorderWidth: null,
                plotShadow: false
            },
            title: {
                text: 'Browser market shares at a specific website, 2010'
            },
            tooltip: {
                pointFormat: '{series.name}: <b>{point.percentage}%</b>',
                percentageDecimals: 1
            },
            plotOptions: {
                pie: {
                    allowPointSelect: true,
                    cursor: 'pointer',
                    dataLabels: {
                        enabled: false
                    },
                    showInLegend: true
                }
            },
            series: [{
                type: 'pie',
                name: 'Browser share',
                data: [
                    ['Firefox',   45.0],
                    ['IE',       26.8],
                    {
                        name: 'Chrome',
                        y: 12.8,
                        sliced: true,
                        selected: true
                    },
                    ['Safari',    8.5],
                    ['Opera',     6.2],
                    ['Others',   0.7]
                ]
            }]
        });
    });

});

Under “data” there is the series title and then the value. I specifically want to know what syntax to use to display the numbers like “Firefox”‘s 45.0. To display the title you use {series.name} so I am guessing its something like {series.number} but there isn’t anywhere in the documentation that specifies this so I am not sure if its even possible. Any help would be appreciated!

  • 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-17T22:54:37+00:00Added an answer on June 17, 2026 at 10:54 pm

    I actually found the answer but not through Highcharts documentation, if you’re wondering in the formatter you can reference the value you pass to the plugin with this:

    this.point.y
    

    Overall my code now looks something like this:

           plotOptions: {
                pie: {
                     allowPointSelect: true,
                     cursor: 'pointer',
                     dataLabels: {
                          enabled: true,
                          color: '#000000',
                          connectorColor: '#000000',
                          formatter: function() {
                               return '<b>'+ this.point.name +'</b>: $'+ this.point.y +' '         + Math.round(this.percentage*10)/10 +' %';
                          }
                     }
                }
           },
    

    Customize tooltip and format the number to 2 decimal places of highcharts

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

Sidebar

Related Questions

I made a pie chart using the jqPlot and the pie chart did render,
i am using the pie chart from Achart engine library: now i need some
I made this code into an executable with py2exe: # File: zipfile-example-1.py from Tkinter
I want to create a pie chart using JPgraph. in a php file i've
Here's the story so far. I've made the pie chart slices clickable so users
I've made a custom control to display a pie chart representing the completion of
I made this plugin to make the method '[0].click()' cross-browser, but I can not
I made this plugin to show reviews from yelp from my business, it is
I made this pacman game using an applet. When the applet finishes loading, it
Made this nice little loop for hiding and showing div's, works as a charm

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.