score:1
Accepted answer
You can add categories
to your hc_xAxis
to make an order like this:
library(highcharter)
dta |>
hchart(type = "column", hcaes(x = "event", y = "n", group = "sociodemographic_var")) |>
hc_yAxis(title = list(text = "%"), max = 115, endOnTick = FALSE, stackLabels = list(enabled = TRUE)) |>
hc_xAxis(title = "", categories = levels(dta$event)) |>
hc_plotOptions(series = list(stacking = "percent"))
Output:
Source: stackoverflow.com
Related Articles
- xAxis order of R highcharter column plot
- How to change the palette colors of a highcharter column plot which depends on a variable?
- R Highcharter Sankey nodes column property trouble
- Add a gap between the second and third series in a Highcharts column plot with four series displayed
- How to know information about the clicked bar in highchart column r shiny plot
- Highcharts Plot Reciprocal Values For Column Height
- Highchart - Plot missing DateTime values on xAxis
- hide a particular column on xAxis highchart Column Chart
- R highcharter plot points color based on value
- Plot inside a loop using highcharter
- In Highcharts, how to set width of plot bands on y-axis in column chart?
- How to make 3 levels drilldown plot in R highcharter (possible other packages)
- Highchart: Center text in plot option in column chart
- Highcharts - stacked column - order series index dynamically for each category
- Highcharter - move data label to top of column
- Xaxis data given to highcharts in descending order but still xaxis appears in ascending order
- Column chart with negative values and categories on xAxis in HighCharts
- highcharter xaxis crosshair tooltip labeling all series datapoints
- Highcharts Display Xaxis plot line
- Adding a pattern fill to a black and white column graph in Highcharter
- How to create a highcharts dot plot graph? - R Highcharter
- Use.js to set the height of highcharter plot and shinydashboard box
- Strange character in the Highstock source code
- Prevent xAxis of column highchart taking negative labels on hiding one of other series(on legendItemClick event)
- How to plot a line and column chart in react-highstock?
- In highchart of column type and xaxis of datetime type showing more ticks for month data
- How to plot a Stacked column chart using highcharts?
- Highcharts Column Chart overflowing the plot area
- Highcharts - column chart has space between bar and xAxis
- Column based Highchart drilldown series assign color code to each column
- onclick event when part of highcharts funnel is clicked
- How to plot a highstock single line series graph from ajax data
- Highcharts Export PDF offline by clicking external button
- Create a vertical navigator to zoom in Highchart
- Highcharts set slice size of pie chart
- Plotbands in Highcharter - When x axis is date
- Sort the series data for every X-Axis in Highcharts
- Highcharts React update animations with datetime axis
- multiple Highcharts using PHP include command
- How To disable "shadow-gradient" of format?
- Multiple pie charts in 1 graph with split tooltip Highcharts.js
- Highcharts - equal spacing between X-axis values having tickPositioner
- The time interval from the chart highcharts
- Make gap size proportional to gap in series data
- How do I create a pie chart from VML shapes?
- how to set the height of subtitle in highchart without defining height of the container?
- Highstock table data: navigable with the range selector and the navigator - scrollbar
- How to change highcharts radius according to data
- Append a Jade file to a div in parent Jade file on Button click
- How can I read an Excel File with JavaScript (without ActiveXObject)