Chart type presets

This issue has been tracked since 2021-10-05.

Vizzu implements an abstract, chart type independent data visualization interface.
It would be good to provide explicit chart type presets (bar, pie, ...) for beginner users.

Interface: Vizzu class should have a static preset property, with methods for the different chart types.
these methods should return a chart config object specific for the selected chart type.

Usage:

chart.animate(Vizzu.presets.bar(['y axis data series 1', ...], ['x axis data series 1', ... ]));

Example output:

Vizzu.presets.bar(['a','b'], ['c', 'd' ])
->
{
  channels: {
    x: [ 'c', 'd'],
    y: ['a','b'],
    color: null,
    size: null,
    lightness: null,
    noop: null  
  },
  geometry: 'rectangle',
  coordSystem: 'cartesian'
}

Vizzu class source file: https://github.com/vizzuhq/vizzu-lib/blob/main/src/apps/weblib/js-api/vizzu.js

Implemented Chart type examples: https://github.com/vizzuhq/vizzu-lib/tree/main/test/integration/test_cases/static_chart_types

More Details About Repo
Owner Name vizzuhq
Repo Name vizzu-lib
Full Name vizzuhq/vizzu-lib
Language JavaScript
Created Date 2021-06-07
Updated Date 2022-11-22
Star Count 1630
Watcher Count 19
Fork Count 65
Issue Count 17

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date