pyramid-proportion

1.0.4 • Public • Published

jquery-pyramid-proportion.js

npm version

一个基于jquery的金字塔图,可根据传入比例显示各层高度jquery-pyramid-proportion.js (jQuery version).

Usage

<body>
<div class="pyramid"></div>
 
<!-- at the end of the body -->
<script src="jquery.min.js"></script>
<script type="text/javascript" src="jquery-pyramid-proportion.js"></script>
<script type="text/javascript">
    $(".pyramid").pyramid({
        proportion: [10,20,30]
    });
</script> 
</body>

Options

{
    proportion: [10,30,50], //传入的每层比例
}

Install

You can copy and include any of the following file:

NPM

Also available on npm https://www.npmjs.com/package/pyramid-proportion

npm install pyramid-proportion

Credits

Original library: jquery-pyramid-proportion.js

License

MIT License

Package Sidebar

Install

npm i pyramid-proportion

Weekly Downloads

1

Version

1.0.4

License

ISC

Last publish

Collaborators

  • kwen