Easy Window UI设计器 - 图表组件 10秒完成UI效果
Easy Window UI设计器 - 图表组件
图表包含了:折线图、柱状图
使用方法非常的简单:
// 通过组件名称 (componentName)
// 设置图表数据
window.EasyWindowAPI.getComponent('我的折线图').setData({labels: ['Jan', 'Feb', 'Mar', 'Apr'],datasets: [{label: '销售额',data: [100, 200, 150, 300],borderColor: 'rgb(255, 99, 132)',backgroundColor: 'rgba(255, 99, 132, 0.2)'}]
});// 添加新数据点
window.EasyWindowAPI.getComponent('我的折线图').addData('May', 250);// 设置标题
window.EasyWindowAPI.getComponent('我的折线图').setTitle('月度销售报表');
易语言案例:
Easy Window UI设计器下载:蓝奏网盘下载
源码下载:蓝奏网盘下载