Questions tagged [bar-chart]

A bar chart is graphical representation of data where the value is represented by the length of the bar.

Bar charts are used for marking clear data which has discrete values. Some examples of discontinuous data include 'shoe size' or 'eye color', for which a bar chart is appropriate. In contrast, some examples of continuous data would be 'height' or 'weight'. A bar chart is very useful for recording certain information whether it is continuous or not continuous data. Bar charts also look a lot like histograms. They are often mistaken for each other.

Example of a bar chart, with 'Country' as the discrete data set.

enter image description here

Source: eNotes (Bar chart)

In scientific software for statistical computing and graphics, a bar-chart can be generated by function barplot.

8160 questions
2
votes
0 answers

Android - Create multi-segmented section in horizontal bar

I want to create a multi-segmented section in the horizontal bar, as you can see in the screenshot i have posted. You can in the first bar , I have to create 5 segments and i have a total count of 20. now in the first bar the first segment will…
Achin
  • 1,252
  • 4
  • 28
  • 63
2
votes
1 answer

How do I add a character object to a numeric label in ggplot2: adding the % symbol to the percentage label in a bar chart

I'm trying to add the % symbol next to each label of a bar-plot showing count on the y-axis and factor levels on the x-axis. I have already calculated percentages values (pct) outside ggplot2 to use as labels, example here My data dat…
Mia
  • 95
  • 1
  • 6
2
votes
1 answer

Draw "star rating" chart with R

I'm looking for a way to draw "star rating" style graphs in R, similar to a bar chart, but with star symbols. I guess integers would be the input, or possibly half-marks, like "three and a half stars". Not even sure what these charts are called to…
BugSpray
  • 113
  • 9
2
votes
0 answers

xlsxwriter data_label background color

I am trying to create a column plot where each column has a different color. Plus I need to add ".data_labels" - so the values are visible. Currently, I can change color of the font (in the data_labels). But I can't find how I can add "background…
Lukasz
  • 269
  • 4
  • 12
2
votes
1 answer

Primefaces 6.2 BarChart DatatipFormat

I am currently working with Primefaces 6.2 and JSF 2.2 and I am trying to build a bar chart. The chart itself is being rendered properly, but right now, the datatip of every value is the "y" value concatenated with the "x"…
2
votes
1 answer

Jasper bar chart: unable to show labels

I'm struggling with Jasper to display value labels on top of the bars of my chart. What I want to generate: I use Jaspersoft Studio, and I checked the "Show Labels" box in "Chart Plot" tab. For test purpose, I use some sort of red and violet for…
Carrm
  • 1,485
  • 3
  • 24
  • 45
2
votes
1 answer

Can't set width of column in bar chart

I'm working with Google Bar Charts. In the left side, I need to add the description of the bars. Move within USA Received in New Jersy Handed over to International Currier At Sri lanka port But I can't show the whole sentence in the bar chart.…
user10160445
2
votes
1 answer

How to plot a histogram with uniform space between uneven data points?

So I have an array y that contains powers of 2, like 1, 2, 4, 8, 16,... and I want to put them in a histogram to see how many of each shows up. But when I plot them they turn out like this: My question is: how do I get them close together, with…
Kim Dong
  • 155
  • 8
2
votes
0 answers

Accessing data properties for d3 v4 stacked bar chart

I have been working on creating a stacked bar chart using d3 v4 but with a JSON file input. This question is a continuation of a past question:Converting data structure of a JSON array for stacked bar chart. My data array consists of numerous…
LSRain
  • 103
  • 1
  • 14
2
votes
1 answer

How to show different product name for every bar in chart js

I am using chart js for showing top 3 sold products in last week. I want to show product name in tooltip for every bar which has obviously different products. Here is my code : function productChart() { var data = { labels:…
Aarsh
  • 2,555
  • 1
  • 14
  • 32
2
votes
1 answer

Using JSON in d3v4 stacked bar chart

I have found a d3v3 stacked bar chart example that I would like to use because it uses json data. There is also a d3v4 canonical bar chart example that loads and uses a csv. I want to make a d3v4 stacked bar chart but I want to use json data to…
LSRain
  • 103
  • 1
  • 14
2
votes
1 answer

ggplot2 bar plot by two groups and mean of y variable

I'm trying to create a bar plot for which I have two groups and the y variable is the mean of one of those groups. Sample Bar Graph So looking at the above bar graph in the photo, I have bars grouped by country and prosocial, and on the y-axis I…
JohnD
  • 121
  • 1
  • 9
2
votes
2 answers

C3js stacked bar chart with multiple pieces of data for each bar section

I'm trying to create a stacked bar chart where each bar section in a group will have two pieces of data, a count and a cost. I want the count to be reflected in the bar, and I want the cost to be displayed in the bar label. I'd also like to be able…
Hypersapien
  • 617
  • 2
  • 8
  • 23
2
votes
2 answers

How to switch from Grouped Bar chart to Simple Bar Charts

Hello everyone i recently tried out the iOS-Charts library which is great. I made a Grouped Bar chart, and its working fine. I also have a Bar chart which works also. The Problem is if i switch from the Grouped barchart to the normal one, then my…
Elliot Czigány
  • 188
  • 1
  • 14
2
votes
1 answer

Data limiting with a button in spotfire

im trying to change the data limiting expression on a bar chart in spotfire by pressing a button, using an ironpython script. from Spotfire.Dxp.Application.Visuals import * from Spotfire.Dxp.Data import * for vis in…
user3639100
  • 336
  • 1
  • 11
1 2 3
99
100