JSPM

pyramid-proportion

1.0.4
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 1
    • Score
      100M100P100Q43865F
    • License ISC

    Package Exports

    • pyramid-proportion

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pyramid-proportion) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    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