Percentage stacked bars chart
Dear Sirs, Is there a way (out of the box) to draw percentage stacked bars chart with metapost or MetaFun xl? Thanks for your time and support. Jorge Magalhães
On 7/23/2021 4:43 PM, Jorge Manuel wrote:
Dear Sirs,
Is there a way (out of the box) to draw percentage stacked bars chart with metapost or MetaFun xl?
Thanks for your time and support. you can have a look at
https://akela.mendelu.cz/~thala/statcharts/ (at some point i'll see if i can add a lmtx interface but first i want lmtx to be stable) ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
Dear Hans
I think this is a very important piece of code (https://akela.mendelu.cz/~thala/statcharts/).
Unfortunately it still doesn't work with lmtx.
As I need to make graphics, I keep waiting for its compatibility with lmtx.
Thanks for your time and support.
Have a great day and, please, live forever.
Your ideas and your work are just amazing.
Jorge Magalhães
On 23 Jul 2021, 17:01 +0100, Hans Hagen
On 7/23/2021 4:43 PM, Jorge Manuel wrote:
Dear Sirs,
Is there a way (out of the box) to draw percentage stacked bars chart with metapost or MetaFun xl?
Thanks for your time and support. you can have a look at
https://akela.mendelu.cz/~thala/statcharts/
(at some point i'll see if i can add a lmtx interface but first i want lmtx to be stable)
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
On 7/24/2021 12:04 AM, Jorge Manuel wrote:
Dear Hans
I think this is a very important piece of code (https://akela.mendelu.cz/~thala/statcharts/). Unfortunately it still doesn't work with lmtx. As I need to make graphics, I keep waiting for its compatibility with lmtx.
Thanks for your time and support. Have a great day and, please, live forever. Your ideas and your work are just amazing. This works ok here:
\startprotectedcolors \usemodule[statistical-charts] \stopprotectedcolors \starttext \def\citizenshipdatatwo {{13,19,34,20,36},{10,19,11,10,11},{21,10,18,10,10}} \def\yearlabelsone {2014,2015,2016,2017,2018} \areachart [basic] [yscale=0.2, xscale=1.6, distance=2, xgridlinesdensity=2, fillpalette=turquoise, line=no, dotscolor=shamrock, dotswidth=8, axesunits=yes, xunit=Year, yunit=Number of citizenships] [method=struct, data={\citizenshipdatatwo}, xlabels={\yearlabelsone}] \stoptext you need to put the modules under tex/texmf-modules/tex/context/third/mkiv/statcharts or so, and run 'mtxrun --generate' to updat ethe file database (i didn't check of there was a module package on the garden) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
Good Morning, The code sent by Hans doesn't work for me. Maybe it's my context tree. I've already emailed the authors. Floris, thanks for the suggestion. Jorge Magalhães
Jorge Manuel schrieb am 24.07.2021 um 10:13:
Good Morning,
The code sent by Hans doesn't work for me. Maybe it's my context tree.
I tried the first example from the manual and also Hans example and both worked for me. Did you download all 3 files which are needed? - t-readdata.lua - t-statistical-charts.lua - t-statistical-charts.mkiv Does it work when you put the files and a document in the same folder? Can you show use your error message. Wolfgang
Fixed Thanks Wolfgang, Floris and Hans I think the problem was with some hidden extension in the filenames. After using wget, everything worked ok. Jorge Magalhães
participants (3)
-
Hans Hagen
-
Jorge Manuel
-
Wolfgang Schuster