You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I stumbled upon this package today looking for something to draw small charts in a Document of mine. In particular I'd like to draw a barchart (or columchart as you call it) but with an added hline for clarity.
I've read the docs (though not entirely) and I might be missing something trivial, but currently I'm at a loss at how to mix plot and chart elements.
According to the docs:
The barchart function is a wrapper of the plot API. Arguments passed to ..plot-args are passed to
the plot.plot function.
and I've had a look at the source code as well and it appears there is no mechanism to "inject" other elements into the plot.plot call. In the docs I see that plot has a body argument which reads as if it allows injecting other drawable objects, but using it (see my example below) doesn't turn up anything.
Am I doing something wrong, or is this currently not supported?
I guess I could always copy out the columnchart function into my own document and use/adapt it from there, but I'd prefer not to duplicate your code.
Hi, this is indeed suboptimal. The chart API is a wrapper of plot.plot that does some things for you, but currently, you cannot really mix them. I will create a ticket to allow passing further plot commands to charts!
Here is a starting point for doing your chart with the plot API:
Hello,
I stumbled upon this package today looking for something to draw small charts in a Document of mine. In particular I'd like to draw a barchart (or
columchart
as you call it) but with an addedhline
for clarity.I've read the docs (though not entirely) and I might be missing something trivial, but currently I'm at a loss at how to mix
plot
andchart
elements.According to the docs:
and I've had a look at the source code as well and it appears there is no mechanism to "inject" other elements into the
plot.plot
call. In the docs I see thatplot
has abody
argument which reads as if it allows injecting other drawable objects, but using it (see my example below) doesn't turn up anything.Am I doing something wrong, or is this currently not supported?
I guess I could always copy out the
columnchart
function into my own document and use/adapt it from there, but I'd prefer not to duplicate your code.Here's a MWE:
The text was updated successfully, but these errors were encountered: