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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T10:36:56+00:00 2026-06-04T10:36:56+00:00

I am loading data stored in a MySQL Database. The chart doesn’t show up

  • 0

I am loading data stored in a MySQL Database.
The chart doesn’t show up on the webpage, but it doesn’t show any other warning.

My PHP webpage returns a JSON encoded header with the following information:

["John Doe","2","Jane Doe","3"]

The script that loads the information is the following:

var chart;
function requestData() {
    $.ajax({
        url:'includes/bin/get_leaders.php',
        success: function(point) {
            alert(point);
        var series = chart.series[0],
        shift = series.data.length > 20; // shift if the series is longer than 20
        chart.series[0].addPoint(point, true, shift);
    },
    cache: false
});
$(document).ready(function() {
chart = new Highcharts.Chart({
    chart: {
        renderTo: 'container',
        type: 'bar',
        events: {load: requestData}
    },
    title: {
        text: 'Top Agents'
    },
    xAxis: {
        type: 'int',
        title: {text: null}
    },
    yAxis: {
        min: 0,
        title: { text: 'Sales this Week', align: 'low'}
    },
    tooltip: {
        formatter: function() {
            return ''+ this.series.name +': '+ this.y +' sales';
            }
        },
    plotOptions: {
            bar: {
                dataLabels: {
                    enabled: true
                }
            }
        },
    legend: {
            layout: 'vertical',
            align: 'right',
            verticalAlign: 'top',
            x: -100,
            y: 100,
            floating: true,
            borderWidth: 0,
            backgroundColor: '#FFFFFF',
            shadow: false
        },
        credits: {
            enabled: false
        },
    series: [{
        name: 'Sales'        }]
});        
});
});

Any clue what’s going on?
Thank you!

  • 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-04T10:36:57+00:00Added an answer on June 4, 2026 at 10:36 am

    Looks like you are passing in a [“string”, “number”, “string”, “number”].
    What you want is {2, 3} for your series and then for your xAxis to use a category list of {“John Doe”, “Jane Doe”}.

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

Sidebar

Related Questions

I'm loading data from a MySQL database into a C# .NET application. The data
hii every one i am using following code to loading data stored in data
I'm trying to load data into a MySQL database using the LOAD DATA LOCAL
Currently I am loading data from a previous session into my application using the
We are loading data from db: var somethings = Context.SomethingSet.ToList(); Then someone deletes or
I am using a ProgressDialog for Loading data..... Can I set it up for
I have a flash file that is loading data from XML file. After I
I'm loading JSON data (array of objects) via service, onReady, and want to display
Summary of the issue: When I am loading some data into my iPhone application
I'm looking for the best way of loading formatted data in VBA. I’ve spent

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.