Charts
Installing
When installing to your site, add the following to you composer.json
file. This will ensure that installation will use the build version of the package and allow it to be loaded using composer in the preferred path.
{
"repositories": [
{
"type": "vcs",
"url": "git@github.com:@bigbite/block-google-charts.git"
}
],
"require": {
"@bigbite/block-google-charts": "1.0.0-rc.3"
},
"extra": {
"installer-paths": {
"plugins/{$name}/": ["type:wordpress-plugin"]
}
}
}
Local Development or Manual Install
Clone the repository into your plugins
or client-mu-plugins
directory.
git clone git@github.com:@bigbite/block-google-charts.git && cd block-google-charts
Install JS packages.
npm install
Build all assets – additional commands can be found on the bigbite/build-tools
repo.
npm run build:dev
Install PHP packages and create autoloader for the plugin.
composer update
Google Charts
Google offer extensive documentation and guides on how to install, configure, and use the chart library. Documentation can be found at Google Charts