var color = d3.scaleOrdinal(d3.schemeCategory20);
var bubble = d3.pack(dataset)
.size([diameter, diameter])
.padding(1.5);
The array of data you can pass to the \Magento\Eav\Setup\EavSetup::addAttribute() method is as follows:
Some of the attribute keys are remapped using the Magento\Eav\Model\Entity\Setup\PropertyMapper class. We indicate what it's mapped to in [] brackets
$data = [
'type' => 'varchar',
// (string)[eav_attribute][backend_type]: database storage type (varchar|int|text|decimal)
'backend' => NULL,
// (string)[eav_attribute][backend_model]: class name used to retrieve/save the attribute data to the db
'frontend' => NULL,
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# git post-commit hook for linking git commits to asana tasks | |
# (inspired / adapted in part from https://github.com/Darunada/git-asana-post-commit-hook) | |
# | |
# Tested with Python 2.7 and Python 3.5 | |
# | |
# INSTALLATION | |
# - Copy this script to .git/hooks/post-commit in your local repository | |
# (be sure the script is executable) |