0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

C3.js グラフを描く blindto

Posted at
const chart = c3.generate({
            bindto: "#chart",
        });

上のように bindto: で属する要素を指定するのが基本。同じ要素に2つ指定すると、新しい(後ろ)の方が優先され、前の方がとって変わられる。

一つ目のグラフの場合指定しなくてもOK。ただし2つ目も指定しないと1つ目が2つ目にreplaceされる。

参考文献
https://c3js.org/reference.html

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?