使用辅助轴制作图表,使我的图表成为主要图表 y-axis并显示了一些我不想拥有的值。
仅x-axis次要的y-axis。并且还x-axis绘制了没有日期值的日期。
码:
chartType2 = GetChartType(worksheet, chartToDraw, endcolcnt, i, chartType2, chartType);
chartType2.UseSecondaryAxis = true;
Scale(headerString, endcolcnt, worksheet, chartType2, stcol, isFieldSame, endcol, stcolumn1, endrow, startRow);
Run Code Online (Sandbox Code Playgroud)
and Scale Function仅分配标题名称和全部。
有关拍摄系列的详细信息

输出:

输入项

我有下表
<table mat-table [dataSource]="dataSource" matSort class="mat-elevation">
<!-- Name Column -->
<ng-container matColumnDef="employee.name">
<th mat-header-cell *matHeaderCellDef mat-sort-header> Name </th>
<td mat-cell *matCellDef="let employeeWrapper">{{employeeWrapper.employee.name}}</td>
</ng-container>
<ng-container matColumnDef="id">
<th mat-header-cell *matHeaderCellDef mat-sort-header> ID </th>
<td mat-cell *matCellDef="let employeeWrapper">{{employeeWrapper.id}}</td>
</ng-container>
<tr mat-header-row *matHeaderRowDef="tableColumns"></tr>
<tr mat-row *matRowDef="let row; columns: tableColumns;"></tr>
</table>
Run Code Online (Sandbox Code Playgroud)
从这个答案,matColumnDef和对象属性必须具有相同的名称。
我做对了,employeeWrapper.id而且这种方式正在起作用。
但是对于employeeWrapper.employee.name,它是二级属性。设置matColumnDef为employee.name或name不起作用。我两个都试过了。
这个问题有解决方案/解决方法吗?
我有一个.NET Standard将内置到 NuGet 包中的类库项目。我已经安装了该docfx.console软件包,以便每次构建时都可以生成文档网站。
现在,当另一个项目安装我的库的 NuGet 包时,docfx.console也会安装 NuGet 包 - 这是我不想要的。
在 Package 下的项目属性中,我选择了Generate NuGet package on build。当我构建它时,这将自动为我的库生成 NuGet 包。但是在此选项卡中,我看不到任何可以配置以排除任何包的地方。
所以为了排除这个docfx.console包,我创建了一个包含以下内容的 .nuspec 文件:
<?xml version="1.0" encoding="utf-8" ?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<!-- Required elements-->
<id>My.Library</id>
<version>1.0.1</version>
<description>My Library's project dscription.</description>
<authors>Me</authors>
<copyright>My Copyright (c)</copyright>
<!-- Optional elements -->
<dependencies>
<dependency id="docfx.console" version="2.36.1" exclude="build" />
</dependencies>
<!-- ... -->
</metadata>
<!-- Optional 'files' node -->
</package>
Run Code Online (Sandbox Code Playgroud)
但它不起作用。docfx.console在构建 NuGet 包时如何更正它以排除包?
或者,有没有其他方法可以 …
我想连接到此设备:http://www.rhydolabz.com/index.php?main_page = product_info&product_id = 479
我尝试使用BluetoothChat样本中的类.但它没有用.它说unable to connect device.
然后我尝试在try catch中使用以下代码
// Create a Socket connection: need the server's UUID number
Method m = d.getClass().getMethod("createRfcommSocketToServiceRecord", new Class[] { int.class });
socket = (BluetoothSocket) m.invoke(d, 1);
socket.connect();
Log.d("WCAM", ">>Client connectted");
inputStream = socket.getInputStream();
outputStream = socket.getOutputStream();
socket.close();
Toast.makeText(this, "Bluetooth is Connected", Toast.LENGTH_LONG).show();
Run Code Online (Sandbox Code Playgroud)
我收到以下错误
04-18 20:45:01.660: W/System.err(6780): java.lang.NoSuchMethodException: createRfcommSocketToServiceRecord [int]
04-18 20:45:01.660: W/System.err(6780): at java.lang.Class.getConstructorOrMethod(Class.java:460)
04-18 20:45:01.660: W/System.err(6780): at java.lang.Class.getMethod(Class.java:915)
04-18 20:45:01.660: W/System.err(6780): at com.xpleria.wirelesscontroller.Login.onStart(Login.java:90) …Run Code Online (Sandbox Code Playgroud) <?php
session_start();
if(isset($_SESSION['views']))
$_SESSION['views'] = $_SESSION['views']+ 1;
else
$_SESSION['views'] = 1;
echo "views = ". $_SESSION['views'];
?>
Run Code Online (Sandbox Code Playgroud)
被$_SESSION['views']初始化为FALSE?
编辑:我的意思是第三行代码:
if(isset($_SESSION['views']))
Run Code Online (Sandbox Code Playgroud)