plasticine 1.2.5 → 1.2.6
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 648b4bc17d55e45051de52ed61a4f2ecf94a317d5d4c956ebce6975f681ccb90
|
4
|
+
data.tar.gz: 99ee53e7af045c764a5897e07909ea0480a22b73fbeaec0ac5df0bee83b9988a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0cc18c07ba10ae1e34123bc6b8cfe6ffb32be97dc8ad5aba845a7feac99a44d3763b2e69c2df979e6119a4d37d7a6b06eab4c3bd13eb17b995eec570868de782
|
7
|
+
data.tar.gz: b1c9af68bb5891d6babaac9927187e402ede117f6fcee554b6287eda50f1e13656edd9435e946d6c1c02e8cf716bff62b0ea31f1f0e056adfb2dfdd3a9e94edf
|
@@ -110,7 +110,7 @@ class @PlasticineColumn
|
|
110
110
|
@xAxis = d3.axisBottom(@xScale)
|
111
111
|
@xAxis.tickSize -@holder.height()
|
112
112
|
|
113
|
-
PlasticineHelpers.setAxisFormat @xAxis, @xAxisFormat
|
113
|
+
PlasticineHelpers.setAxisFormat @xAxis, @xAxisFormat, @quarterStartMonth
|
114
114
|
|
115
115
|
|
116
116
|
setXScaleRange: () ->
|
@@ -127,7 +127,7 @@ class @PlasticineColumn
|
|
127
127
|
@yAxis.tickSize -@holderWidth()
|
128
128
|
@yAxis.ticks @yAxisTickCount
|
129
129
|
|
130
|
-
PlasticineHelpers.setAxisFormat @yAxis, @yAxisFormat
|
130
|
+
PlasticineHelpers.setAxisFormat @yAxis, @yAxisFormat, @quarterStartMonth
|
131
131
|
|
132
132
|
|
133
133
|
showTooltip: (bar, data) ->
|
@@ -33,7 +33,7 @@ PlasticineHelpers.formatNumericString = (str) ->
|
|
33
33
|
else str
|
34
34
|
|
35
35
|
|
36
|
-
PlasticineHelpers.setAxisFormat = (axis, format) ->
|
36
|
+
PlasticineHelpers.setAxisFormat = (axis, format, quarterStartMonth) ->
|
37
37
|
switch format
|
38
38
|
when 'date' then axis.tickFormat(d3.timeFormat('%b'))
|
39
39
|
when 'day' then axis.tickFormat(d3.timeFormat('%d-%m'))
|
@@ -41,8 +41,8 @@ PlasticineHelpers.setAxisFormat = (axis, format) ->
|
|
41
41
|
when 'hours' then axis.tickFormat (d) => @toHours(d)
|
42
42
|
when 'money' then axis.tickFormat (d) => @toPrice(d)
|
43
43
|
when 'numeric' then axis.tickFormat (d) => @toNumeric(d)
|
44
|
-
when 'quarter' then axis.tickFormat (d) => @toQuarter(d,
|
45
|
-
when 'year' then axis.tickFormat (d) => @toYear(d,
|
44
|
+
when 'quarter' then axis.tickFormat (d) => @toQuarter(d, quarterStartMonth)
|
45
|
+
when 'year' then axis.tickFormat (d) => @toYear(d, quarterStartMonth)
|
46
46
|
|
47
47
|
|
48
48
|
PlasticineHelpers.toHours = (value) -> @formatNumericString(value) + 'h'
|
@@ -130,7 +130,7 @@ class @PlasticineLine
|
|
130
130
|
@xAxis = d3.axisBottom(@xScale)
|
131
131
|
@xAxis.tickSize -@holder.height()
|
132
132
|
|
133
|
-
PlasticineHelpers.setAxisFormat @xAxis, @xAxisFormat
|
133
|
+
PlasticineHelpers.setAxisFormat @xAxis, @xAxisFormat, @quarterStartMonth
|
134
134
|
|
135
135
|
|
136
136
|
setXScaleRange: () ->
|
@@ -147,4 +147,4 @@ class @PlasticineLine
|
|
147
147
|
@yAxis.tickSize -@holderWidth()
|
148
148
|
@yAxis.ticks @yAxisTickCount
|
149
149
|
|
150
|
-
PlasticineHelpers.setAxisFormat @yAxis, @yAxisFormat
|
150
|
+
PlasticineHelpers.setAxisFormat @yAxis, @yAxisFormat, @quarterStartMonth
|
data/plasticine.gemspec
CHANGED
@@ -3,7 +3,7 @@ Gem::Specification.new do |gem|
|
|
3
3
|
gem.description = "Data visualization toolkit for Rails App using D3.js"
|
4
4
|
gem.summary = "Data visualization toolkit for Rails App using D3.js"
|
5
5
|
gem.homepage = "https://github.com/alchimikweb/plasticine"
|
6
|
-
gem.version = "1.2.
|
6
|
+
gem.version = "1.2.6"
|
7
7
|
gem.licenses = ["MIT"]
|
8
8
|
|
9
9
|
gem.authors = ["Sebastien Rosa"]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plasticine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sebastien Rosa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-03-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|