Page 1 of 2
multiseries chart response property
Posted: Mon Dec 28, 2020 2:02 pm
by Wendy
I've done some searching on the chart response property, but I haven't come across anything that says that it will NOT work on a multi-series chart. But in fact, when I click on a bar in my mscolumn2d type chart, nothing happens. Control never passes back to my program.
Does anyone know that this is the way it is meant to work? Or can you tell me how I can pass the x-axis value back to the program on a multi-series chart?
Hopefully I'm just missing something very simple.
Thank you,
Wendy
Re: multiseries chart response property
Posted: Mon Dec 28, 2020 2:31 pm
by Wendy
I believe the answer just came to me...
Because I'm using json to build the multi-series chart, the x-axis is just a bunch of labels. The screen format has no actual value for the axis'. Therefore the chart response property can't work.
Re: multiseries chart response property
Posted: Mon Dec 28, 2020 3:29 pm
by Scott Klement
Hi Wendy,
To the best of my knowledge, chart response should work with a chart that you built with JSON. You can see the underying code here:
https://github.com/ProfoundLogic/profou ... s/chart.js
Look under pui.widgets.addJSONChartLinks and pui.widgets["doChartLink"] and you can see how it executes the chart response when you pass your chart as a json document.
That said, I haven't tried it myself.
Re: multiseries chart response property
Posted: Mon Dec 28, 2020 3:36 pm
by Wendy
Oh very good! I'll study up, and give it a try.
Thank you!
Wendy
Re: multiseries chart response property
Posted: Tue Feb 02, 2021 10:39 am
by pjshuey
Scott,
I am working on a multi-series chart now (mscombidy2d) and cannot get the chart response to work....it always returns to the program with a blank value. I don't think the issue is that the chart is built with json, I think it is an issue with it being a multi-series chart. Do you have any examples of this scenario working?
Thanks for your help!
Patti
Re: multiseries chart response property
Posted: Tue Feb 02, 2021 3:06 pm
by Scott Klement
I don't have a prebuilt example, sorry.
If you post something I can load/run on my system, I'll play around and see if I can get it working.
Re: multiseries chart response property
Posted: Tue Feb 02, 2021 5:08 pm
by pjshuey
Scott,
I attached the screen json. Would you like the rpg too? I'm not sure how to get you that.
Re: multiseries chart response property
Posted: Tue Feb 02, 2021 5:48 pm
by Scott Klement
Can you run the application, bring up the screen (make sure there's nothing private or confidential -- remember these are public forums, everyone in the world can see them) and press Ctrl-F9? You'll get a file named json.txt that you can attach to a forum message.
This will create a dump that combines your screen format with the data sent from your program. This would be much easier for me than trying to recreate your RPG program.
Re: multiseries chart response property
Posted: Wed Feb 03, 2021 9:22 am
by pjshuey
Because of the data on this screen and the time it would take me to create "fake" data, could I email the file directly to you rather than post it publicly?
Re: multiseries chart response property
Posted: Wed Feb 03, 2021 10:38 am
by Scott Klement
Sure, you can send it to
support@profoundlogic.com