Phoca Download Chart Statistics Module Styling

Phoca Download - download manager
User avatar
buxster07
Phoca Member
Phoca Member
Posts: 24
Joined: 21 May 2018, 16:44

Phoca Download Chart Statistics Module Styling

Post by buxster07 »

Hello!

Is there a way to style the colors on the chart? I have a set of colors that marketing would like me to use, but I can not find the css for this module in order to change the fill color.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48550
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Download Chart Statistics Module Styling

Post by Jan »

Hi, this needs to be done directly in the code:
modules/mod_phocadownload_chart_statistics/mod_phocadownload_chart_statistics.php

There is no option for this so this needs to be set in Javascript for the Google Chart API :idea:

Jan
If you find Phoca extensions useful, please support the project
User avatar
buxster07
Phoca Member
Phoca Member
Posts: 24
Joined: 21 May 2018, 16:44

Re: Phoca Download Chart Statistics Module Styling

Post by buxster07 »

I did not see the "fill" attribute in this file. In particular, the element that I was hoping to style is a "g" or "rect" element. Is that editable in the php file specified? The html line looks like this:

<rect x="204" y="53" width="20" height="10" stroke="none" stroke-width="0" fill="#3366cc"></rect>
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48550
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Download Chart Statistics Module Styling

Post by Jan »

Hi, this code is not produced by the module but by the Google Chart API, so the colors should be added to the system per Javascript :idea:

Jan
If you find Phoca extensions useful, please support the project
Post Reply