Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

 + recommendation for testing: right click on folder → Run → Run as → SAP Fiori Launchpad Sandbox 

How to implement graphomate library

 + creating resource folder
 + importing the zipped graphomate library
 + adjusting the manifest.json → "resourceRoots" & "libs"
 + in some cases .project.json is troublemaker → try to remove 


Tutorial:

 + right click on Workspace → New → Project from Template (Ctrl+Alt+Shift+E)
 + SAPUI5 Application with SAPUI5 Version 1.44 *next → Project Name tutorialProject *next → set View Type to XML *finish
 + include your zipped graphomate library into the resource folder by right click on res → Import → From File System 
 + change your manifest.json to the correct paths of your resource folder by adding a "resourceRoots" property to your "sap.ui5" property and add value "graphomate.ui.charts": {} to libs under "dependencies" 
 + to create a chart in your xml we need to define the namespace first by adding xmlns:charts="graphomate.ui.charts"
 + you can now create your chart by using <charts:Chart series1="XXX" ="X,Y,Z" width="XXpx" height="XXpx" ... >


Known Issues:

 + sometimes when using the sandbox or by using deployed apps on your launchpad you might face an 503 Error or "Uncaught SyntaxError: Unexpected token <", which doesn't allow to open your app properly. Try to click on the upper left icon and log out and in again. This should fix this bug. (Tip: Anonymous may not using apps as far as we know)
 + Sometimes you need to clear your cache so libraries can load properly (F12 → Ctrl+Shift+R)
 + It is recommended to add seriesLabels and aggregations through your Controller and not your View, so far absolute Deviations and seriesLabels are not working in correct in pure XML
 +