API Connect

API Connect

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#API Connect
#Applicationintegration
#APIConnect
 View Only
  • 1.  APIC v10 saas version - change color of the Analytics chats for apllications and customer orgs on developer portal

    Posted Thu March 07, 2024 08:22 AM

    We need to customise the developer portal so that the colours corresponding to different values on the charts can be changed.
    Specifically, on the doughnut chart we want all 200xx responses to be red and the 500xx responses to be grey.
    It looks like the charts implemented with Carbon Charts https://charts.carbondesignsystem.com/?path=/story/utility-colors--custom-colors-line.
    However, we are still trying to figure out how to access the transcodification parameters to implement a new colour scheme with custom colours without running the risk of getting into trouble after future upgrades. Changing only the subschema is definitely not enough.
    Please help if there is a documented way to do this.



    ------------------------------
    Edouard CHEVTCHOUK
    ------------------------------


  • 2.  RE: APIC v10 saas version - change color of the Analytics chats for apllications and customer orgs on developer portal

    Posted Fri March 08, 2024 01:40 AM

    You can't access anything in the JavaScript, so won't be able to do anything with carbon charts.

    You can apply custom css but that's basically it, and I don't think that will be sufficient to do what you want.

    from a usability point of view wanting to highlight success calls in red is a bit of a bizarre decision.



    ------------------------------
    Chris Dudley
    ------------------------------



  • 3.  RE: APIC v10 saas version - change color of the Analytics chats for apllications and customer orgs on developer portal

    Posted Fri March 08, 2024 02:05 AM

    Thank you, Chris, for the attention to our plight. Imagine you want to create diagrams for people who cannot see colours, so you have to change the usual and obvious "traffic light" scheme to something different, such as the different shades of grey. This is the reason why we have to avoid some colours in order to comply with corporate identity requirements. Again, we do not ask why this is important to them. There are always reasons beyond our understanding, as described in Herbert Simon's work on bounded rationality. He won a Nobel Prize for his discovery, by the way. See https://pubmed.ncbi.nlm.nih.gov/14584993/. The people who are asking us to implement this change have been very successful in their decisions so far. We respect their wisdom, so we are simply trying to get this done by any reasonable means. Do you think we could modify the code of the portal or use some custom drupal hooks or will it be too risky from the perspective of patching the next version?



    ------------------------------
    Ephraim Gadsby
    ------------------------------



  • 4.  RE: APIC v10 saas version - change color of the Analytics chats for apllications and customer orgs on developer portal

    Posted Fri March 08, 2024 03:06 AM
    Edited by Ephraim Gadsby Fri March 08, 2024 03:07 AM

    I agree that for the majority of cases applying the standard red green orange pattern is the way to go, and for the main scenario there is no interest to add parameters here.  I was just trying to figure out how to use the flexibility of drupal to hack this trough.



    ------------------------------
    Ephraim Gadsby
    ------------------------------



  • 5.  RE: APIC v10 saas version - change color of the Analytics chats for apllications and customer orgs on developer portal

    Posted Fri March 08, 2024 03:17 AM

    I dont think drupal can help you here. This is being rendered by client side javascript not by drupal.

    A drupal theme can override the CSS but thats all it can do.

    A custom module could replace the javascript with your own - but that would be quite likely to break in future APIC updates.

    If they have a valid requirement then you can raise it as an RFE for consideration in the product - the RFE would need to be around the actual colour changes they want, I think an RFE to be able to customise the chart rendering is pretty unlikely to happen simply due to how the code works.

    For now I think the simple answer is "you can't", I'm afraid.

    The current colours pass accessibility testing as far as I know. There are a lot more HTTP status codes than you might think so there is quite a list of colours that chart uses. It even supports "418 I'm a Teapot"! ;-)



    ------------------------------
    Chris Dudley
    ------------------------------