material_raingular-d3 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8468932be38b1f1f2e28820ad8347729fa3e54f
|
4
|
+
data.tar.gz: 3412543b6e437b00bc5dc162b6125ca15caf0b28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76b78f33ceccfd7f3ecb7c518be8e1175b3f69a0a5ae118b6b42bab1fc05db46c283d37e99be8139e13475744a43bff23c185b3ec6f1efa3713b87693fcd66fe
|
7
|
+
data.tar.gz: bcd3763519ad084f9c10b1ed20fb487a1976954304906a075f910c7cee04b23f2bf2d0ae8c2e5379e2a443f8541b308ea2599a1ed607a545e86104c2f647808f
|
@@ -22,7 +22,8 @@ class MaterialRaingular.d3.Directives.PieChartModel extends AngularDirectiveMode
|
|
22
22
|
@slices.push(slice) unless @slices.includes(slice)
|
23
23
|
return @slices.index(slice)
|
24
24
|
removeSlice: (slice) ->
|
25
|
-
index = @slices.
|
25
|
+
index = @slices.indexOf(slice)
|
26
|
+
return unless index >= 0
|
26
27
|
@slices.splice(index,1)
|
27
28
|
@values.splice(index,1)
|
28
29
|
@drawChart()
|
@@ -63,7 +63,7 @@ class MaterialRaingular.d3.Directives.MrD3StackedBar extends AngularDirectiveMod
|
|
63
63
|
bar.attr('y',y)
|
64
64
|
bar.attr('height',height)
|
65
65
|
bar.attr('x',usedSpace)
|
66
|
-
bar.attr('width',barWidth)
|
66
|
+
bar.attr('width',barWidth || 0)
|
67
67
|
usedSpace += barWidth
|
68
68
|
text.attr('x', parseFloat(bar.attr('width'))/2 + parseFloat(bar.attr('x')))
|
69
69
|
.attr('y',parseFloat(bar.attr('y')) + parseFloat(bar.attr('height'))/2 + 5)
|