Is it possible to have a views chart that would show how many active users exist on the website?

Comments

isall’s picture

Hi Drupaljoe, I'm wandering why one would link to use a chart for this task. Because all you have is Sum of Active uses. e.g, 100 e.t.c.

Though with views charts you can do it. but your chart will be painted with one color.
Here is what you have to do:
- Create view of type: user
- go to advanced section and set aggregation:Yes.
- Add UID field under fields section
- Settings for Aggregation use SUM
- Under filters add a field user: Active (yes)
- don't add sort criteria
- Format Use Chart. That will give you the chart.

Hope that will help.

fenda’s picture

Sorry I missed a crucial part in my question.

I'd like to show the active users over time. So it would need to be a line graph with X as time and Y as user count. Would this be possible? Or would I need to code it directly?

13rac1’s picture

Status: Active » Fixed

Drupal doesn't store "User count over time" you'll need to store that data, then code the chart.

fenda’s picture

Status: Fixed » Needs work

But it stores when a user was created. Can't we just use that?

13rac1’s picture

If that data works for you, then yes. Either way, you must custom code the chart.

13rac1’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.