我有一个接收 .JSON 的表。我创建了一些过滤器,我想保存它们,但不保存当时使用过滤器收到的信息。我已经尝试过:
pivot.getData({},
function(data) {
console.log(data);
},
function(data) {
console.log(data);
}
);
Run Code Online (Sandbox Code Playgroud)
也
var report = pivot.getReport();
console.log(report);
Run Code Online (Sandbox Code Playgroud)
最后
pivot.save({filename:'reporte.json',embedData : false });
Run Code Online (Sandbox Code Playgroud)
谢谢你的帮助
尝试使用webdatarocks构建以月份为列的网格,问题是列按字母顺序排序(2020 年 4 月、2020 年 8 月、200 年 12 月,...)。是否可以选择按日期(200 年 12 月、2020 年 11 月、2020 年 10 月等)对列进行排序?
示例可在此处获得 https://codesandbox.io/s/nifty-stonebraker-7mf56?file=/src/App.tsx
我有一个记录集,其中行有一个日期字段。行来自当年和去年。我想查看每年的行数。这很容易。现在我想有一个不同的第三列(count(currentYear) - count(lastYear))。有没有办法实现这一目标?
谢谢
多个 Webdatarocks 支点给出了例外
“不是 displaygrids 的构造函数”
脚本已正确包含但没有解决方案.. 还有关于如何在同一页面上分别区分两个网格的数据导出的问题。
以下是代码:
'''
function displaygrids(parsed_data,parsed_data_2) {
var pivot = new webdatarocks({
container: "#d1-component",
//toolbar: true,
// beforetoolbarcreated: customizeToolbar,
//height: 295,
report: {
dataSource: {
data: parsed_data,
}
}
});
var p1= new webdatarocks({
container: "#d2-component",
//toolbar: true,
// beforetoolbarcreated: customizeToolbar,
//height: 295,
report: {
dataSource: {
data: parsed_data_2,
}
}
});
}
'''
Run Code Online (Sandbox Code Playgroud) 我在我的网络应用程序中使用 Webdatarocks(angular 2,spring boot)。问题是我每次都必须重新配置 Webdatarocks 的列和行。我想保存一些我可以直接选择的配置。那可能吗?
Excel 导出 - 网站文档中提供的示例(用于日期时间数据类型)仅导出日期部分。https://www.webdatarocks.com/doc/data-types-in-json/
PDF 导出日期和时间很好。问题仅与excel有关。如何在excel中导出日期和时间?
我想将 API 密钥附加到我的 URL 以访问数据库,问题是将它附加到文件名
var pivot = new WebDataRocks({
container: "#wdr-component",
toolbar: true,
report: {
dataSource: {
filename: "https://testing-195b.restdb.io/rest/customerdata"
}
}
});
Run Code Online (Sandbox Code Playgroud)
此代码适用于控制台
var settings = {
"async": true,
"crossDomain": true,
"url": "https://testing-195b.restdb.io/rest/customerdata",
"method": "GET",
"headers": {
"content-type": "application/json",
"x-apikey": "60c8b39ee2c96c46a2463581",
"cache-control": "no-cache"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Run Code Online (Sandbox Code Playgroud) 从枢轴表转换为WebDatrocks中的HTML时,待处理的转换时,选项卡更改时会如何解决此问题?(如果你想要我可以添加的代码)
我正在 iframe 中打开表格,也许这就是我不确定的原因
webdatarocks ×8
javascript ×3
angular ×1
api-key ×1
backend ×1
html ×1
jquery ×1
pivot-table ×1
typescript ×1