huri icon indicating copy to clipboard operation
huri copied to clipboard

Support for Histogram Labels and Chart Titles

Open tmountain opened this issue 8 years ago • 2 comments

Hi,

Great project! I'm wondering if there's a way to easily add labels, chart titles, legends, etc, to the generated charts? Looking at the histogram function, I see that it takes some keyword parameters, but nothing to effectively annotate the data. Is this possible?

tmountain avatar Sep 13 '17 13:09 tmountain

Looking a little more at the source, I see that these values are already available via the defplot macro.

(histogram {:x-label "Foo" :y-label "Bar"} ...)

That said, it'd be nice to format the labels to make them larger and center the title as well. Is this possible?

tmountain avatar Sep 13 '17 14:09 tmountain

Definitely need to do some proper documentation and more comprehensive examples. Sorry about that.

Currently styling is pretty baked in and direct translation from R (see huri.plot/theme). Let me think how to best make it more customizable.

sbelak avatar Sep 18 '17 14:09 sbelak