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
- External JSON into Highcharts Line Graph - Date Parsing Issue
- HighCharts Export Server not creating image
- how to display hctreemap2 unique levels?
- How to draw vertical lines on Highcharts graph?
- highcharts and wordpress
- What is the fastest way to preprocess data?
- generate valid JSON for highcharts on click
- Different color for different data labels
- Combine 2 series in one Chart (not stacked)
- How to change the colour of the legend column block in Highcharts?
- Is there a better way to debug HighCharts issues
- Highchart area with date pointStart
- Horizontal bar chart with outline behind bar
- How To Use Highmaps Data In JSON Not Labeled 'value'
- Highcharts - selection error with live data and different time intervals
- Highcharts Dynamic Drilldown using json
- Highcharts ColumnRange - Display time range on yAxsis instead of Date
- enable / disable CrossHaires by external button
- Highcharts map drag & move on y axis?
- Exporting Highchart Live Data to Table
- Highcharts display grid over plot with z-index
- Highcharts donut separate tooltips for inner and outer pie
- highchart stacked column total data per categories
- How to remove High Charts Gird Lines
- Adding a JSON Response to a HighCharts Graph
- HighCharts Render Annotated Queryset in Jinja2 Template
- Issue on Styling Highcharts.js Categories Title
- Using Highcharts.js to create a punch card style graph
- Highcharts how to add treemap upon click event on line chart?
- How to add an item to Highcharts legend?