score:1
Accepted answer
currently you have both indicators in one stack group which makes the values in second indicator to add up with first one. if you want them to look like the second images in your question you should seperate their groups using stack: value
option in their series. somthing like this: (note stack: 0
in indicator1 and stack: 1
in indicator2)
mychart.addseries({ type: 'line', name: 'indicator1', linewidth: 0,
data: [3.3, 2, 3, 6, 3], stack : 0, pointplacement: 0.3, showinlegend: true,
datalabels: { enabled: true, allowoverlap: true, verticalalign: 'top', align: 'right', color: '#ff0000', style: { textoutline: false } },
marker: { symbol: 'circle', fillcolor: '#ff0000' },
states: { hover: { enabled: false }, }
});
mychart.addseries({ type: 'line', name: 'indicator2', data: [3.3, 2, 3, 6,
3],stack:1, pointplacement: -0.3, showinlegend: true, datalabels: { enabled: true,
allowoverlap: true, verticalalign: 'bottom', align: 'right', style: { textoutline:
false }, x: 0, y: 0 }, linewidth: 0, marker: { symbol: 'diamond', fillcolor:
'#000000' }, states: { hover: { enabled: false }, }
jsfiddle: https://jsfiddle.net/3pfm8laz/
api reference: https://api.highcharts.com/highcharts/series.line.stack
Source: stackoverflow.com
Related Query
- Highcharts - How do I keep both line points in from splitting between the two bar charts
- How to cut off the line in highcharts between two pointI
- Stop Highcharts from cropping the series line between points on the x-axis
- How can I delete all of the points from a highcharts series
- Highcharts: How to provide a custom stack label in highcharts bar graph from within the stackLabel formatter?
- Highcharts basic bar graphs. How to remove strokewith from the bars
- Highcharts - programmatically draw a line or graphic between two related points
- How do I use dates from a LinkedHashMap for the x-axis on a Highcharts line graph (using Thymeleaf)?
- Highcharts how to align two charts yAxis on the same line
- Highcharts line chart: point should be clickable, the line between the points not. Is that possible?
- How to make hover effect for two bar in highcharts at the same time is there any way by using css or any inbuilt method to achieve this?
- Highcharts Chart Bar - How can I display in the chart, only one column from my HTML table?
- How to modify the code so that Highcharts graph does not cover fixed navigation bar at the top of the page?
- what should be the initial dataset from millions of data points for stock line highcharts
- How to reduce the space between Bars with a fixed bar width in Highcharts column chart?
- Highcharts how do i keep space between series the same but increase space between categories?
- How to remove the gap between the bar in my barchart with barwidth defined in highcharts
- How do I remove the pale line between events in a Highcharts columnrange chart?
- Highcharts: How to use both axis - bar coming from y axis and spine coming from the x
- how to set the interval of points on Y - Axis highcharts
- How replicate the value of Y Axis on both sides of the axis in Highcharts
- How can I remove the white border from HighCharts pie chart?
- Highcharts - How to remove connecting line between fixed tooltip and point
- Highcharts Bar Chart - How to set the minimum bar width/length
- How to set the z-index of points on a HighCharts scatter plot?
- Highcharts - how to remove "Open in Highcharts Cloud" from the export menu
- In highcharts's stacked bar chart, how can I remove the white space between different
- How do I remove the color swatch from my HighCharts legend without affecting the column?
- How to add new points to highcharts after plotting the first 'n' points?
- How can i keep the color the same in highcharts
More Query from same tag
- Sharing variable between functions
- HighCharts: Can I call the Exporting functions directly?
- Setting the width of a single bar in Highcharts
- Modify a csv file line by line
- Highcharts plugin/extension that runs after the chart has loaded
- Angularjs highcharts and modal windows clear previous chart
- How to add html content above series(Chart type - line)
- Timelapse graph representation
- Including a chart and selection box as "widgets" in other webpages?
- Highcharts Label redraw
- compare chart series array with new array to determine adds/removes
- Highcharts - yAxis dissapears, when zooming in to area with unknown values
- Highcharts: TreeMap Select State not working
- Parsing data in Highchart
- regroup 2 lines in tooltip (among many other lines) highcharts
- Highchart is only showing properly at localhost
- Using Highcharts, I want to overlay a line showing the optimal value for a bar
- Highchart by aggegated data
- Highcharts data grouping method for objects
- HighChart JavaSCript two spline updating in the same graphic
- Unusual gradient inside highcharts splinarea
- highcharts have data Labels only on some points
- HighCharts - dynamic graph & no tick mark on the right hand side dual axis
- Dynamically populated highcharts data and database storing
- show data of highcharts from database table laravel
- Highcharts: legend on bottom with custom marginBottom already
- How to get the DOM properties from event.target, so I can compare them?
- How to remove margin gap in area spline chart for highcharts?
- How to add mean in a boxplot made with highcharter?
- Knockout.js calling method outside of view model