Re: [Dev] Creating a widget web-component using existing charting libraries

2017-03-28 Thread Pawan Gunaratne
Thanks Udara ... On Fri, Mar 24, 2017 at 4:27 PM, Udara Rathnayake wrote: > I think you need to re-render the widget periodically, probably with a > setInterval(). > > On Fri, Mar 24, 2017 at 2:46 PM, Pawan Gunaratne wrote: > >> Hi all, >> >> Thanks all for

Re: [Dev] Creating a widget web-component using existing charting libraries

2017-03-24 Thread Udara Rathnayake
It was my mistake. We have used VizGrammer for DS2.X and continuing. On Fri, Mar 24, 2017 at 2:22 PM, Pawan Gunaratne wrote: > Hi, > > I need to clarify that gadget creation in carbon-dashboard, are we still > using that lgviz library or moved to VizGrammer ? > > Thanks. > > On

Re: [Dev] Creating a widget web-component using existing charting libraries

2017-03-24 Thread Udara Rathnayake
I think you need to re-render the widget periodically, probably with a setInterval(). On Fri, Mar 24, 2017 at 2:46 PM, Pawan Gunaratne wrote: > Hi all, > > Thanks all for providing those information. So with the use of > VizGrammer.js at the moment can we see the real time

Re: [Dev] Creating a widget web-component using existing charting libraries

2017-03-24 Thread Nisala Nanayakkara
Hi Pawan, AFAIK We are using vizGrammer library in widget generation in carbon-dashboards 2.1.x version. Please find the analytics libraries which is used in carbon-dashboards here[1]. [1] - https://github.com/wso2/carbon-dashboards/tree/2.1.x/apps/portal/libs/analytics-wso2_5.0.12 Thanks,

Re: [Dev] Creating a widget web-component using existing charting libraries

2017-03-24 Thread Dunith Dhanushka
Hi Pawan, VizGrammer.js is a rewrite of igviz.js, which has been deprecated at the moment. VizGrammar has lot of improvements over igviz.js on - Drill down capabilities - Interactiveness through event listeners - Improved visualization components - Wizard integration etc So we highly recommend

Re: [Dev] Creating a widget web-component using existing charting libraries

2017-03-24 Thread Pawan Gunaratne
Hi all, Thanks all for providing those information. So with the use of VizGrammer.js at the moment can we see the real time updates of widgets (eg : in a chart ) ? On Fri, Mar 24, 2017 at 2:36 PM, Dunith Dhanushka wrote: > Hi Pawan, > > VizGrammer.js is a rewrite of igviz.js,

Re: [Dev] Creating a widget web-component using existing charting libraries

2017-03-24 Thread Pawan Gunaratne
Hi, I need to clarify that gadget creation in carbon-dashboard, are we still using that lgviz library or moved to VizGrammer ? Thanks. On Thu, Mar 23, 2017 at 12:37 PM, Udara Rathnayake wrote: > Thanks Tharik! > > Updated my wso2-widget WC to use VizGrammer, but it seems we

Re: [Dev] Creating a widget web-component using existing charting libraries

2017-03-23 Thread Udara Rathnayake
Thanks Tharik! Updated my wso2-widget WC to use VizGrammer, but it seems we have a bunch of document.getElementById()s which is not going to search inside shadow roots. So this is not going to work :( . Let me look into other alternatives. On Thu, Mar 23, 2017 at 12:11 PM, Tharik Kanaka

Re: [Dev] Creating a widget web-component using existing charting libraries

2017-03-23 Thread Tharik Kanaka
Hi Udara, Igviz library is no longer used and we have replaced that with VizGrammar. In VizGrammar you can use draw() function to draw the chart in a div. If you want to insert records to update the chart you can use insert(). You can try samples [1] and all the library content along with samples

[Dev] Creating a widget web-component using existing charting libraries

2017-03-23 Thread Udara Rathnayake
Hi all, I'm trying to create a web component (wso2-widget) to try-out capabilities which we can incorporate in to our widget rendering framework. ​Within my renderWidget function[1] I'm using the usual igviz.plot but unable to draw the chart inside container element which exists inside a