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 listenTo afterSetExtremes event in Highcharts from Backbone
- Highcharts: How to change or redraw a chart when a click event occurs on an another chart?
- Changing barchart dynamically using dropdown
- How to create dynamic update spline Highcharts chart?
- Dynamically Transform Data with User Input (Highcharts, JavaScript,Django)
- Highstock Y-Axis labels overlap eachother
- Heatmap don't show all categories in yAxis
- Highcharts redraw previous line still exist
- the datatime value displayed not correct on highchart
- How to push Json data to line chart function
- Highcharts Data Migration From Older Versions
- Add Annotations to time series with highcharter
- multiple Drilldown in Highcharts using values from database in ruby on rails
- Django Chart using Highcharts
- Make cursor pointer in Highcharts
- How to change the point color to red that is lowest point plotted in the graph and 2nd issue is animation effect is not supporting in the ie10,ie8
- Highcharts datalabels outside of plot area?
- Highlighting(animate) a piechart slice from an HTML element (mouseover)
- Vuejs Data Update
- How we design 3d column chart in highcharts like in pic?
- HighCharts adding a multi-select dropdown for each column of a series
- Highcharts: basic column chart not showing correct color
- Yii Highchart extension - Change color based on value
- HighChart Title text implemented HTML Style is not applying in exporting files
- Highcharts adding new data points in VueJS / Vuex
- How an I pass an array that is obtained within ngOnInti() to a graph that is outside of that function?
- how to : specify colors for multiple axes chart?
- median and standard deviation chart using highcharts
- Making a dataLabel draggable
- Custom tooltip names Pie Chart