回答編集履歴

1

ツールチップを戻す

2016/12/02 23:33

投稿

popobot
popobot

スコア6586

test CHANGED
@@ -1,8 +1,6 @@
1
1
  幅としてはそれで最大で、各バーの枠の線が白っぽいので隙間があるよう見えているだけだと思います。
2
2
 
3
3
  以下のようにstroke-colorをバーの色と同じにすると隙間がなくなりますよ。
4
-
5
- ※修正の過程でツールチップ消しちゃいましたので、必要なら追加してください。
6
4
 
7
5
  ```html
8
6
 
@@ -32,15 +30,17 @@
32
30
 
33
31
  dataTable.addColumn({type: 'string', role: 'style'});
34
32
 
33
+ dataTable.addColumn({type: 'string', role: 'tooltip'});
34
+
35
35
  dataTable.addRows([
36
36
 
37
- ['2010', 600, 'stroke-color:#3366cc'],
37
+ ['2010', 600, 'stroke-color:#3366cc', '$600K in our first year!'],
38
38
 
39
- ['2011', 1500, 'stroke-color:#3366cc'],
39
+ ['2011', 1500, 'stroke-color:#3366cc', 'Sunspot activity made this our best year ever!'],
40
40
 
41
- ['2012', 800, 'stroke-color:#3366cc'],
41
+ ['2012', 800, 'stroke-color:#3366cc', '$800K in 2012.'],
42
42
 
43
- ['2013', 1000, 'stroke-color:#3366cc']
43
+ ['2013', 1000, 'stroke-color:#3366cc', '$1M in sales last year.']
44
44
 
45
45
  ]);
46
46