OS Property support center

SOLVED Energy Certificate Rows: Background Colour

More
7 years 2 months ago - 7 years 2 months ago #92998 by David
Hi, my site is serving the Irish region where there are 15 bands of energy rating.
OS Property allows me to enter these bands and the 15 rows appear.... but only the first 9 have background colours allocated.
Where in the code can I add colours for the remaining rows?

Many thanks
Attachments:
Last edit: 7 years 2 months ago by Mr. Dam.

Please Log in or Create an account to join the conversation.

More
7 years 2 months ago - 7 years 2 months ago #93129 by David
Replied by David on topic Energy Certificate Rows: Background Colour
Bump - surely someone has experience of this issue? I just need a pointer to what files to edit.
Thanks.
Last edit: 7 years 2 months ago by David.

Please Log in or Create an account to join the conversation.

More
7 years 2 months ago #93269 by Mr. Dam
Replied by Mr. Dam on topic Energy Certificate Rows: Background Colour
Hi David,
You can modify the file:
root > components > com_osproperty > helpers > common.php
Function: drawGraph
to add background for your EPC graph
Thanks
Dam
The following user(s) said Thank You: David

Please Log in or Create an account to join the conversation.

More
7 years 2 months ago #93299 by David
Replied by David on topic Energy Certificate Rows: Background Colour
That's perfect Dam. To anyone reading this later I simply added more background colours to the $energy_bg array.

Many thanks again.

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamNguyen Phu Quan