knowm / XChart

XChart is a light-weight Java library for plotting data.
http://knowm.org/open-source/xchart
Apache License 2.0
1.5k stars 397 forks source link

XKCD theme for XChart [Feature request] #434

Open ouryperd opened 4 years ago

ouryperd commented 4 years ago

Feature request for adding an xkcd (www.xkcd.com) style / theme to charts. The rationale: https://www.chrisstucchio.com/blog/2014/why_xkcd_style_graphs_are_important.html matplotlib has done it very succesfully: https://matplotlib.org/xkcd/examples/showcase/xkcd.html

Mr14huashao commented 4 years ago

@timmolter This theme is completely different from the previous three themes of XChart.

README.md: https://github.com/knowm/XChart#chart-themes

timmolter commented 4 years ago

Yes, because it's not a matter of styling a straight line; the lines are actually wavy. We'd not just be changing stroke properties, but have to custom draw the lines probably. However I think it would be worth doing and I've been wanting to do this for years now. Let me look into it a bit...

timmolter commented 4 years ago

https://gist.github.com/FlorianCassayre/cd1c9fc5a7e6194b18dccb800de53341 https://gist.github.com/bmorris591/d631b56bf4ee6ce8fe3b42227e8dcea0