<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>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                > ## 組件 wl-line-chart 使用文檔 &emsp;&emsp;wl-line-chart 是基于 wl-echarts-plugin 封裝的折線圖組件 ``` <wl-line-chart :dataSource="dataSource" :option="option" :width="width" :height="height"></wl-line-chart> ``` ### wl-line-chart props | 屬性 | 說明 | 類型 | 默認值 | | --- | --- | --- | --- | | dataSource | 折線圖數據源,接口配置 | Object | {} | | option | 折線圖格式配置 | Object | {} | | width | 折線圖寬度 | String | 300px | | height | 折線圖高度 | String | 300px | #### 備注說明 + option 為折線圖格式配置,簡化版接收如下參數,title 為折線圖標題,xSetting 為折線圖橫軸配置 ``` option: { title: '銷量示例', // 標題 xSetting: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] // x簡化配置 } ``` + dataSource 為折線圖數據源的接口配置,url 為后端地址, params 是參數對象,默認 post 請求。下面是例子。 ``` dataSource: { // 接口配置 url: 'http://localhost:8080/linechart/list', params: { begin: 0, end: 6 } } ``` &emsp;&emsp;接口返回值格式如下所示,data 的鍵為折線圖的不同圖例,值為折線圖內容數據。 ``` { errcode: 200, data: { '銷量': [120, 200, 150, 80, 70, 110, 130], '銷量1': [20, 100, 100, 180, 170, 10, 30] } } ``` --- + 定制的 option 配置如下所示,詳細可以參考 echarts 的配置,傳入 xAxis 或 yAxis [echarts 配置文檔](https://echarts.apache.org/zh/option.html#xAxis) ``` option: { title: '銷量示例', // 標題 color: ['#2EB7BD', '#3CE1D9'], // 每種折線的顏色 xAxis: { // x軸配置 type: 'category', // 類型 data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] // 橫軸 }, // x軸配置 yAxis: { // y軸配置 type: 'value', // 類型 minInterval: 60, // 間隔 min: 0, // 最小值 max: 300 // 最大值 } } ```
                  <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>

                              哎呀哎呀视频在线观看