Re: [NTG-context] lmt_chart_bar with data from luacode

2021-07-24 Thread Jorge Manuel
Good Morning Yes, this works in the latest version. Thanks a lot. Jorge Magalhães ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

Re: [NTG-context] lmt_chart_bar with data from luacode

2021-07-24 Thread Floris van Manen
On 23/07/2021 23:56, Jorge Manuel wrote: I tried this code, but it didn't work. This is not my day. Using the latest version made it work here. .F ___ If your question is of interest to others as well, please

Re: [NTG-context] lmt_chart_bar with data from luacode

2021-07-23 Thread Jorge Manuel
Dear Hans I tried this code, but it didn't work. This is not my day. %%% \starttext \startluacode  document.samples = {  { 10, 30, 30, 40, 50 }  }  function document.dados()  return { { 10, 30, 30, 40, 50 }}  end \stopluacode \startMPcode  draw lmt_chart_bar [  samples =

Re: [NTG-context] lmt_chart_bar with data from luacode

2021-07-23 Thread Hans Hagen
On 7/23/2021 11:07 AM, Jorge Manuel wrote: Dear Sirs If I tried: \starttext \startluacode sample = {10,30,30,40}  function MP.GetP()  mp.print(sample)  end \stopluacode \startMPcode draw lmt_chart_bar [  width = 8cm,  height = 10mm,  samples = {lua.MP.GetP()} ,  trace = true,  

[NTG-context] lmt_chart_bar with data from luacode

2021-07-23 Thread Jorge Manuel
Dear Sirs If I tried: \starttext \startluacode sample = {10,30,30,40}  function MP.GetP()  mp.print(sample)  end \stopluacode \startMPcode draw lmt_chart_bar [  width = 8cm,  height = 10mm,  samples = {lua.MP.GetP()} ,  trace = true,  maximum = 100,  linewidth = 1mm,  showlabels = false,