1

I have created a Matrix report with conditional highlighting. To display this report in visualforce page I'm using Analytics API in Apex. I'm getting all report data as expected but not getting metadata about conditional highlighting. Is there any api available to get the colors used in given report for conditional highlighting.

1 Answer 1

1

To get the metadata you're looking for you perform a describe on the report. See Get Dashboard Metadata which will show an example of the results that are returned, including the color information like in the snippet below:

  "visualizationProperties" : {

    "breakPoints" : [ {

      "aggregateName" : "s!AMOUNT",

      "breaks" : [ {

        "color" : "c25454",

        "lowerBound" : 100000,

        "upperBound" : 300000

      }, {

        "color" : "c2c254",

        "lowerBound" : 300000,

        "upperBound" : 800000

      }, {

        "color" : "54c254",

        "lowerBound" : 800000,

        "upperBound" : 1000000

      } ]

    } ],
1
  • For above solution I have to create a new dashboard.
    – Soham
    Commented Dec 22, 2016 at 14:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .