Chart Data from Other Sources

Did you know you can use Keen’s Visualization Tools with other data sources and APIs? It’s super easy too. You just need to use the .data() method. This method accepts two forms of input data:

  • Object: Raw data, either from a query API response, manually constructed object, or another data source
  • Keen.Dataset instance

Important: Objects passed into .data() will be inspected to infer which type of response is being handled, and to parse accordingly. This is where the library determines a default type to use, if no type value has been set.

Here are some examples for visualizations for manually passed data or from other sources:

The examples below are using the keen-dataviz.js library.

Metric

Pie chart

Funnel