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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T11:21:06+00:00 2026-06-13T11:21:06+00:00

I have a query which returns { i-22beb65b: { columns: [time_stamp,stats_value], data:[ [42296,2310], [42297,2380],

  • 0

I have a query which returns

 {
  "i-22beb65b": {
    "columns": ["time_stamp","stats_value"],
    "data":[
      [42296,2310],
      [42297,2380],
      [42298,2356],
      [42299,1972],
      [42300,4058],
      [42301,4168],
      [42302,2882],
      [42303,2256],
      [42304,1652],
      [42305,1422],
      [42306,2144],
      [42307,1344],
      [42308,2536],
      [42309,3096],
      [42310,2618],
      [42311,3276]
    ]
  },
  "i-9c8999e5": {
    "columns":["time_stamp","stats_value"],
    "data": [
      [42296,3674],
      [42297,3474],
      [42298,3662],
      [42299,3680],
      [42300,4376],
      [42301,2892],
      [42302,3480],
      [42303,4082],
      [42304,3936],
      [42305,3802],
      [42306,4260],
      [42307,3897],
      [42308,3393],
      [42309,4177],
      [42310,3975],
      [42311,4130]
    ]
  },
  "multi": {
    "columns":["time_stamp","stats_value"],
    "data":[]
  }
}

Please, how do i run a query on this results to have something like

"i-22beb65b":[[42296,3674],[42307,3897]]
"i-9c8999e5":[[42305,1422],[42306,2144]]

Basically i want to use the information to generate a Flot graph, which only accepts arrays, so im looking for a way to split the above to using something like my example so i can easily pass to Flot

  • 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-13T11:21:07+00:00Added an answer on June 13, 2026 at 11:21 am

    I don’t know if I understood it correctly, but if you only want to redefine your results query, you can do this:

    data = {"i-22beb65b":{"columns":["time_stamp","stats_value"],"data":[[42296,2310],[42297,2380],[42298,2356],[42299,1972],[42300,4058],[42301,4168],[42302,2882],[42303,2256],[42304,1652],[42305,1422],[42306,2144],[42307,1344],[42308,2536],[42309,3096],[42310,2618],[42311,3276]]},"i-9c8999e5":{"columns":["time_stamp","stats_value"],"data":[[42296,3674],[42297,3474],[42298,3662],[42299,3680],[42300,4376],[42301,2892],[42302,3480],[42303,4082],[42304,3936],[42305,3802],[42306,4260],[42307,3897],[42308,3393],[42309,4177],[42310,3975],[42311,4130]]},"multi":{"columns":["time_stamp","stats_value"],"data":[]}}
    data.map{|k,v| {k: v["data"]}}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a query which returns two rows of data as count. I want
I have a query which returns a series of cells of data from a
I have a select query which returns a list of data and I need
I'm using Sql-Server, and I have the below query which returns all columns that
i've got a SQL query which returns multiple rows, and i have : $data
We have a query(mysql) which returns data in the following format of alphabets followed
I have a query which returns me the total data in bytes... is there
Okay, basically, I have formed a mySQL query which returns a data set all
I have a query which returns a single row with four integer columns. select
I have a query which returns 644 rows, grouped by several columns. I need

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.