Top "Bar-chart" questions

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

matplotlib: how to prevent x-axis labels from overlapping each other

I'm generating a bar-chart with matplotlib. It all works well but I can't figure out how to prevent the labels …

python matplotlib bar-chart
ggplot Error: Don't know how to automatically pick scale for object of type function

I plotted a stacked bar graph in R using ggplot2 package, data<-read.table("K.txt",header=TRUE, sep="\…

r ggplot2 bar-chart stacked
How to change colours for Angular-Chart.js

I use Angular-Chart.js (the AngularJS Chart.js version) to create a bar chart. The Chart is working with the …

javascript angularjs charts bar-chart chart.js
How to plot bar graphs with same X coordinates side by side ('dodged')

import matplotlib.pyplot as plt gridnumber = range(1,4) b1 = plt.bar(gridnumber, [0.2, 0.3, 0.1], width=0.4, label="Bar 1", align="center") b2 = plt.bar(gridnumber, [0.3, 0.2, 0.2], …

python matplotlib bar-chart
ggplot2 : Plot mean with geom_bar

I have the following data frame: test2 <- data.frame(groups = c(rep("group1",4), rep("group2",4)), X2 = c(rnorm(4), …

r ggplot2 bar-chart visualization
position legend of a stacked bar plot

I am trying to create a stacked bar plot, but I cannot position the legend so that it does not …

r plot bar-chart
Re-ordering bars in R's barplot()

What I want to achieve is exactly the same that was already asked here (and specifically using R's base graphics, …

r sorting bar-chart
'height' must be a vector or a matrix. barplot error

I am trying to create a simple bar chart, but I keep receiving the error message 'height' must be a …

r bar-chart
Position geom_text on dodged barplot

I tried to make the title self-explanatory, but here goes - data first: dtf <- structure(list(variable = structure(…

r plot ggplot2 bar-chart
Change colours of particular bars in a bar chart

I've been creating some bar-charts and I was wondering is it possible to colour bars on a chart depending on …

r colors bar-chart