Git Product home page Git Product logo

bchart's People

Contributors

tkuhn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bchart's Issues

Is there any limit on the maximum value for the max option?

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}

Width issues when using label option

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:

Screenshot 2019-08-30 at 12 22 02


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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.