Select to view content in your preferred language

Esri Cedar Charts in webapp builder

3710
8
05-01-2016 01:09 PM
Zulfiqar_AliSoomro2
Deactivated User

Hi. I am trying to create a webapp builder widget of Esri Cedar Map Interaction Chart. Example - Filter Chart by Map Extent | Esri Cedar

I am unable to load the widget properly as whenever I add external d3 and vega files, my widget crashes.

Can someone help me create widget for Cedar Library with Basemap Interaction. Your support is appreciated.

0 Kudos
8 Replies
AdrianWelsh
MVP Honored Contributor

Zulfiqar,

Can you give more information on your widget crashing? Is there an error message?

And you may want to turn your 'discussion' into a 'question' in order to get more replies.

0 Kudos
Zulfiqar_AliSoomro2
Deactivated User

portal_error.jpg

Hi Adrian,

You can see the screeshot. I am using the demo widget to create the cedar charts. I am kind of new to widget development.

How do you add external javascript and css files in the widget?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Zulfiqar,

  Have you read the help document on adding 3rd party libraries?

Use other libraries—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers

or taken a look at the UseJQuery Sample widget?

C:\web-appbuilder-2.0\client\stemapp\widgets\samplewidgets\UseJQuery

KrishV
by
Frequent Contributor

Zulfiqar,

You can also refer to https://github.com/URSpatial/WAB_AddShapefile for getting started..

Regards,

Krish

0 Kudos
RajprabhuA
Deactivated User

If you want to user ceadar class in define, means you have to declare inside dojoConfig.packages 

{
name: 'd3',
location: 'https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6',
main: 'd3.min'
}, {
name: 'vega',
location: 'https://cdnjs.cloudflare.com/ajax/libs/vega/2.6.1',
main: 'vega.min'
}, {
name: 'cedar',
location: 'https://unpkg.com/arcgis-cedar@0.7.0/dist',
main: 'cedar.min'

in  init.js page

0 Kudos
DerekLaw
Esri Esteemed Contributor

All,

FYI, we added a new Infographics widget in the latest Web AppBuilder update in ArcGIS Online (June 2017). It meet might your charting needs.

Hope this helps,

BrianWebb3
Occasional Contributor

Is the Infographics widget available in Portal? If no, how can I add that widget to Portal?

0 Kudos
DerekLaw
Esri Esteemed Contributor

Hi Brian,

The Infographics widget is not currently available in Portal for ArcGIS 10.5.1, but will be added in a future release.

You can use Web AppBuilder for ArcGIS Developer Edition v2.5 - which includes the Infographics widget, to work with your Portal instance.

Hope this helps,