Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
9 years ago
Solved

Gradient color Picker & slider in capabilities.json

Hello,

 

I'm actually working under API 1.7.0 for developing a custom visual. I'm looking for 2 objects in capabilities.json:

- Gradient Color Picker: from which we can pick a center color and the 2 boundries.

- Slider: Like for text Font size, but I want its maximym to be 100%.

 

Those objects already exist I saw them in some visuals. but I couldn't find them. Thank you for help

  • v-viig's avatar
    v-viig
    9 years ago
    1. Power BI Custom Visuals API doesn't support gradient. This feature will probably be included into API 1.8
    2. You might try to call your property as percentile. It works for the old API, but I'm not sure about the new API

     

    Ignat Vilesov,

    Software Engineer

     

    Microsoft Power BI Custom Visuals

    [email protected]

2 Replies

  • v-chuncz-msft's avatar
    v-chuncz-msft
    Community Support

    Anonymous,

     

    You may do research into valueType "fill" and "integer". It is the visual's responsibility to handle EnumerateVisualObjectInstancesOptions.

    • v-viig's avatar
      v-viig
      Community Champion
      1. Power BI Custom Visuals API doesn't support gradient. This feature will probably be included into API 1.8
      2. You might try to call your property as percentile. It works for the old API, but I'm not sure about the new API

       

      Ignat Vilesov,

      Software Engineer

       

      Microsoft Power BI Custom Visuals

      [email protected]