![](https://secure.gravatar.com/avatar/a73b6179bd41aeb531a190f0344fbcf8.jpg?s=120&d=mm&r=g)
Hi,
I have added an 'advanced' type for line & bar graphs to handle the use
case for -ve y-values / 4th quadrant graphs. It works similar to 'basic'
but works for -ve y-values (i.e. for the 4th quadrant).
PFA the amended lua file (zip file) and sample of line graph.
\def\edudataone{-10,35.55,-20.0,33,31,-25,-32}
\def\yearlabelstwo{2013,2014,2015,2016,
2017}
\linechart[basic][
ylength=5,
xscale=1.6, yscale=0.1,
left=0.5,
distance=1.2,
linecolor=limegreen, linewidth=1.5,
dotscolor=islamicgreen,
dotswidth=8, dotslabels=yes,
axesunits=yes,
xunit=Year,
yunit=Number of graduates
(thousands)][
data={\edudataone},
xlabels={\yearlabelstwo}]
\linechart[advanced][
ylength=5,
xscale=1.6, yscale=0.1,
left=0.5,
distance=1.2,
linecolor=limegreen, linewidth=1.5,
dotscolor=islamicgreen,
dotswidth=8, dotslabels=yes,
axesunits=yes,
xunit=Year,
yunit=Number of graduates
(thousands)][
data={\edudataone},
xlabels={\yearlabelstwo}]
It will be fantastic to get some feedback on this from the original authors
and also next steps to add this across all the relevant charts.
Thank you,
best regards,
Ramkumar
On Sat, Aug 21, 2021 at 3:23 PM Ramkumar KB
Dear List,
I have been exploring the use of the awesome statistical-charts https://akela.mendelu.cz/~thala/statcharts/ module. So first of all, a big thanks to the authors of the same.
I seem to have hit a snag when it comes to handling of -ve values. In my example (attached tex & pdf), the y-axis labels and the grids do not seem to be working on the -ve side (also, able to flip labels above x-axis for -ve values). This seems to be the case of column charts and bar charts (and I will test this for the other types of charts also).
If this is a more generic issue across all the types, then I can contribute towards enhancing it (as any charts module should handle -ve values). Any tips or pointers would be really helpful.
Thank you very much.
best regards,