Skip to content

v3.0.0

Compare
Choose a tag to compare
@xrapz xrapz released this 19 Jul 08:23
· 349 commits to master since this release
  • Create a new KeenDataviz instance with a Configuration Object
const chart = new KeenDataviz({
  // Required:
  container: '#my-chart-div' // querySelector,

  // Optional:
  type: 'area', // https://github.com/keen/keen-dataviz.js/blob/master/docs/README.md#chart-types
  title: 'New Customers per Week',
  showLoadingSpinner: true
});
  • Width and height of the chart is now controlled by width and height of its parent HTML element. width() and height() methods are deprecated, use CSS of the container element.
  • We removed all of the style-related code from our JS files. Now you can rely fully on your custom CSS classes.
  • Legend: positioning, styles and pagination are now fully customizable (#61). https://github.com/keen/keen-dataviz.js#legend

Depracation warnings

You can turn off deprecation warnings with

const chart = new Keen.Dataviz({
  container: '#container', // required
  showDeprecationWarnings: false
});