Implement UserDimensionsPieChart component for new All Traffic widget
#2425
Comments
|
@felixarntz this is ready for IBR. Once again, moved implementation details from AC to IB section and updated AC to describe the expected outcome of this ticket. Let me know if it's okay for you. |
|
@eugene-manuilov I think overall this looks good, however I'd prefer if we kept ACs untouched or only changed them after discussing the changes. For example, not everything you moved to the IB isn't also valuable for the ACs (for example the handling of more than 5 elements for the piechart). For ACs that include implementation details, it's okay in the IB to list those parts only briefly with "see the ACs for details", while expanding on the parts that the ACs does not cover as much. Let's do that for the future. IB |
Ah.. yes, you are right, I have added it back to the AC. |
|
@marrrmarrr @felixarntz while working on this ticket I found that the tooltip designed in the Figma file is quite confusing because it is not clear to which number the change belongs. Here is the screenshot from the Figma file: It shows 6.3% growth, but it's not clear what exactly has grown: the percent number or the absolute number of users? If it is the percent growth, then is it growth from 37.74% to 40% (by 6.3%) or absolute number growth from 33.7% to 40% (on 6.3%)? So, I have decided to simplify it a little bit and removed the percent numbers from tooltips since they are already available on the pie slices. The following is what I have come up with. If it doesn't work for you, please, let me know how you want it to display: |
|
@marrrmarrr @felixarntz also one more thing that I have found is that there is no way to change the background color for the legend item of the selected slice and make the highlight line of the selected slice thicker. I have looked through the documentation of the Google Charts library and haven't found anything that can help to achieve it. Can we leave the current styles or should we do something else? |
|
@eugene-manuilov I've discussed this with @marrrmarrr. Some replies:
|
Unfortunately, I think we can't do it with the current functionality of the google charts library.
Yes, it works as required but it doesn't let us use the exact style for the selected legend item. When I click on a legend item, the appropriate pie slice is highlighted. |
QA Update: Fail
|
Hm... it's definitely not expected. @felixarntz what do you think if I turn off "Others" for the channel dimension if it already has
Unfortunately, we can't control it.
Hm... good catch... I'll work on it. |
|
@wpdarren can you add me to your GA account so I can see the negative value issue on my end as well? |
|
@eugene-manuilov Regarding the "(other)", I agree that's confusing, but it's expected right now because the way that the API segments that is likely different from our approach for "Others" (which is to simply cut off entries other than the first five). We cannot omit "Others" because to us "(other)" is a dimension like any other, and it looks like the Google API response also has entries after that, which wouldn't be reflected if we just stripped our "Others". Let's think about this separately and not worry about it as part of the initial implementation. |
|
@wpdarren see Felix's reply above ^. Could you please create a follow-up ticket for it? The remaining part is the negative values issue which I can't reproduce atm on my local |
QA Update: Fail
|
|
@wpdarren this is what Google returns to us. We can't modify labels there. |
|
@eugene-manuilov in that case, this ticket passes! Thank you for your patience. QA Update: Pass
|








After scaffolding the
UserDimensionsPieChartcomponent in #2392, it should now actually be implemented.Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
UserDimensionsPieChartcomponent for the new All Traffic widget following these instructions:<GoogleChart/>component to display the chart and should encompass the UI around the pie chart in the bottom right corner of the widget (see Figma file), including the legend below.core/formsstore viagetValue( FORM_ALL_TRAFFIC_WIDGET, 'dimensionName' ). If not set, the default should bega:channelGrouping.ga:usersand the dimensiondimensionName(see above), dates based on the current date range, and optionally the current entity URL, if there is one.getServiceReportURL( 'trafficsources-overview' )(#2428 will improve this).DashboardAllTrafficWidgetV2should have its setup updated, to populate the registry with corresponding test report data, so that the UI rendered byUserDimensionsPieChartis visible there.Test Coverage
Visual Regression Changes
QA Brief
Changelog entry
UserDimensionsPieChartcomponent for new Analytics All Traffic widget.The text was updated successfully, but these errors were encountered: