fliptables / bcjs

0 stars 0 forks source link

BetterContext Library

Example script tag:

<script 
  src="https://github.com/fliptables/bcjs/raw/master/BetterContext.js" 
  data-bc-user="james@example.com"
  data-bc-api="1c4f5fd4-e7a9-4d2b-a4db-b6191e5fbe75">
</script>

Auto mode example script:

<script 
  src="https://github.com/fliptables/bcjs/raw/master/BetterContext.js" 
  data-bc-user="james@example.com"
  data-bc-auto
  data-bc-api="1c4f5fd4-e7a9-4d2b-a4db-b6191e5fbe75">
</script>

BetterContext auto chart elements

<div 
  data-bc-chart="pentagon" 
  data-bc-id="SOME_ID">
</div>

Development

There are three scripts which can be used while working on the BetterContext JavaScript code.

Scripts can be run from the root of the repo. For example to setup the project you could run:

./scripts/setup