[ANALYTICS-163] Provide a chart type which support dynamic generation of series Created: 19/May/20  Updated: 02/Jul/20  Resolved: 25/Jun/20

Status: Closed
Project: Analytics
Component/s: None
Affects Version/s: None
Fix Version/s: 1.2

Type: Improvement Priority: Neutral
Reporter: Ilgun Ilgun Assignee: Yen Lac Tue
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 1h
Time Spent: 5d 6h 55m
Original Estimate: Not Specified

Attachments: PNG File dynamic-series-configuration.png     PNG File image-2020-06-25-13-32-18-653.png    
Issue Links:
causality
is causing ANALYTICS-175 Error duplicate dashboard dynamic-lin... Closed
dependency
is depended upon by ANALYTICS-174 Change datasupplier config in ab-test... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Documentation update required:
Yes
Date of First Response:
Epic Link: ABTEST MVP
Sprint: Add-Ons 40
Story Points: 8

 Description   

In AB testing we need multiple series to display multiple results for multiple variants, however, we don't know how many variants we will end up within the beginning. Therefore, we need to achieve a dynamic generation of series in Analytics based on some kind of grouping mechanism.

https://www.amcharts.com/docs/v4/tutorials/multi-series-shared-tooltip-with-colored-bullets/

Conversation rate chart:

https://preview.uxpin.com/6d073bb3a8ea49f4d1f820f5bc47c39ad3b73e1d#/pages/116232209/simulate/sitemap

AC

  • Grouping mechanism to enable dynamic series
  • Only accept one type of series


 Comments   
Comment by Yen Lac Tue [ 25/Jun/20 ]

Dear jlegendre,

I put some step here for dynamic series configuration.

  • chartType need to define with this new type: 
class: info.magnolia.analytics.amcharts.data.configuration.DynamicSeriesAmChartType
  • prefixRootJsonPath: root of variants in json data
  • seriesTemplate: configurate as normal series
  • jsonPath: specify data value to display

Note: the jsonPath configuration here does not need to contain root path, at runtime it will be combined by prefixRootJsonPath + indexOfSeries + jsonPath.

Currently we support 2 type of series: LineSeries and ColumnSeries

Please help to contact me if you have any question!

Thanks,

Yen Lac

 

Generated at Sun Feb 11 23:16:09 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.