About the Keen Charts Add-on category

Keen Charts is a Vaadin integration for Keen IO, an analytics service to easily collect, explore, and visualize data.

Usage

You don’t need to recompile the widgetset in order to use this add-on. You need the project ID and the read key provided by Keen IO when you create an account at https://keen.io.

Creating a chart is pretty simple:

// define the query to be sent to Keen IO
Query query = new Query.Builder(QueryType.COUNT)
        .withEventCollection("gifts")
        .withTimeframe(new AbsoluteTimeframe("2016-08-01", "2016-08-05"))
        .withInterval("daily")
        .build();

// define the UI component
KeenChart chart = new KeenChart(projectId, readKey, KeenChartType.BARCHART, query);

layout.addComponent(chart);


Use your own values for PROJECT_ID and READ_KEY.

For more information about the Keen IO Java API, consult the documentation at https://github.com/keenlabs/KeenClient-Java.

For more information about Keen IO, consult the documentation at https://keen.io/docs.

License

Add-on is distributed under Apache License 2.0.