Custom Palette with MongoDB does not work

Closed
Chern Yu Zi asked on November 1, 2024

Hi, 

Would like to point to the existing example of customizing color palettes: https://jsfiddle.net/flexmonster/xLnrehoz/

I realized that when connected to MongoDB via MongoDB connector, the code in the jsfiddle does not work as pivot.getMembers() does not return the members of that row/column.

Please do advise on what I can do.

Thanks!

4 answers

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster November 1, 2024

Hello, Chern Yu Zi!

Thank you for reaching out to us.

Kindly note that for "api", "elasticsearch", or "microsoft analysis services" data source, getMembers() API call returns the list of members in the method's callback.
We have prepared a JSFiddle to illustrate the idea: https://jsfiddle.net/flexmonster/hzs3y0xk/.

You can check out our docs for more details: https://www.flexmonster.com/api/getmembers/#other-data-source-types.

Regarding the Flexmonster Pivot Charts, we also wanted to mention the approach of changing chart colors via CSS: https://www.flexmonster.com/doc/customizing-pivot-charts/#changing-colors.

Hope you will find our answer helpful.

Kind regards,
Solomiia

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster November 12, 2024

Hello, Chern Yu Zi!

Hope you are doing well.

Our team is wondering if you had some time to check the suggested approach to fetch members in the getMembers() callback. Could you please let us know if members are returned correctly using this approach?

Looking forward to hearing from you.

Kind regards,
Solomiia

 

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster 2 days ago

Hello, Chern Yu Zi!

Hope you are having a great week.

Just checking in to ask if fetching members in the getMembers() callback works well for your case.

Looking forward to hearing your feedback.

Regards,
Solomiia

 

Public
Chern Yu Zi 12 hours ago

Yes, thanks Solomiia!

This question is now closed