score:2
Accepted answer
Use the following to get your array parsed to js.
var data = jQuery.parseJSON(' <?php echo json_encode($yourArray, JSON_NUMERIC_CHECK); ?> ');
Than you can put it inside your serie like the following.
series: [{
'name': data.name[0],
'data': data.data[0]
}, {
'name': data.name[1],
'data': data.data[1]
}]
Source: stackoverflow.com
Related Query
- Using PhantomJS to create HighCharts grahps server side for use in PDF creation (PHP) - results in exit code 11 from PHPs exec();
- Highcharts - Global configuration with common code and unique data & Headings
- HighCharts Stock Chart error code 18
- highcharts change rendered image source on click
- How do i add mouse wheel code in Angular2 highcharts in typescript
- how to display 2 same highcharts without duplicate the code
- Use of DotNet HighCharts dll to make charts in code behind
- How to edit tooltip in Highcharts C# code
- what means ${demo.css} in example files of highcharts ? That piece of code seems to be literal
- passing json values to highcharts from .net code behind
- how to use highcharts tooltip formatter in python code
- passing formatting JavaScript code to HighCharts with JSON
- Highcharts display label for pie chart using html table as data source
- Simple, Open source PHP wrapper for Highcharts library
- Add Source to Highcharts Export CSV
- Include additional highcharts source data in angular2 app
- Conditions within highcharts code
- Strange character in the Highstock source code
- What's the code in Highcharts such that the bars (columns) in the same group use the same color?
- Highcharts series visibility with csv data source
- HTML table as data source for highstock charts using highcharts
- Including source for Alchemy js breaks Highcharts js
- Highcharts SVG Export from Python Server Side Code
- How to have multiple highcharts with different series data in vuejs without repeating code
- Converted PHP code that built an array to JS and now highcharts doesn't work - what did I do wrong?
- Using a flask variable as data source for highcharts
- highcharts basics
- Highcharts Interactivity between plots - looking for code improvements
- Why code of Horizonal line(y-axis) on a single in Highcharts get applied to all other charts integrated with Webdatarocks
- Error: Data source must be a URL for refresh | console error | javascript | Highcharts
More Query from same tag
- OHLC tooltip getting duplicated to volume chart also in stock chart (highstock)?
- Is possible to add a frame in 3d chart?
- Highchart Stock gui does not work in Angular 8
- .csv-file in Highstocks
- Highchart column range with hour
- highcharts, how to prevent series hover event to cause hover event on nearest point(marker)
- Highcharts - Tooltip and series name are out of their boxes in chrome
- How to create an inner circle pie chart in Highcharts
- Highcharts stacked bar chart Likert scale centering
- Highcharts : how to display only days on xaxis?
- Pass a PHP string (which represents a JS function) through json_encode()
- Highcharts extracting x and y coordinates from event.target
- highcharts - how to controle slice pie from bottom
- Stockcharts - Adding an offset to avoid drawing points at the edge
- Highcharts PlotLines using specific value from JS array
- Highcharts X-Axis Alignment
- Highcharts not rendering small dataset
- How to get series highlight on hover in highcharter?
- R Package Highcharter: How do I drilldown to multiple series stacked column graph?
- Exporting highstock chart data shows data discrepancies
- Adding export-to-csv option onto Highcharts chart as a client user?
- HighCharts Heatmap with bubbles
- Highcharts nearest point tooltip not show due to undefined series
- How to zoom to specific point in Highmaps
- How to use html/unicode symbols as marker-symbols in highcharts?
- HighStock - Add series dynamically to navigator
- Highcharts dual axis set yRange
- Highcharts chart option backgroundColor:'transparent' showing black on IE 8
- How to add a label to axis
- Highcharts - detect when render (or redraw) event is caused by a resize/reflow?