tkuhn / bchart Goto Github PK
View Code? Open in Web Editor NEWA LaTeX package for drawing simple bar charts
License: MIT License
A LaTeX package for drawing simple bar charts
License: MIT License
Hi,
I'm trying to typeset the following, but Latex (or pdfLatex) insisted on saying that:
! Dimension too large.
\pgfmath@y
l.15 \bcbar[label=Jan -2011]{17834.5}
\begin{bchart}[min=0.0,step=1000.00,unit= AED, width=10cm, max=20000 ]
\bcbar[label=Jan -2011]{17834.5}
\bigskip
\bcbar[label=Feb - 2011]{11509.0}
\bigskip
\bcbar[label=March-2011]{2795.0}
\bigskip
\bcxlabel{Total Costs}
\end{bchart}
Hi Tobias,
first of all, thanks a lot for this package! :)
However, I've got some issues using the width option alongside with the labels. My goal is to have the width of the diagram equal to the \textwidth, but it seems the label options are on top of the width, see example below:
\begin{figure}
\begin{bchart}[min=5, max=55, step=10, unit=\%, width=\textwidth]
\bcbar[label=All passwords, color=red]{7}
\medskip
\bcbar[label=Most of the passwords, color=red]{20}
\medskip
\bcbar[label=Some passwords, color=red]{45}
\bigskip
\bcbar[label=Don't know, color=yellow]{7}
\bigskip
\bcbar[label=None of the passwords, color=green!50]{20}
\end{bchart}
\caption{Percentage of password re-usage in the United States in 2018}
\label{fig:us-password-reuse}
\end{figure}
Renders:
Am I missing an option or have an error in reasoning? (current workaround is to use width=.65\textwidth
but if I change the labels again, I need to figure out the width again.
Thanks,
Tim
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.