WP Residence Help WP Residence Help

  • WPRESIDENCE
  • Video Tutorials
  • Client Support
  • API
Home / Technical how to | Custom Code Required / Techinal how to: Change the color of the bars in the Statistics View section

Techinal how to: Change the color of the bars in the Statistics View section

1635 views 0

The color of  view bar can be changed from wpresidence\js\property.js

 

 

You need to add backgroundColor like this

datasets: [
{
label: wpestate_property_vars.property_views,
backgroundColor:”rgba(228,190,110,1)”,
fillColor: “rgba(220,220,220,0.5)”,
strokeColor: “rgba(220,220,220,0.8)”,
highlightFill: “rgba(220,220,220,0.75)”,
highlightStroke: “rgba(220,220,220,1)”,
data: traffic_data
},
]

So statistics in Dashboard.

You can go into /wpresidence/js/ajaxcalls.js
At lines 31 and 110 (one is for user dashboard, other for property page) you have this

var data = {

labels:labels ,

datasets: [

{

label: “My First dataset”,

fillColor: “rgba(220,220,220,0.5)”,

strokeColor: “rgba(220,220,220,0.8)”,

highlightFill: “rgba(220,220,220,0.75)”,

highlightStroke: “rgba(220,220,220,1)”,

data: values

},

]

Change color as you per wish.

Technical how to | Custom Code Required

Related Articles

  • Technical: Change the Schedule Tour Email Text and the Form Default Message
  • Property list filter customization
  • Technical – How to Change the Minimum Image Dimensions for Property Uploads in WPResidence
  • Introduction to WPResidence Header Customization

Help Categories

  • 18Agent, Agency & Developers
  • 5Blog Posts & Blog Lists
  • 38Elementor Shortcodes Built-In
  • 45FAQ
  • 15Footer
  • 5Getting Started
  • 37Header
  • 2IDX & MLSImport
  • 6Installation & Setup
  • 23Installation FAQ
  • 23Maps & Location Settings
  • 21Multi-Language Third Party Plugins
  • 6Other Third party Plugins
  • 19Pages
  • 4Payments & Monetization
  • 20Property Lists, Categories & Archive
  • 36Property Pages & Layouts
  • 31Search & Filtering
  • 162Technical how to | Custom Code Required
  • 8Technical: Actions and filters
  • 6Technical: Child Theme
  • 86Theme Options & Global Settings
  • 6Translations & Languages
  • 16WPBakery Shortcodes
  • 51WPResidence / WPEstate CRM
  • 50WPResidence 5.0 Documentation
  • 8WPResidence Elementor Studio
  • 50WPResidence Translate Plugin

Join Us On

Powered by WP Estate - All Rights Reserved
  • WPRESIDENCE
  • Video Tutorials
  • Client Support
  • API