Sisense Community logo
    • Community Feedback
    • Chapters
    • Events
    • Forums
      • Help and How To
      • Product Feedback Forum
      • Strategy & Use Cases
    • Blogs
    • KB Docs
      • KB Docs
      • Add-Ons & Plug-Ins
      • APIs
      • Best Practices
      • Blox
      • CDT
      • Cloud Managed Service
      • Data Models
      • Data Sources
      • Embedding Analytics
      • How-Tos & FAQs
      • Onboarding
      • PySisense
      • Security
      • Sisense Administration
      • Sisense Intelligence & AI
      • Troubleshooting
      • Widget & Dashboard Scripts
    • Support
    • Learning
      • Sisense Academy: Free Courses and Certifications
      • Official Developer Documentation
      • Official Product Documentation
      • Official Sisense Youtube Channel
      • Sisense Compose SDK Playground
    • Use Case Gallery
    All PostsDiscussionsBlogsIdeasQuestions
    Leaderboards
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
    Discussions
    • Help and How-ToChevronRightIcon
    how to change the color of data bar in pivot table
                     
             

    I want to change the color of data bar in pivot table. I found a related post from 2023 (Change Color Of Data Bars In Pivot (sisense.com)) but it's not working for me. Please let me know if there is any other method. 

    merinsverghese
    merinsverghese
    Posted 1 year ago·Last reply 1 year ago
                                           
             
    2 comments

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       
                   
    Helena Ferreira

    Helena Ferreira

    ·1 year ago

    Hi merinsverghese ,

    It looks like since that post the class changed.

    Try with the following script. It should work now:

     
    widget.on('ready', function(se, ev){
        
        $('.sisense-pivot__data-bar-bar', element).css('background-color', 'red');
    })
    Please let me know if this works for you : )

    Always here to help,
    Helena from QBeeQ
    helena.ferreira@qbeeq.io
    QBeeQ - Gold Implementation and Development Partner

                                           
    merinsverghese

    merinsverghese

    OP1 year ago

    It Worked. Thank you.

    Regards,

    Merin

                                           
                                                                                     
    •                                                              
    •                                                              
    •