本帖最后由 13761031601 于 2022-12-12 22:20 编辑  
 
在低代码开发中,适用到QuickChart曲线图嵌入功能。 
如下 
 
 
 
const tjs_chart = new PreviewChartControl({ 
        url: '/api/chart/123125555555555555555', 
        tag: '1', 
        isLoad: true,  // 加载页,默认为true 
        isApplyBackground: false,  // 是否应用图表背景,启用该参数会替换app.background的值,默认false 
        autoResize: {  // 图表自适应 
            enable: true,  // 自适应图表分辨率,默认为false 
            orgin: 'center center'  // 自适应的基准点,第一个参数取值为:left、center、right,第二个参数取值为:top、center、bottom,默认值为“center center” 
        }, 
        complete: function () {} 
    }); 
 
 
 
在官网的demo中只介绍了  
 
updateDataSource 方法的使用,当在对图表进行API更新的时候,提示 REST返回层级参数缺失 请问这是什么原因造成的呢 
 
condition 和  responseLevel 参数和配置的API是一样的  
 
 
 
tjs_chart.updateDataSource({ 
            "id": "eareasingleea1ba79e-ccb810357bd961",  // 组件id,可在QuickChart中复制获取组件id 
            "type": "api",  // 数据对接类型 
            "config": {  // 对接数据配置 
                "url": "https://www.xxx.net/xxx/history",  // REST API 重定向接口数据url,与QuickChart中REST API对接数据中REST地址一栏对应 
                "condition": {  // REST API 重定向接口请求参数,与QuickChart中REST API对接数据中POST Condition一栏对应一栏对应 
                    "deptId": 202 
                },  
            }, 
            "responseLevel": "data",  // REST API 重定向接口数据返回层级,与QuickChart中REST API对接数据中REST返回层级一栏对应一栏对应 
            "refreshEnable": true,  // 是否自动刷新 默认为false 
            "refreshTime": 3,  // 自动刷新时间间隔,默认为0 
        }) 
 
 
还有关于其他方法的具体使用手册么 
如以下 
- initShowChart
 - loadChartEvent
 - loadChartList
 - loadChartRender
 - loading
 - maxArrayMum
 - minArrayMum
 - sendParentMessage
 - updateDataSource
 
 
  
 
 
 |   
 
 
 
 | 
| 
 | 
| 
 | 
| 
 | 
 |