8,415 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
138
views
Creating a bar graph with categories derived from multiple columns
I have generated the following summary of means and SDs for two parameters, SAR and ER, for several multi-column categories:
structure(list(category = c("DIT GROUP\nCR 16.0005\nADB", "...
1
vote
1
answer
47
views
plotly grouped bars with make_subplots
I am trying to have my subplots be grouped, rather than stacked. However, fig.update_layout({"barmode": "group"}) does not seem to work.
My df as here:
import pandas as pd
import ...
0
votes
1
answer
47
views
How to plot each operating room's utilization in an AnyLogic bar chart when ORs are inside a ResourcePool?
I am building a hospital simulation in AnyLogic in which the agent is the patient and where each operating room (OR) is a resource type contained inside a ResourcePool. For having the surgery ...
2
votes
0
answers
108
views
How can i fix the Position_stack function that does not work in R?
I am using ggplot2 to create a horizontal bar chart. I use position_stack() function from the ggplot2 library version 4.0.0 on a Windows 11 computer.
packageVersion("ggplot2")
[1] ‘4.0.0’
...
6
votes
1
answer
99
views
How can I ensure legends take up the full width?
I am trying to customize the behavior of a horizontal legend in Plotly.js for varying viewport widths.
Minimal example:
<head>
<script src="https://cdn.plot.ly/plotly-latest.min.js&...
1
vote
1
answer
80
views
Creating a stacked barplot for two categories with variables sorted from highest to lowest, variables have different values in each category [duplicate]
I have a dataset cars which describes how common are brands of cars sold at two dealerships.
cars <- data.frame(dealership = rep(c("a", "b"), 3), car = rep(c("toyota", ...
0
votes
1
answer
132
views
Equidistant Y-Axis Label for Stacked Bar Graph - R [closed]
I'm currently attempting to create a graph that shows the performance of different algorithms. However, I can't seem to get the y-axis working quite right. The labels are too close together making the ...
2
votes
1
answer
158
views
Chart Title is in middle/between my bar graph plotted using openpyxl BarChart module
I am using openpyxl (python module) to dynamically plot a bar graph with data from respective cells, but the chart title gets in between my bar graph.
Code used to create the bar graph:
#...
1
vote
0
answers
127
views
How to reduce compilation time for complex ggplot graphics
I have a graphic in ggplot that takes too long to compile. Actually, the plot does not appear and I have to force R to stop the compilation. As far as I know, the code has no error, but perhaps due to ...
1
vote
1
answer
43
views
Set color scheme for each chart in column layout individually
Consider the following example of a bar plot in horizontal layout. In each chart the y and color channels both encode column "y" of df.
import altair as alt
import numpy as np
import polars ...
1
vote
1
answer
43
views
Set color map for bar plot while using the `color` encoding channel
In the below example, I create an bar plot, with the height and the color of the bars both encoding the y column of df. The bars then appear in different shades, for very light to very dark; in blue.
...
-1
votes
0
answers
62
views
How can I make a stacked, grouped bar chart using ggplot2 that represents data accurately? [duplicate]
I am trying to make a stacked, group bar chart using ggplot2 that represents data of the type below:
vec_a <- c("a","a","a","b","b","b",&...
1
vote
2
answers
99
views
How to Add Value Labels to 3D-like Bar Chart on a Basemap in Python_
I'm working on a Python project where I'm plotting a bar chart on top of a basemap. My original goal is to create a visualization that mimics a 3D bar chart by plotting vertical bars at specific ...
1
vote
1
answer
52
views
Charts data labels with inline registry using custom plugin flickers with react and angular
I've developed a custom element using Lit, incorporating the Chart.js library. This element exposes properties like data, options, plugins, and type, which are used to generate the chart.
When ...
0
votes
0
answers
79
views
combining a stacked bar chart and grouped bar chart in r? [duplicate]
In R I have this data:
food_data <- data.frame(
date = as.Date(c("2025年01月01日", "2025年02月01日", "2025年03月01日", "2025年04月01日", "2025年05月01日")),
...