score:2
Accepted answer
you can modify chart options just before passing passing them to the chart constructor by using complete
callback function (http://api.highcharts.com/highcharts/data.complete).
in your example in can look similar to this:
complete: function(options) {
// create the second series
options.series.push({
data: []
});
// move the data to the second series
var d0 = options.series[0].data,
d1 = options.series[1].data;
d1.push(d0.pop(), d0.pop());
}
live working demo: http://jsfiddle.net/kkulig/72xkzsxv/
Source: stackoverflow.com
Related Query
- Highcharts - How to make a scatter plot with multiple series from HTML table
- How to make multiple Y-axis with incoming series of data from database using Highcharts
- Plotting multiple series from HTML table generated by Ajax to Highcharts
- How to have multiple highcharts with different series data in vuejs without repeating code
- Highcharts : How do I keep the marker formatting and make the click event fire with a 5K+ point scatter plot?
- How can I make a graph with highcharts from csv file?
- Charts using Highcharts with multiple series from JSON
- Highcharts loading data from a HTML table with a title
- Highcharts with multiple series from JSON Dynamically
- how to plot multiple time series in the same graph with customized x axis
- How to update Highcharts with multiple series via JSON?
- Highcharts with multiple series from JSON
- How to hide series name from tooltip in Highcharts scatter plots for linear regression
- Highcharts how to make legends as data labels on scatter plot
- How can I specify custom end markers in a scatter series with Highcharts 9?
- Fomatting labels on Y-axis in Highcharts with Data from HTML table
- Stacked Bar type of jquery Highcharts with data from HTML Table
- Highcharts: Selecting single series from plot with multiple series
- Highcharts - Scatter plot single series with multicolor plots (points)
- Highcharts - Scatter plot: How to send information from clicks to a function with information about the click as parameters
- Highcharts Highstock How to Plot OHLC and Line Charts from One Set of Embedded CSV Data Using Series Map Tools?
- How to dynamically addEvent to Highcharts series with multiple charts?
- how to make chart real time with 2 line and get data from php with highcharts
- How to make yAxis start from a specific time with bar series in highchart?
- Plotting multiple series in single Highcharts plot from JSON
- Highchart Data from HTML table with line series
- from csv to scatter plot with HighCharts
- highcharts with dynamically adding multiple series from JavaScript array name value pair
- Highcharts Scatter plot - Add series from database as a different color
- How to render highcharts from external json for multiple series
More Query from same tag
- Highcharts: get index of the selection event
- How to add a horizontal line in Column bar chart in Highcharts plugin?
- How can i export row data from highchart to excel file and not csv?
- how to remove scroll bar in drill down highchart
- Display multiple points with exact same value in scatter HighCharts
- highcharts tooltip not moving next point
- HighStocks Series Data format
- How to access angular scope variable in JavaScript file
- highstock - adding annotations with over 1000 points
- Highchart yAxis Values
- Bind dynamic Json data in pie chart
- How to open new chart to the adjacent <div> on bar click in highchart
- how to get array or start index and end index after zoom on highchart
- Highcharts - is there a bug with stacked categories?
- Highcharts Renderer Button ID
- render a dynamic number of highcharts charts is not working
- keep fixed size of the bars in Highcharts
- Highcharts with inverted y-axis, but not inverted data?
- How to set custom color on stacked bar chart
- How I can stick together the lines on the Highcharts timeline chart?
- How to send an image in C# to client using async method
- Show custom xaxis in highchart with angular
- How to save a highChart in a specific file when clicking it in a button
- Highcharts: How to create a drilldown pie of agegroup, gender, visits?
- Trouble with integrating ng2-highcharts
- how can i create threshold chart with highcharts
- High Chart Formatting
- Highstock/Highchart scatter points in combined graph
- Highcharts: Logarithmic chart with Y Axis [100, 99.9, 99, 90, 0]
- Delete button when it's clicked javascript