LiteyukiBot-TriM/liteyuki/resources/templates/js/status.js

10 lines
243 B
JavaScript
Raw Normal View History

const data = JSON.parse(document.getElementById('data').innerText);
function createPieChartOption(title, data){
// data为各项占比列表
}
function createBarChartOption(title, percent){
// percent为百分比最大值为100
}