<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                # 報表組件文檔 ## 柱狀圖 ![](https://img.kancloud.cn/24/17/2417b5a58dc6b88686c14788dcff8c86_1519x462.png) ##### 引用方式 ```js import Bar from '/@/components/chart/Bar.vue'; ``` ##### 參數列表 | 參數名 | 類型 | 必填 | 說明 | |------------|--------|----|------------| | chartData | array | ?? | 圖表數據源 | | option | object| | 圖表的配置項 | | width | string| | 圖表寬度 | | height | string| | 圖表高度 | ##### chartData 示例 ```json [ { "name": "1月", "value": 320 }, { "name": "2月", "value": 457 }, { "name": "3月", "value": 182 } ] ``` ##### 代碼示例 ```html <template> <Bar :chartData="chartData"></Bar> </template> <script lang="ts" setup> import Bar from '/@/components/chart/Bar.vue'; const chartData = [ { "name": "1月", "value": 320 }, { "name": "2月", "value": 457 }, { "name": "3月", "value": 182 } ] </script> <style></style> ``` ## 多列柱狀圖 ![](https://img.kancloud.cn/6f/ba/6fbab012dc3d91aed78d2f6612c9ce9a_1480x475.png) ##### 引用方式 ```js import BarMulti from '/@/components/chart/BarMulti.vue'; ``` ##### 參數列表 | 參數名 | 類型 | 必填 | 說明 | |------------|--------|----|------------| | chartData | array | ?? | 圖表數據源 | | option | object| | 圖表的配置項 | | width | string| | 圖表寬度 | | height | string| | 圖表高度 | ##### chartData 示例 ```json [ { "name": "1月", "value": 320, "type": "2021" }, { "name": "2月", "value": 457, "type": "2021" }, { "name": "3月", "value": 182, "type": "2021" }, { "name": "1月", "value": 240, "type": "2022" }, { "name": "2月", "value": 357, "type": "2022" }, { "name": "3月", "value": 456, "type": "2022" } ] ``` ## 迷你柱狀圖 同柱形圖,修改配置即可 ## 面積圖 ![](https://img.kancloud.cn/d8/a1/d8a1b93a651fdf1141574d633995a7bd_1479x456.png) ##### 引用方式 ```js import Line from '/@/components/chart/Line.vue'; ``` ##### 參數列表 | 參數名 | 類型 | 必填 | 說明 | |------------|--------|----|------------| | chartData | array | ?? | 圖表數據源 | | option | object| | 圖表的配置項 | | width | string| | 圖表寬度 | | height | string| | 圖表高度 | ##### chartData 示例 ```json [ { "name": "1月", "value": 320 }, { "name": "2月", "value": 457 }, { "name": "3月", "value": 182 } ] ``` ## 多行折線圖 ![](https://img.kancloud.cn/3e/16/3e1665c7fb22b02321e16e3cf800a834_1484x487.png) ##### 引用方式 ```js import LineMulti from '/@/components/chart/LineMulti.vue'; ``` ##### 參數列表 | 參數名 | 類型 | 必填 | 說明 | |------------|--------|----|------------| | chartData | array | ?? | 圖表數據源 | | option | object| | 圖表的配置項 | | width | string| | 圖表寬度 | | height | string| | 圖表高度 | ##### chartData 示例 同柱形圖 ## 餅狀圖 ![](https://img.kancloud.cn/a9/a7/a9a70ba1a7806f01aa25701f45339f9f_713x472.png) ##### 引用方式 ```js import Pie from '/@/components/chart/Pie' ``` ##### 參數列表 | 參數名 | 類型 | 必填 | 說明 | |------------|--------|----|------------| | chartData | array | ?? | 圖表數據源 | | option | object| | 圖表的配置項 | | width | string| | 圖表寬度 | | height | string| | 圖表高度 | ##### chartData 示例 ```json [ { "name": "一月", "value": 40 }, { "name": "二月", "value": 21 }, { "name": "三月", "value": 17 }, { "name": "四月", "value": 13 }, { "name": "五月", "value": 9 } ] ``` ## 雷達圖 ![](https://img.kancloud.cn/1f/ae/1faeb6859da79a630274d5804184e821_816x448.png) ##### 引用方式 ```js import Radar from '/@/components/chart/Radar' ``` ##### 參數列表 | 參數名 | 類型 | 必填 | 說明 | |------------|--------|----|------------| | chartData | array | ?? | 圖表數據源 | | width | number | | 圖表寬度 | | height | number | | 圖表高度 | | option | object | | 配置項 | ##### chartData 示例 ```json [ { value: 75, name: '政治',type:'文綜',max:100 }, { value: 65, name: '歷史',type:'文綜',max:100 }, { value: 55, name: '地理',type:'文綜',max:100 }, { value: 74, name: '化學',type:'文綜',max:100 }, { value: 38, name: '物理',type:'文綜',max:100 }, { value: 88, name: '生物',type:'文綜',max:100 }, ] ``` ## 儀表盤 ![](https://img.kancloud.cn/8f/94/8f94241dcef0573f0e1023d75ab7d124_604x422.png) ##### 引用方式 ```js import Gauge from '/@/components/chart/Gauge' ``` ##### 參數列表 | 參數名 | 類型 | 必填 | 說明 | |------------|--------|----|------------| | chartData | array | ?? | 圖表數據源 | | option | object| | 圖表的配置項 | | width | string| | 圖表寬度 | | height | string| | 圖表高度 | ##### chartData 示例 ```json { name:'出勤率', value:70 } ``` ## 排名列表 ![](https://img.kancloud.cn/e8/71/e871803a86a7b655731b9b84c926b09c_729x556.png) ##### 引用方式 ```js import RankList from '@/components/chart/RankList' ``` ##### 參數列表 | 參數名 | 類型 | 必填 | 說明 | |--------|--------|----|--------------| | title | string | | 圖表標題 | | list | array | | 排名列表數據 | | height | number | | 圖表高度,默認自適應高度 | ##### list 示例 ```json [ { "name": "北京朝陽 1 號店", "total": 1981 }, { "name": "北京朝陽 2 號店", "total": 1359 }, { "name": "北京朝陽 3 號店", "total": 1354 }, { "name": "北京朝陽 4 號店", "total": 263 }, { "name": "北京朝陽 5 號店", "total": 446 }, { "name": "北京朝陽 6 號店", "total": 796 } ] ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看