我用Chart JS制作了一个图表,你可以在我的小提琴中看到.此图表中有三行.我希望橙色和黄色线比现在更厚.绿色虚线很好.
我四处搜寻,尝试过一些东西.但我还没有找到合适的解决方案.我希望我的问题很明确,有人可以帮助我.
HTML
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.1.6/Chart.min.js" charset="utf-8"></script>
<canvas id="canvas2"></canvas>
Run Code Online (Sandbox Code Playgroud)
JavaScript的
Chart.defaults.global.legend.display = false;
var lineChartData = {
labels: ['20°', '30°', '40°', '50°', '60°', '70°', '80°'],
datasets: [{
data: [null, null, null, 400, 320, 220, 90],
pointBorderColor: "rgba(75,192,192,1)",
pointBackgroundColor: "#fff",
borderColor: '#FFEC8B',
pointBorderWidth: 0,
pointHoverRadius: 0,
pointHoverBackgroundColor: "rgba(75,192,192,1)",
pointHoverBorderColor: "rgba(220,220,220,1)",
pointHoverBorderWidth: 0,
lineWidth: 100,
pointRadius: 0,
pointHitRadius: 0,
},{
data: [550, 520, 470, 400, null, null, null],
borderColor: '#ff8800',
pointBorderWidth: 0,
pointHoverRadius: 0,
pointHoverBackgroundColor: "rgba(75,192,192,1)",
pointHoverBorderColor: "rgba(220,220,220,1)",
pointHoverBorderWidth: 0, …Run Code Online (Sandbox Code Playgroud) 我想在Chart JS中使用外部字体.有谁知道这是否可能?我通过文档搜索过,但我还没有找到解决方案.
我为我的 tvOS 应用程序制作了某种 Netflix 布局,其中包含多个名为:featuredCollectionView和standardCollectionView.
我有一个包含当前聚焦单元格的变量。我唯一想要的是获取所选单元格的当前集合视图。任何人都可以帮助我吗?
编码
func pressedThePlayPauseButton() {
if let focusedCell = UIScreen.main.focusedView as? UICollectionViewCell{
let collectionViewOfFocusedCell = ...
Run Code Online (Sandbox Code Playgroud)