8,436 questions
0
votes
0
answers
20
views
Error: Invariant failed: Specifying a(n) yAxisId requires a corresponding yAxisId on the targeted graphical component Bar
In my Nextjs component, I've implemented a bar chart in which I had to show two different labels in both side of the Y axis.
<BarChart accessibilityLayer data={formattedData}>
&...
1
vote
0
answers
22
views
Conditionally changing Chart bar color in JasperSoft Studio 6.19.0
I'm using Jaspersoft Community Edition. Could you help me keep the bar of chart always green if classificacao field is "A", yellow if it is "B" and red if it is "C". The ...
1
vote
1
answer
39
views
How to Highlight the Difference Between Two Bar Charts in MATLAB?
I am working on a MATLAB project where I have two sets of data:
1- "No Reflection": Represents baseline coverage area values.
2- "With Reflection": Represents coverage area values ...
0
votes
1
answer
35
views
Remove lines from a barplot legend in ggplot2
I have a barplot with smoothing lines from ggplot. But for some reason, blue lines appear in the legend on top of the barplot colors and I don't understand where they come from and how to remove them. ...
0
votes
1
answer
17
views
How do I truncate the datalabels in the Highcharts Stacked bar so that they stay within their correct color stacks and not overflow into the next?
I have tried to create a bar chart using highcharts and want the labels to stay within the color stacks and truncate with an ellipsis (...) if it overflows
I have tried multiple options using the ...
1
vote
1
answer
23
views
Altair grouped bar chart with different categories per group
I am trying to make an altair grouped bar chart where each group has different categories. The standard grouped bar chart plotting code produces plots where each plot's x-axis contains all categories,...
1
vote
1
answer
50
views
update data charts js Angular
This is my typescript code:
public barChartData: ChartConfiguration<'bar'>['data'] = {
labels: [ '2006', '2007', '2008', '2009', '2010', '2011', '2012' ],
datasets: [
{ data: [ 65, 59, 80, ...
1
vote
1
answer
27
views
Specific type of Bar Chart [closed]
I would like to create the bar diagram in the image below, as shown in the picture on the left there are equipment designations. In the figure, a bar indicates which time interval there is data in, ...
0
votes
0
answers
31
views
Problem with barchart labels when using scale_x_continuous(expand = c(0, 0))
When I use scale_x_continuous(expand = c(0, 0)) in my ggplot horizontal bar chart, the first bar label disappears. below you can finde the code used.
Could you please help me with it?
Thanks
options(...
0
votes
1
answer
35
views
r barchart postion labels determined by y variable
I am creating a sparkline-ish R barchart. My code so far is below:
plot1<-ggplot(data=puck98 %>%
mutate(win_loss = ifelse(wnls < 0, "loss", "win")),
aes(x=game, y=...
-1
votes
1
answer
63
views
How to right align values regardless of barcharts width?
I'm working with Apache echarts on horizontal bar charts. I am trying to right align the value of each bar chart but I wasn't able to find an example and after review API and playing around with the ...
-1
votes
0
answers
42
views
How do I make the bars visible in a plotly bar chart animation?
I'm trying to make a bar chart animation that slowly shows each bar, but I can't make it work as intended. When I run the code, the bar appears extremelly thin and then disappears to show the next ...
-1
votes
0
answers
29
views
Why object's array act like it does not have values?
I have a simple user login system in my web app. The Trip Collection page is the same whether the user is logged in or not. If not, the page simply not displaying the values. My problem is, when I ...
0
votes
1
answer
18
views
How to change legedn text charts to custom text arabic?
I work on crystal report I face issue I can't change text legend to Arabic text
so how to fix that issue please ?
so legend text beside color i need to change to custom text Arabic .
Exactly I make ...
0
votes
1
answer
47
views
How to build a stacked barchart with two continuous columns in ggplot
I would like to create an horizontal rancked stacked barchart. The bars should show the sum of "cost1" and "cost2" with one labels at the end of each bar . Below, you can see the ...
0
votes
0
answers
30
views
How to set time range to bar chart axes by parsing using Chart Js?
I am using ChartJs v3.9.1 in my Angular project. I need to create a timeline and I am trying to create it using horizontal bar chart.
I did horizontal bar chart with time axes but I have a json data. ...
0
votes
2
answers
51
views
How to selectively label bars using plt.bar_label()?
When drawing a bar plot in matplotlib using bars = plt.bar(...), the returned object can be passed to plt.bar_label(bars, labels) for easy labelling.
plt.bar_label(bars, labels) labels all of the ...
1
vote
2
answers
68
views
Automatically adjust the size of the text inside each bar on a bar plot using ggplot2 in R
i have a data frame in R called df and looks like this:
df
# A tibble: 15 × 3
# Groups: var1 [3]
var1 var2 per
<chr> <fct> <dbl>
...
0
votes
0
answers
28
views
Python Seaborn - set_xlim - axis labels do not appear on axis
I have following function to produce seaborn bar charts.
def create_bar_chart(data,
numeric_col,
category_col,
group_col=None,
...
0
votes
1
answer
27
views
How do I display suffix in horizontal barchart with values of millions to "M" or thousands to "K" instead of the full numbers? [duplicate]
I would like to add the "M" or "K" suffix in my barchart. The numbers for each labels show the entire raw numbers but I would like to be round up to the nearest thousand and ...
0
votes
0
answers
48
views
How to set different colors for each column in bar chart with Vico bar chart library?
I am designing a bar chart in Compose using the Vico bar chart library.
Currently, my code looks like the following and shows the same color for every column.
CartesianChartHost(
chart = ...
1
vote
1
answer
41
views
Setting Chart.js scales y title gives compile time error " type '_DeepPartialObject"
I subscribe to data from the backend to fill my charts, when the data is received I would like to set some options so it goes like this:
this.chart.config.options.scales.y.title.display = true;
This ...
1
vote
1
answer
45
views
Re-order Bar Chart (not decsending/ascending order or weekday/month)
I need to create a bar plot that has the Y axis in a particular order. I need the Y axis to be ordered small, medium, unlimited. When I run the code it keeps ordering it medium, small, unlimited.
All ...
0
votes
1
answer
35
views
C#.Net Chart control. I need to show the Label of the bar in the middle of the bar not on top
C# & .NET Chart control. I need to show the Label of the bar in the middle of the bar not on top.
To get the original photo below, I have set the series flag IsValueShownAsLabel to true. The ...
1
vote
1
answer
49
views
How to group by two different rows in to one matching result
I have to write a query to form a Bar chart. In the bar chart x axis should be grouped based on datetime (dateValue) and y axis should have sum of numbers(stringValue). Both these two fields are ...
1
vote
1
answer
38
views
Is it possible to create a graph in which a single broad bar contains multiple bars in Angular?
I want to create a graph like this
I haven't been able to find a solution.
I asked ChatGPT for the solution. The code it gave out did not work even after trying to make it work.
At the end of ...
0
votes
0
answers
41
views
How to create a bi-directional bar chart?
I have a Python code which aims to plot multiple betting scenarios.
My code below returns this graph.
import pandas as pd
import matplotlib.pyplot as plt
import itertools
bet_details = {
"...
0
votes
0
answers
32
views
Comparison Bar Chart in PowerBI
I want to create a comparison bar chart on powerBI desktop. Since I have a dataset with columns "Subject Names", "Previous Grade", "Current Grade", "Previous GPA&...
1
vote
1
answer
37
views
grouped barchart column positioning in ggplot (plotnine) with position_dodge2 in case of missing observation
I have a grouped barchart, with 2 groups. If in a case there are no observations for a particular column, the other of the group is centered. I can't find a way to circumvent this. I would like there ...
0
votes
0
answers
90
views
I'm getting an error in python : AttributeError: Rectangle.set() got an unexpected keyword argument 'sort_columns'
The following code produces the error mentioned in the title:
`data3 = pd.DataFrame(\
df_all.groupby(by=["Age"])["Customer ID"]\
.count()\
.reset_index(name='Distribution ...
1
vote
1
answer
46
views
How to change value in tooltip charJS
Im using LightningWebCharts here is the documentation link https://salesforcelabs.github.io/LightningWebChartJS/
I want add 'k' in tooltip value. Tooltip documentation https://salesforcelabs.github.io/...
1
vote
1
answer
46
views
matplotlib barplot with groups using a dictionary of lists of lists
I have some measurements of hardness of steels after quenching in different coolants: Water, Oil and Air (just leaving it to cool down). The measurements are organized as following: A dict, called ...
1
vote
1
answer
36
views
Consistent order in grouped bar plot with missing data with `geom_bar`
I am trying to plot grouped bar plots with ggplot2 as below.
library(ggplot2)
data(mtcars)
mtcars$gear <- as.factor(mtcars$gear)
mtcars$carb <- as.factor(mtcars$carb)
ggplot() +
geom_bar(data ...
0
votes
0
answers
20
views
Flutter - SfCartesianChart package i want labels next to bars
In flutter i m using SfCartesianChart package to crate bar chart, but i want to get the lables of bars next to each bar, not inside or before.
below is my UI design what i want
and below is my code
...
1
vote
1
answer
39
views
VBA Coloring Bar Charts Based on Cell Color - multiple bars
Can someone help to check why cell color is not applying to all bars? I am including 2 months data in the chart, but color is applying only for one month, not both
I am expecting the cell color to a ...
0
votes
0
answers
35
views
how to add data labels in salesforce labs lightingWebchartJs
im using salesforce lwcc https://salesforcelabs.github.io/LightningWebChartJS/docs/api/chart.html
How to show value on each stack and cumulative value on top of the bar and also in legend each with ...
0
votes
1
answer
72
views
Overlay centralised dots on grouped bar chart using ggplot
I want to overlay centralised dots on grouped bar chart using ggplot, but I could not achieve that. Any help will be appreciated. Below is my code:
# Dummy data
dummy_df <- data.frame(facility = ...
1
vote
1
answer
52
views
How to include percentage in the circular barplots?
I am trying to create circular bar plots where each bar is colored according to its group. I would like to display the contribution of each group as a percentage on the bars, while keeping the group ...
0
votes
0
answers
24
views
How achieve category name over the bar chart in Power BI?
I am trying to make clustered or stacked bar chart with Rooms category in Y-Axis and Counts in X-Axis. What I achieved looks like the below image.
To manage the left space, can I have the category ...
0
votes
1
answer
59
views
Select only Top 10 bars in GGPLOT2 Bar chart, when count is not a column
I have a tibble, with train route data, and whether the rider was a member or not, using ggplot's bar chart, I have starting station name as x, count as y, and the colour based on if they're a member ...
1
vote
1
answer
61
views
Chart.js - Alignment of 0 values for multiple datasets
I am trying to compare 2 datasets in chart.js. There are large differences in values so in order to compare the values a have decided to graph the data on 2 different y axes.
1 of the datasets has ...
1
vote
1
answer
67
views
Dataset scaling in a Chart.js bar chart for better comparison
I’m using Chart.js to graph two datasets on the same bar chart for a time-based comparison (x-axis). However, I’m encountering an issue where the height of one graph squashes or expands to fit the ...
1
vote
0
answers
62
views
Where are the Java classes BarScale, CategoryTicks and BarOptions.IndexAxis?
I am migrating from PrimeFaces 13 to 14. The migration guide says the new chart component allows raw JSON or XDEV Chart.js Java Model. I copied the Java code for the bar chart example from the ...
0
votes
1
answer
41
views
A problem with an stacked, grouped and faceted graph y gg plot
I'm trying to create a graph. Here is the code for the data:
ea3 <- ddply(dias_semana, c("mes","weekday", "member_casual", "rideable_type"), summarise, n = ...
1
vote
0
answers
36
views
stacked barplot with repel legend manipulate single labels e.g. in italics [duplicate]
So I would like to manipulate some labels I have added to a stacked bar plot through repel. The problem is, that some names will have to be in italics, while others don't so I am trying to specify ...
0
votes
1
answer
48
views
How can i use ggplot's scale_x_sqrt function for stacked barplots?
I created a stacked horizontal bar plot using ggplot, and the plot works well with a continuous x-axis. This resulted in the following figure:
However, since my data spans a wide range—from 0 to over ...
0
votes
0
answers
25
views
MPAndroidChart Highlight selected Stack bar
I am trying to implement selection in stackedbar of MPAndroidChart library.
the stackbar looks like image 1 when no selection is done
When an stackbar is selected the remaining stackbar is dimmed a ...
1
vote
2
answers
99
views
Create a histogram of aging
I am looking to create a histogram of aging. By aging, I'm referring to the accounting report of tracking an asset like accounts payable into bins of 30 days, 60 days, 90 days, and 120+ days old.
In ...
0
votes
0
answers
30
views
Excel "floating" bar chart using time ranges and color coded
Good day to you all. Please excuse me as I've never actually asked a question here before, though it's been a wonderful resource.
I use Excel a fair amount, but I've never gotten into charts. What I ...
0
votes
1
answer
30
views
Unable to change the colors for stacked column in Bar graph High charts
In my application, I want to display the group data in the bar graph. So I am using the stacked column provided by High chart demo sample. I am able to display the graph successfully by using the ...