Install a Domo Brick app
Go to the Domo Appstore and search for “ddx”



Edit and customize your app
After selecting “Edit Card” from the wrench menu, you can:
- Change the datasets or columns the app is using
- Change the style or colors through the CSS tab
- Add a link or import your favorite JS framework on the HTML tab
- Write your custom code on the JavaScript tab
Things to remember
- Only the person that installed the app is able to edit the app. You can use “Save as” to make your own copy.
- You will need a token to use Google Maps or Mapbox.
- Always be cautious when displaying user supplied or dataset data in HTML. See tips on sanitizing below.
Import Libraries
Using a CDN (Content Delivery Network)
Use a CDN to pull in your favorite libraries and frameworks (jQuery, d3, Vega, Phoenix, etc.)Using fonts
Using custom fonts in your app, by loading them in the HTML tab:
Charting examples
Sanitize Your Data
When you cannot 100% guarantee that the data you are working with is safe and that it will always be non-malicious in the future, you should take steps to first sanitize the data before you place it into HTML. You may consider doing something similar to the following to ensure the text you are displaying is safe to use:
- https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Safely_inserting_external_content_into_a_page
- https://owasp.org/www-community/xss-filter-evasion-cheatsheet
Debug Your App
- You can place a “debugger” line in your code to tell the browser “stop here”, when it gets to executing that line. See line 42 below for an example. This allows you to see what the variables have stored in them at that point in time.
- You can also use a “console.log” to print out something to the console when it gets to executing the code at that line. An example is shown on line 44 below.