APIs & Domo Developer

APIs & Domo Developer

Scatter graph marker color.

Member
edited July 2022 in APIs & Domo Developer

Hey, I'm currently trying to change the color of the marker between set ranges (1-12)(12-26)(26+).

Does anyone have any advice on doing this in the DDX scatter graph?

Thanks

Tagged:

Answers

  • Assuming you're using the Phoenix DDX Scatter plot example here but you can specify the colors you're graphing in the options dictionary and then pass that into your Chart call when charting your graph.


    1. const customColors = [
    2. '#002159',
    3. '#03449E',
    4. '#0967D2',
    5. '#47A3F3',
    6. '#BAE3FF'
    7. ];
    8.  
    9. var options = {
    10. colors: customColors,
    11.     width: size.width,
    12.     height: size.height,
    13.     properties: propertyOverrides
    14.   };
    **Was this post helpful? Click Agree or Like below**
    **Did this solve your problem? Accept it as a solution!**

Welcome!

It looks like you're new here. Members get access to exclusive content, events, rewards, and more. Sign in or register to get started.
Sign In