allinurl / goaccess

GoAccess is a real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems or through your browser.
https://goaccess.io
MIT License
18.26k stars 1.1k forks source link

Specify different `perPage` values for different panels #2642

Open rc5hack opened 6 months ago

rc5hack commented 6 months ago

Is there a way to re-define perPage setting per panel?

E.g. for visitors panel set perPage=20, for browsers panel set perPage=5, for all others panels (default report-wide) set perPage=10?

This --html-prefs= doesn't work:

{"perPage":10,"showTables":true,"visitors":{"plot":{"perPage":20,"chartType":"area-spline"}}}

This doesn't work too:

{"perPage":10,"showTables":true,"visitors":{"perPage":20,"plot":{"chartType":"area-spline"}}}
allinurl commented 6 months ago

Right now, there isn't a setting for per-page per panel. The settings on the left-hand sidebar apply to the entire report. To have per-panel settings, we'd need to implement this as a separate option. Are you familiar with JS? it shouldn't be too difficult to add this feature, e.g., JS lines.