8,419
questions
0
votes
1
answer
24
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
26
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 = ...
0
votes
0
answers
18
views
one grouped bar plot code working, other is not -- seem the same [closed]
This first code produces a grouped bar plot like I want. The second set, I get an error in data.frame: arguments imply differing numbers of rows: 9, 2, 6.
How does it differ from the first dataframe (...
1
vote
1
answer
44
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
33
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
47
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
36
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
40
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
27
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&...
0
votes
1
answer
33
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
66
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
45
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
45
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
33
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
70
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
48
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
21
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
52
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
55
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
61
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
53
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
46
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
23
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
98
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
27
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
27
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 ...
1
vote
1
answer
50
views
Adding only some data labels and a total value at the top of my stacked bar chart
I am working on a stacked bar chart with the following data:
dput(head(Intensity_data))
structure(list(Weekday = structure(c(1L, 1L, 1L, 1L, 2L, 2L,
2L, 2L, 3L, 3L, 3L, 3L, 4L, 4L, 4L, 4L, 5L, 5L, 5L,...
1
vote
1
answer
36
views
gnuplot histogram cluster plot without using histogram
I am to create histogram bar plot cluster without using
set style data histogram
directly with boxes
I didn't manage to right place the different lines.
Here is my MWE and the result
$data <<EOD
...
0
votes
0
answers
68
views
One bar graph bar does not work in shiny app but works locally
I recently started using Rstudio to make an interactive web site. The user selects some values (number of span for the LOESS, number of months, months and/or days) and the system adds or subtracts the ...
0
votes
1
answer
57
views
How to get error bars in ggplot2 when the SD is greater than the mean?
I have salinity data where for one month, the standard deviation is greater than the mean. The system is an estuary, and there was a lot of freshwater input that month, so the salinity values in the ...
0
votes
0
answers
16
views
How can change the size of hAxis labels in BarChart of Google Charts
In the BarChart component of Google Charts, I am unable to modify the size of the labels on my graph.
I am extracting a long text from the db that I want to display on the left side. So, I want to ...
0
votes
1
answer
235
views
How to style the BarLabel in BarChart of react material mui-x charts
I am looking to style the label shown inside the bar when setting BarLabel="value"
More specifically, I want to set its font-size
//for reference --> import { BarChart } from "@mui/x-...
0
votes
2
answers
85
views
Display the double bars chart in react native
I want to display two bars chart in react native and I checked many chart libraries and I haven't found any library for my requirements.
Problem: Display two bars in each month for booking and ...
4
votes
2
answers
106
views
How to fill a barplot, not according to the occurences of an element in a dataset, but according to its value in another variable? See example
Imagine having this dataset:
Country Energy_Source Twh Tot
Italy Biofuel 24.5 100
Italy Nuclear 15.4 100
Italy Gas 40.1 100
Italy Hydro 20.0 100
France ...
0
votes
1
answer
57
views
scale_y_continuous makes graph go missing
I want to create a bar chart that has a year, value and a category dimension. The x-axis should be the different years and within a single year, I want the bars to be in ascending order.
I manage to ...
-1
votes
1
answer
40
views
how to display count value at above every bar chart in ireport jasper
i have make new bar chart. but i want to display the number of count at above every bar. How to do that?
This is bar chart without count at above
i want like this:
The every bar have own count based ...
1
vote
1
answer
48
views
Chart.js: Aligning multiple side-by-side bar charts with inconsistent label widths
I'm using Chart.js (4.4) to create multiple bar charts side by side, each representing a different country. My current implementation uses separate <canvas> elements for each chart. However, I'm ...
1
vote
1
answer
64
views
Add two diagonal lines on top of y-axis ranging outside plot area to highlight truncation
I have a bar plot using ggplot() in which I have truncated the y-axis using coord_cartesian() so that differenes between the bars are more easily visible. In other words, the y-axis does not start at ...
2
votes
1
answer
46
views
Dropdown Filter Issue with R Plot_ly Plots
I've been having an issue with update menus functionality within r's plot_ly package.
An approach that has previously worked for chloropleth figures doesn't seem to work when applied to a stacked bar ...
0
votes
0
answers
42
views
Dynamically add rounded corners in stacked bar chart (amcharts 4)
I was following the guide from the documentation trying to implement the same feature, but can't make the code work the same way. I am aiming to make series's corners rounded on the right side if it's ...
2
votes
2
answers
108
views
Bar chart with slanted lines instead of horizontal lines
I wish to display a barchart over a time series canvas, where the bars have width that match the duration and where the edges connect the first value with the last value. In other words, how could I ...
1
vote
1
answer
60
views
How to change text size for bar-chart?
I have bar chart. I need to change labels fontSize. To do this i try to use the following part of documentstion: https://ag-grid.com/charts/options/axes/number/#reference-AgNumberAxisOptions-label-...
0
votes
1
answer
30
views
mixed bar plots creation and arrangement in a descending order
The problem is fairly straightforward. How to create a descending bar plot arrangement in which those bars where Item are same are shown as stacked but they are arranged according to the gross value ...
1
vote
1
answer
69
views
ChartJS Bar chart - Modify legend
I am new to ChartJS and I am trying to build a bar graph. This graph should have the following information:
labels = ['D1', 'D2', 'D3', 'D4', 'D5', 'D6', 'D7', 'D8', 'D9', 'D10']
data = [1,2,3,4,5,6,...
0
votes
1
answer
62
views
how to create a Stress graph in flutter
In y-Axis 4 Stress state will show and for each state have multiple item with different duration. In x-Axis need to show 1-23 hours but its label will be only 12 am 12 pm and 12am
Tooltip should be ...