Skip to content

Commit

Permalink
hide visitor legend for hourly view
Browse files Browse the repository at this point in the history
  • Loading branch information
kangzj committed Dec 8, 2024
1 parent 272e323 commit 2e4515b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/my-sites/stats/site.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,10 @@ class StatsSite extends Component {
}

getAvailableLegend() {
const { period } = this.props.period;
const activeTab = getActiveTab( this.props.chartTab );
return activeTab.legendOptions || [];
// TODO: remove this when we support hourly visitors.
return period !== 'hour' ? activeTab.legendOptions || [] : [];
}

navigationFromChartBar = ( periodStartDate, period ) => {
Expand Down

0 comments on commit 2e4515b

Please sign in to comment.