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 Query
- 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
More Query from same tag
- How to spread Y Axis values in "area" chart using HighCharts
- Highcharts and OpenLayers not rescaling after Bootstrap layout change
- how to have a chart with no spline and no interpolation in Highcharts?
- Getting value from series click event, and display on legend
- Highcharts 7.0.3 with Xpages/dojo
- Benchmarking HighCharts, D3 and Canvas plotting
- High Charts - dynamically place elements within tooltip
- Highcharts causing IE to run slowly
- How to Check and Uncheck all the Legend elements in HighCharts Linechart?
- highstock Plotbands to mark certain Daytimes on X Axis
- Highcharts possible to push xAxis categories through for-loop?
- Highcharts Change column color on hover
- Highcharts - where to place style and changing style for one wedge in a pie chart
- Using global data in High Charts point click custom function in R Shiny
- Invalid dates in Highcharts with data loaded by JSON
- Tool tip formatter for donut highcharts
- How can I render full chart using PhantomJS?
- Jumping on the x axis in Highcharts
- Changing a pie chart into an arrow ring chart
- Section wise labeling in highchart
- Correct format of using csv data to plot highchart
- How to set yAxis min/max in Highcharts synchronized chart with JSON
- How can I make an AJAX request to a Highcharts rendering server running on a different port in production?
- Highcharts manually added svg elements not following stock graph on pan
- Django - highcharts changes dot i comma
- Is it possible to have a highcharts timeline scrolling to dynamically show past events?
- Gauge chart, how to decrease width of serie?
- highcharts - need to auto scroll on x-axis on every 5 seconds with hide scroll bar
- how to Extend highchart plot band outside graph using android wrapper
- How to plot data in Highcharts where time and value are swapped?