Uploaded image for project: 'Analytics'
  1. Analytics
  2. ANALYTICS-50

Create amCharts configuration bean or using json template

    XMLWordPrintable

Details

    • Story
    • Resolution: Fixed
    • Neutral
    • 1.0
    • None
    • None
    • Add-Ons 8
    • 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,  ANALYTICS-35  will design chart data api and fullfil columns, data info later

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                oanh.thai Oanh Thai Hoang
                oanh.thai Oanh Thai Hoang
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoD