Skip to content

Commit 210fc23

Browse files
authored
Fix deprecations (#72)
* Hard pin dependencies * Fix deprecations * Add version number
1 parent 8c058d4 commit 210fc23

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

Project.toml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name = "ECharts"
22
uuid = "f9630f5b-a116-5b0c-bd6c-4699aee17694"
3+
version = "0.3.0"
34

45
[deps]
56
Blink = "ad839575-38b3-5650-b840-f874b8c74a25"
@@ -21,21 +22,20 @@ StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
2122
WebIO = "0f1e0344-ec1d-5b48-a673-e5cf874b6c29"
2223

2324
[compat]
24-
Blink = "≥ 0.10.0"
25-
CSV = "≥ 0.5.1"
25+
Blink = "~0.10.1"
2626
ColorBrewer = "≥ 0.4.0"
27-
DataFrames = "0.18.0"
28-
Distributions = "0.21.0"
27+
DataFrames = "~0.18.0"
28+
Distributions = "~0.21.0"
2929
HTTP = "~0.7.0"
30-
JSExpr = "≥ 0.3.1"
31-
JSON = "≥ 0.19.0"
32-
KernelDensity = "0.5.0"
33-
NoveltyColors = "0.4.0"
30+
JSExpr = "~0.5.0"
31+
JSON = "~0.21.0"
32+
KernelDensity = "~0.5.0"
33+
NoveltyColors = "~0.4.0"
3434
Parameters = "~0.11.0"
3535
RDatasets = "~0.6.2"
3636
StatsBase = "~0.31.0"
37-
WebIO = "≥ 0.3.2"
38-
julia = "1.1.0"
37+
WebIO = "~0.8.6"
38+
julia = "^1.1.0"
3939

4040
[extras]
4141
Blink = "ad839575-38b3-5650-b840-f874b8c74a25"

src/plots/xy_plot.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ function xy_plot(df::AbstractDataFrame, x::Symbol, y::Symbol, group::Symbol;
120120
pivotdf = unstack(df, x, group, y)
121121

122122
#Get number of groups
123-
numgroups = length(pivotdf)
123+
numgroups = size(pivotdf, 2)
124124

125-
ec = xy_plot(pivotdf[x], convert(Array, pivotdf[:, 2:end]), mark = mark, stack = stack, step = step, horizontal = horizontal, legend = legend, scale = scale, kwargs...)
125+
ec = xy_plot(pivotdf[x], convert(Matrix, pivotdf[:, 2:end]), mark = mark, stack = stack, step = step, horizontal = horizontal, legend = legend, scale = scale, kwargs...)
126126

127127
#Name axes since we know them
128128
xaxis!(ec, name = string(x))

0 commit comments

Comments
 (0)