score:2
Accepted answer
I don't know if it's the best practice, but you can store dates in an array and temperatures in an other one like this :
# Considering you already stored your data, you need to parse it now
data = JSON.parse(your_data)
# Initialize your two arrays
@dates = Array.new
@temperatures = Array.new
# Fill your two arrays
data["data"].each do |d|
@dates.push(d.keys)
@temperatures.push(d.values.to_i) # Need to be a number to work with .series of HightCharts
end
Now you have the @dates
array which contains all your dates and @temperatures
array which contains all your temperatures.
Hope this help !
Source: stackoverflow.com
Related Articles
- Highcharts displays series names but missing data points from json source
- Send JSON data to highcharts pie from asp.net MVC controller in C#
- Highcharts: How to load data from JSON to xAxis.categories and series.data?
- get json data from my controller in highcharts.js
- Highcharts bargraph from json data in angularJS
- Formatting JSON from a Pandas data frame for Highcharts within a Django template
- How to make Highcharts fetch data from external JSON file?
- How to load data from JSON to Highchart?
- Extracting data from a JSON call to a Postgres table for use in Highcharts (without PHP)
- Getting data from Postgres in JSON format in ROR into a Highcharts javascript
- passing json values to highcharts from .net code behind
- Highcharts polar chart wind rose data from JSON
- How to fetch JSON data from HTML DIV on same page for Highcharts?
- Issue with JSON data encoded from the server, not able to plot the chart
- How to get the last 10 objects only from JSON data
- How to create seriesfor Highcharts from JSON data to use
- Getting Data from PHP, JSON Highcharts?
- Tooltip in highmaps is not working .Unable to show the data from the json onto the highmap
- Highcharts chart dynamic json data from sql
- Getting data from a JSON result in to a chart (Highcharts)
- Extract data series from a JSON array for a Highcharts chart with 2 y-axis
- Generating json data for StockChart from PHP
- How do I get data from a RESTful API JSON response in React?
- Plotting Highcharts Chart from multiple data points in json
- Highcharts combination chart from JSON data
- How filter json data with date from datepicker Angular2 app
- Having trouble JSON encoded data from MySQL through Highcharts
- Set HighCharts data from JSON string with setData() function
- Create Highchart (Column chart) and read data from external json file
- clear cache from Highchart when loading data from a json file
- R Highcharter - highlight same group in multiple stacked columns chart + order groups in columns
- Highcharts - format date for x-axis as well as autoscale (data from mysql)
- Not able to render/retain graph on button click HighChart
- How do you reduce the space between pie chart and legend? (highcharts.js)
- How to color series legend in highcharts when colorbypoint is set to true
- Does Highcharts 3.0.7 allow Highmaps?
- Date / Time problem in javascript with highcharts
- How I can change the axis both side in y axis?
- Show / hide dataLabels on legend click
- HighCharts: How to draw a straight line in multiple axes like plotLines with fixed X-axis with different values
- Align Bar Graph with Negative Stack
- HighCharts: set specific border width and border color dynamically for one column
- Padding between column and y axis line - is this possible?
- How can I return list object to ajax call back function from asp.net web form?
- Add new series[0].data into already existing highchart
- Graphical representation of HTML table data using High charts
- How do you change the colour of each category within a highcharts column chart?
- Loading multiple variables using Highcharts and jquery with php
- highcharts marker: {radius: 10} on individual data points makes certain data points disappear?
- HighCharts tooltip while dragging