GanttChart custom visualization for Wyn Dashboards
Steps to run the sample:
- Install wyn-visual-tools globally. Run 'npm install @grapecity/wyn-visual-tools -g ' from command prompt.
- Change directory to the sample's location and run 'npm install' to install all required modules.
- Run 'wyn-visual-tools develop' to start the development server.
- Open Wyn Enterprise portal in your browser. Go to Admin Portal > Dashboards Settings and enable the developer mode.
- Go back to Document Portal, open an existing Dashboard or create a new one. Then add a dev tools scenario from Custom Visualization tab on to the Dashboard Designer.
- Develop the custom visual using visual api. We suggest to develop it using typescript and less as we have prepared the work flow to make it easy to build.
- Click Refresh button on action bar of the visual to reload the visual.
Steps to generate .viz file:
- Update the version in package.json and visual.json before release.
- Pack the visual by build tools. Run 'wyn-visual-tools package' command. This command will generate a file with extension 'viz'.
- Upload the viz file to your Wyn Enterprise server using the Resource Portal.
- Go to Admin portal > Documents > Visualization.
- Click on the options icon (3 vertical dots) in the same row as the visualization (eg. Gantt Chart) and select 'Configurations'
- In the dialog set 'Use Sandbox Restriction' to False and click Save.
- The visual will appear under the Custom Visualization tab on the Dashboard Designer.
Optional Steps:
- Edit the visual.json to include some meta info about this visual.
- Edit the capabilities.json to add configuration about data bind, inspector, action bar.
- Add i18n resource to i18nResources folder.
- Add image to assets folder.