From 88b43c64048070fd5fcb2eb23bcefc733c57547d Mon Sep 17 00:00:00 2001 From: Hoang Huu Date: Wed, 11 Sep 2019 17:12:42 +0700 Subject: [PATCH] Fix chart color --- templates/single-property/views-statistics.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/templates/single-property/views-statistics.php b/templates/single-property/views-statistics.php index 2f1b537b..734e9c98 100755 --- a/templates/single-property/views-statistics.php +++ b/templates/single-property/views-statistics.php @@ -10,6 +10,7 @@ $limit = opalestate_get_option( 'single_views_statistics_limit', 8 ); $stats = new Opalestate_View_Stats( $property->get_id(), $limit ); $array_label = json_encode( $stats->get_traffic_labels() ); $array_values = json_encode( $stats->get_traffic_data_accordion() ); +$chart_color = apply_filters( 'opalestate_chart_color', '#2f73e9' ); ?>
@@ -33,11 +34,11 @@ $array_values = json_encode( $stats->get_traffic_data_accordion() ); labels: labels, datasets: [{ label: label, - borderColor: "#2f73e9", - pointBorderColor: "#2f73e9", - pointBackgroundColor: "#2f73e9", - pointHoverBackgroundColor: "#2f73e9", - pointHoverBorderColor: "#2f73e9", + borderColor: "", + pointBorderColor: "", + pointBackgroundColor: "", + pointHoverBackgroundColor: "", + pointHoverBorderColor: "", pointBorderWidth: 1, pointHoverRadius: 1, pointHoverBorderWidth: 1,