Skip to content

kiln/flourish-api-demo-state-change

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flourish state change API demo

This is a simple demonstration of how to change state with the API.

After building an API chart with an initial API options object

const visual = new Flourish.Live(options)

you can manipulate any state property of the options object

control_title.addEventListener('input', function(e) {
  options.state.layout.title = e.target.value;
  //...

before simply updating the API visual.

  // ...
  visual.update(options);
})

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published