-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sitekit Dashboard Locations Label Placement #2660
Comments
Note: it is possible to recreate the effect of this bug on the 'channels', 'locations' and 'devices' tabs of the chart by changing the Edit: the above will visually recreate the issue, but just by telling the chart to only show one slice. To recreate the bug, the report prop itself must be modified to only contain one row of data, as described above in the QA brief. |
When there is only a single row in the data as here, it seems the default behaviour of the chart is to put '100%' in the middle. The problem is that we are overlaying a We have a couple of options here:
Some (slightly rough and ready) examples to help visualise:
@felixarntz Let me know your preference, and I'll put together an IB 👍 |
@johnPhillips The I agree that for 100% showing that number is somewhat pointless anyway since it is immediately visible because there is just one big slice for the entire pie. |
IB ✅ |
Fix all traffic widget label when there is only a single row of data (#2660)
QA ✔️ |
Bug Description
Site Kit Dashboard label for Locations overlaps with the text 'BY' when 100% of traffic comes from one location.
Steps to reproduce
Screenshots
Additional Context
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
report
prop forUserDimensionsPieChart
only has 1 row:pieSliceText = 'none'
to theUserDimensionsPieChart.chartOptions
. This will hide the '100%' text that appears in the centre of the pie.Test Coverage
Visual Regression Changes
Dimension
is 'Channels', 'Locations' or 'Devices'. There should be no '100%' text.QA Brief
To recreate the issue in WP:
assets/js/modules/analytics/components/dashboard/DashboardAllTrafficWidget/index.js
so thatpieChartReport.[0].data.rows
only contains one row, for example:Changelog entry
The text was updated successfully, but these errors were encountered: