Plotly.js in servoy

Questions and answers on developing, deploying and using plugins and JavaBeans

Plotly.js in servoy

Postby ankit.insonix » Wed May 25, 2016 9:36 am

Hi,
I am new in Servoy and I want to know how we can use external JS/HTML files in servoy.
Basically client already has an a swing application running as smart client and my job is to embed charts for the data that the application is producing. For charts, we are using
plotly.js and I need a way to find out how the charts made in HTML using plotly can be embedded in Servoy application.
Thanks
Ankit
ankit.insonix
 
Posts: 2
Joined: Wed May 25, 2016 8:54 am

Re: Plotly.js in servoy

Postby ROCLASI » Wed May 25, 2016 10:14 am

Hi Ankit,

First of all welcome to the forum, I see this is your first post.

Showing HTML inside smart client you would normally use the HTML_AREA but there is one downside to that (other than it renders using an ancient renderer), it doesn't execute any JavaScript. However since Java 7 there is the JFXPanel Bean that acts like a modern browser which you could use.

Here are some references:
https://wiki.servoy.com/display/public/ ... Panel+Bean
https://github.com/Servoy/svyJFXWebView

Hope this helps.
Robert Ivens
ROCLASI Software Solutions / JBS Group, Partner
SAN Developer / Servoy Valued Professional / Servoy Certified Developer
Twitter: @roclasi / @servoyforge
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5205
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: Plotly.js in servoy

Postby ankit.insonix » Thu May 26, 2016 9:26 am

Thanks for reply.

I am using Servoy 8 and I want that same thing in Servoy 8. Is there any possibility if yes then how we can achieve (How to use external HTML/JS files in Servoy 8). Please share any demo if you have.

Thanks
Ankit Sood
ankit.insonix
 
Posts: 2
Joined: Wed May 25, 2016 8:54 am

Re: Plotly.js in servoy

Postby juan.cristobo » Thu May 26, 2016 9:37 am

Hi Ankit, I use Google charts API to show charts in Servoy, it could help you...
https://www.servoy.com/forum/viewtopic.php?f=15&t=19995#p107716
Juan
Madrid (Spain)

Servoy 7.4.x - MySQL / SQL Server 2008-2016
Windows 10 Pro
juan.cristobo
 
Posts: 178
Joined: Thu Apr 19, 2012 9:12 am

Re: Plotly.js in servoy

Postby Andrei Costescu » Thu May 26, 2016 10:00 am

If you want it for SmartClient try JFXPanel/svyJFXWebView as Robert suggested. It should work in Servoy 8 as well.
In Servoy 8 you also have NGClient - a big part of which is running in the browser. It is an angular-based application to which you can add custom made components. It should be even easier to integrate it if you are planning to move to NGClient.
Andrei Costescu
Servoy
Andrei Costescu
 
Posts: 902
Joined: Tue Jun 26, 2007 3:14 pm


Return to Plugins and Beans

Who is online

Users browsing this forum: No registered users and 3 guests