Questions tagged [bar-chart]

{bar-chart} is about creating bar charts using TeX/LaTeX/etc.

This is for questions about creating bar charts with TeX/LaTeX/etc. with or without data in an external file. Usually a specific package is involved, for example pgfplots, and a tag for that package should be provided too.

642 questions
4
votes
1 answer

Create Yes/No bar charts

I am collating data from a survey and I want to create a bar graph like the one below: Can anyone provide me with a template of that chart? I tried to inflect bar chart and stick the two together but it does not work very well. Thanks!
3
votes
1 answer

Add areas in background of histogram

I would like that my histogram has areas in background (with name), in order to compare the value of each bar with some intervals. This is the result that I would like to reach: And this what I reached till now: The 2 change of colors are set at…
Stefano
  • 1,038
2
votes
1 answer

How to change the color of the nodes and coordinates in bar chart

Need to change the color of the coordinates and nodes in the bar chart \documentclass[12pt,a4paper]{report} \usepackage[a4paper,bindingoffset=0.2in,% left=1 in,right=0.5in,top=1in,bottom=1in,% …
Tamil
  • 151
  • 8
2
votes
1 answer

Shifted Stacked Bars in Population Pyramid

I am having a problem where my stacked bars in a population pyramid (code from How can I draw this population pyramid graph with pgfplots?, thank you very much Stefan for a beautiful pyramid) are shifted so that the appearance is jagged. Any help…
2
votes
0 answers

Bar chart in Latex

I am trying to write the code for the following bar chart. So far, I can only do this: As you can see, I failed to produce the legends similar to the original chart. The legend in the original chart is right next to each chart. I would very…
DB225681
  • 147
2
votes
1 answer

Making bar charts for big values

I'm trying to make a bar chart for some kb values, but I'm receiving this error: ! Dimension too large. \relax l.254 \bcbar[text=Bule]{19419} I can't work with sizes bigger than about 19 feet. Continue and I'll use the largest…
ics
  • 45
2
votes
1 answer

Creating an empty bar chart, for students to fill in data

What's the easiest way in Latex to create a simple, nice looking, empty bar chart -- I'll set up the axes appropriately, but students will fill in the data. To be specific, the bar chart will show how many ways there are to get each possible sum…
littleO
  • 1,153
2
votes
1 answer

bar chart - 'inner' x ticks?

i've successfully created my first 'bar chart' today: by the use of the code given below: \documentclass[tikz,border=1pt]{standalone} \usepackage[ngerman]{babel} \usepackage[ansinew]{inputenc} \usepackage[T1]{fontenc} …
eniem
  • 189
1
vote
2 answers

Drawing a bar chat (horizontal) or log line chart

I am trying to draw this graph, one is linear another is exponential and proportional to the size of the data. The numbers are so different from each other, I don't know how to make it more understandable. Is it possible to make this bar chart…
Node.JS
  • 685
1
vote
1 answer

Bar Graph Latex

I don't understand why this code is only giving me the first 2 bars, and not all 3. The rest of the formatting is perfect, it's just incomplete. What do I need to change? \begin{figure} \centering \begin{tikzpicture} \begin{axis}[ …
Helen
  • 13
1
vote
0 answers

Bar Chart, Caption & Sources

Right now, i am working on a Bar Chart and i wanna put a caption and sources below the bar chart. However, the code, \begin{figure}, caption{XXX} and \end{figure} are not working at all. Other than that, i also want to remove the line in the cell…
Daniel Chan
  • 191
  • 10
0
votes
1 answer

How to set max of y axis on bar chart

I tried many solutions which were about similar question, but nothing helped... I have a bar chart in Latex, which contains values from 2 550 to 18 016. I want to have numbers on y axis: 0, 5 000, 10 000, 15 000, 20 000. But I have problem, that…
0
votes
2 answers

How do I give space between the two bar charts

I want to plot two bar plots with more space next to each other (now the yaxis label overlaps on first figure). Also I want to add x axis label and a caption for each figure. Can anyone help me to solve the problem? Code: …
0
votes
1 answer

How to add a margin for a y axis that uses symbolic y values

I want to create a horizontal bar graph using symbolic y labels. However I: want to have the bars next to each other (i.e., no space between) I want some margin below and above the first and last bar for…
Sim
  • 240
0
votes
1 answer

Horizontal Barcharts with text on both ends and a tick mark on the chart

I want to create a set of horizontal barcharts with text on both ends and a tick mark. The idea is to symbolize a value between two extremes/endpoints. Below is an illustration of what I want it to look like. I have tried using \baritem from…
1
2