小编nou*_*din的帖子

Chart.js折线图在顶部被截断?

对于一些reasone,所有图表都以最高值被截断.我怎样才能解决这个问题?我不能使用固定的y轴

折线图在顶部切断

javascript css chart.js

5
推荐指数
4
解决办法
8167
查看次数

Haskell错误约束中的非类型变量参数:Num [E]

当我尝试使用ghci加载我的代码时,它给了我这个错误:

Asig1.hs:4:1:
    Non type-variable argument in the constraint: Num [c]
    (Use FlexibleContexts to permit this)
    When checking that ‘f’ has the inferred type
      f :: forall c (t :: * -> *).
           (Num c, Num [c], Foldable t) =>
           [c] -> [c] -> t [c] -> ([c], [c])
Run Code Online (Sandbox Code Playgroud)

我不明白我做错了什么.这是我的代码:

module Asig1 where

f as ys x = (s,z)
       where
       ws = zipWith (*) as ys
       s = foldl (+) ws x
       z = s
Run Code Online (Sandbox Code Playgroud)

haskell

1
推荐指数
1
解决办法
1719
查看次数

标签 统计

chart.js ×1

css ×1

haskell ×1

javascript ×1