Charts Component in Scout [message #1793071] |
Mon, 30 July 2018 13:55  |
Eclipse User |
|
|
|
Hello,
Can any one provide a snipped to develop charts component with scout framework.
It will be interesting to get an example of a working charting project.
In future release will those component be introduced by default in the framework ?
Kind Regards
|
|
|
|
Re: Charts Component in Scout [message #1793269 is a reply to message #1793195] |
Thu, 02 August 2018 12:58   |
Eclipse User |
|
|
|
Hello,
No, I did not found a solution for this issue until now, but do you have any idea if for example for next releases thare will be inbox Chart component within the scout framework.
Kind Regards
|
|
|
Re: Charts Component in Scout [message #1793276 is a reply to message #1793269] |
Thu, 02 August 2018 15:21   |
Eclipse User |
|
|
|
Hi,
there is no official chart widget provided by Scout, but it shouldn't be a big deal to use one of the many charting libraries in the internet. You basically have to create a custom field which acts as wrapper for the library. An example can be found here: https://scout.bsi-software.com/widgets/?dl=widget-heatmapfield. This field uses a library called leafletjs to visualize maps (https://leafletjs.com/). Maybe you want to start a GitHub project to share your results? ;-)
Using a server side library and creating an SVG is definitely an option as well, but the result is rather static. JavaScript based charts are probably more interactive and visually appealing (animations etc.).
Good luck
Claudio
[Updated on: Thu, 02 August 2018 15:24] by Moderator Report message to a moderator
|
|
|
|
Re: Charts Component in Scout [message #1793727 is a reply to message #1793711] |
Tue, 14 August 2018 15:43   |
Eclipse User |
|
|
|
Oueslati Anis wrote on Tue, 14 August 2018 08:43
uncaught TypeError: Cannot read property 'appendDiv' of undefined at http://localhost:8082/res/chartapp-all.js:14511
TypeError: Cannot read property 'appendDiv' of undefined
It's hard to tell from just this error message. Somewhere, you are calling the method appendDiv() on an object that is undefined. Here is an example of a call that would cause this error:
this.$doesNotExist.appendDiv('myclass');
I suggest you add a break point in the F12 developer tools at the error location and inspect the stack trace and the object properties. Can you post the code of your widget or at least a strack trace?
Regards,
Beat
|
|
|
|
Powered by
FUDForum. Page generated in 0.04307 seconds