score:1
Accepted answer
you can do this also in js:
var arr = [{ "revenue_value": "2000"}, { "revenue_value": "123" }, ... ]; //get it from ajax or from php directly
var data = [];
$.each(arr, function(i, d) {
data.push(parsefloat(d.revenue_value)); // gather values, and parse them to number
});
now, add your data to your options:
series: [{
data: data
}]
ps: instead of using images, copy&paste your code.. ;)
Source: stackoverflow.com
Related Query
- how do i link my sqlite(PDO) databse data to highcharts code
- How to have multiple highcharts with different series data in vuejs without repeating code
- How do I customize link style for each data link in a Highcharts network graph?
- How to make highcharts default to 0 for missing data
- How to show No Data Available Message in highcharts
- How to display No Data Available Message in highcharts
- Highcharts How to Show Loading Animation At Set Data
- How do I dynamically change a data point in Highcharts using JavaScript
- how to set dynamic data in highcharts
- How to pass json data to highcharts series?
- Highcharts how to use JavaScript variable as series data source?
- How to get multiple data series into Highcharts
- How to pass custom data into Highcharts graph click event
- Highcharts - Provide URL's for series data to open clickable link
- How to structure Angular with Highcharts and lots of dynamic data
- How get data name in Highcharts pie chart legend instead of "Slice" using array of values?
- How can i change highcharts data values by selecting from a dropdown list
- How to hide one series data info in tooltip using highcharts
- Highcharts - Global configuration with common code and unique data & Headings
- How to populate a Highcharts axis with string formatted data from a PHP array
- Highcharts Bubble Chart - How to move an individual point's data label (dataLabel) to the front/top
- How to handle HighCharts zooming with large data sets
- How can I force ticks/grid lines on a Highcharts datetime X axis to arbitrarily line up with data points?
- How to format datetime for (x,y) pair data for Highcharts
- How to format my json data for stack column chart in HighCharts
- How to avoid cropped data labels in highcharts
- How to Build a Column Chart in Highcharts with Data Entered Dynamically Within a CMS
- How To Show All Data Labels For Datetime Axis In Highcharts
- How to make Highcharts fetch data from external JSON file?
- How to input plot data into highcharts with rails
More Query from same tag
- Unable to set the Selected state in Highcharts, when point marker is disabled
- How do I add secondary axis to highstock charts?
- Labels string from Asp.net does not distributed in the highchart
- How to fill area between two serieses in Hightcharts?
- Spline graph + column chart combo issue
- Is there a option in highcharts like the 'ordinal' in highstock?
- Tree map- colorAxis Behaving Differently
- How to create india map chart using Hightcharts?
- Is it possible to load tooltip with external data with React-Native-HighCharts?
- Highcharts angular.js custom tooltip
- JSON highcharts -> empty chart
- Highcharts Graph displaying 0 value continuously : Javascript Array
- how can we draw column chart with stacked column chart in a single high chart?
- Highcharts export chart along with outer div
- Change the zoom Type dynamically?
- How To Call A Function To Make A Graph Using HighCharts in PHP
- how to remove "0%" at middle of graph?
- Highcharts - How to add background in bar series? And how to print page without lose quality?
- how to access highstock properties in this example
- Locate a dot with the same xpath in a highchart
- Javascript charting plugin which allows to select a portion of an area graph
- How to change style of selected point in highcharts?
- Selecting Datalabels from Series Data
- Semi donot chart with highcharts
- Change series data dynamically in react-highcharts without re-render of the chart
- How add series dynamically in Highcharts without button? (ANGULAR JS)
- Highcharts column chart formatting
- Sort descendants data in categories in highcharts
- Change height of Highcharts with JavaScript. By default only re-sizes on window re-size
- Change placement of "exporting" option