我目前正在设置一个对话流机器人(用于常见问题和联系),并且正在使用谷歌云功能(nodejs)在 firebase firestore 中完成履行/数据存储。
显然,我希望有安全规则,将数据库访问权限限制为仅对话流。谁能指出我正确的方向,我将如何做这件事?
我发现的例子都是关于存储在数据库中的东西的检查,这在我的情况下不起作用..?
firebase firebase-security google-cloud-functions google-cloud-firestore
TypeError: Cannot read property 'legend' of undefined当我尝试以角度显示 ChartJS 图表的示例数据时,我遇到了问题。
我尝试使用不同的示例或图表类型,但它不断抛出此错误。
HTML:
<div class="chartwrapper">
<canvas baseChart class="chart"
[datasets]="arbarChartData"
[labels]="arbarChartLabels"
[options]="arbarChartOptions"
[legend]="arbarChartLegend"
[chartType]="arbarChartType">
</canvas>
</div>
Run Code Online (Sandbox Code Playgroud)
TS:
public arbarChartLabels: Label[] = ['2006', '2007', '2008', '2009', '2010', '2011', '2012'];
public arbarChartType = 'bar';
public arbarChartLegend = true;
public arbarChartData: ChartDataSets[] = [
{data: [65, 59, 80, 81, 56, 55, 40], label: 'Series A'},
{data: [28, 48, 40, 19, 86, 27, 90], label: 'Series B'}
];
Run Code Online (Sandbox Code Playgroud)