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.
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.
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?
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
Zulfiqar,
You can also refer to https://github.com/URSpatial/WAB_AddShapefile for getting started..
Regards,
Krish
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
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,
Is the Infographics widget available in Portal? If no, how can I add that widget to Portal?
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,