[ANALYTICS-50] Create amCharts configuration bean or using json template Created: 20/Mar/19 Updated: 01/Apr/19 Resolved: 28/Mar/19 |
|
| Status: | Closed |
| Project: | Analytics |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 1.0 |
| Type: | Story | Priority: | Neutral |
| Reporter: | Oanh Thai Hoang | Assignee: | Oanh Thai Hoang |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| 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)
|
||||||||||||
| Epic Link: | Analytics backend | ||||||||||||
| Sprint: | Add-Ons 8 | ||||||||||||
| Story Points: | 3 | ||||||||||||
| Description |
|
We need the structure/or json template for rendering AmCharts . Needed output is Json string to set to info.magnolia.analytics.api.vaadin.ChartState#chart May consider the converter to convert generic JsonNode from dataprovider to chart configuration If you want to work with Json bean, you may copy some classes from https://git.magnolia-cms.com/projects/SERVICES/repos/ui-chart/browse/magnolia-ui-chart-amcharts/src/main/java/info/magnolia/ui/chart/amcharts/configuration
Chart document: https://www.amcharts.com/docs/v4/getting-started/using-javascript/
Output: I decide to use json template and introduce AmChartDefinition for special configuration as serries type and json generate class configuration so that we can introduce a new generation if we don't like to use the json template default one From now JsonTemplateGeneration still create fake data, fake columns, |