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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T12:17:12+00:00 2026-05-30T12:17:12+00:00

I am working on a new project and using highchart for chart creation .

  • 0

I am working on a new project and using highchart for chart creation. I created a json file with some data from database:

[{"date": "2012-02-23", "number": 2}, {"date": "2012-02-21", "number": 4]

How do i can add this data to Highcharts->Chart->Series->Data?

  • 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-05-30T12:17:13+00:00Added an answer on May 30, 2026 at 12:17 pm

    Find the code below. This displays the column chart for the data present in the JSON.

     <html>
        <head>
        <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" type="text/javascript"></script>
        <script src="http://code.highcharts.com/highcharts.js" type="text/javascript"></script>
        <script type="text/javascript">
        jQuery(document).ready(function(){
                var data=[{"date": "2012-02-23", "number": 2}, {"date": "2012-02-21", "number": 4}];
                var chart = new Highcharts.Chart(
                  {
                    chart:{
                        renderTo: "container", // the div id where you want to dispaly the chart
                        type: 'column',        // type of chart as colum chart, it can be anything-'bar','pie','column' etc.
                        height: 300
                    },
                    title: {
                        text: "Numbers on two different dates"
                    },
                    xAxis: {
                        categories: [data[0]["date"],data[1]["date"]]
                    },
                    yAxis: {
                        title: {
                            text: 'Numbers on date'
                        }
                    },
                    series: [{name:"numbers",data:[data[0]["number"],data[1]["number"]]}]
                }  
            );          
        });
        </script>
        </head>
        <body>
        <div id="container">
        </div>
        </body>
        </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm coming from a MS SQL Server background. Working on a new project using
I'm working on a new project and I'm using the repository pattern, I have
I am working on a project using rails 2.1.1. With the new release of
I am working on a web service project using gsoap. I am new to
I'm working on a new project and for some reason decided to create two
I'm working on small open source project for developed Windows. I created new project
I'm working on a new project right now and am thinking of using an
I'm working on a new project, using Apache's mod_rewrite and PHP to get pretty
I have created a new project using devise login according to Ryan Bates' railscast
I'm working on a new project and we're using a pretty nice stack. NHibernate,

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.