diff --git a/examples/animation/animation.go b/examples/animation/animation.go index b2d6e07..8a66724 100644 --- a/examples/animation/animation.go +++ b/examples/animation/animation.go @@ -59,12 +59,12 @@ func main() { }, Updatemenus: []grob.LayoutUpdatemenu{ { - Type: grob.UpdatemenuTypeButtons, + Type: grob.LayoutUpdatemenuTypeButtons, Showactive: types.False, - Buttons: []grob.UpdatemenuButton{ + Buttons: []grob.LayoutUpdatemenuButton{ { Label: types.S("Play"), - Method: grob.ButtonMethodAnimate, + Method: grob.LayoutUpdatemenuButtonMethodAnimate, Args: []*ButtonArgs{ nil, { diff --git a/examples/bar.html b/examples/bar.html index 580283d..ac6c1c7 100755 --- a/examples/bar.html +++ b/examples/bar.html @@ -1,11 +1,11 @@
- + diff --git a/examples/bar/main.go b/examples/bar/main.go index 72303bc..9e67af7 100644 --- a/examples/bar/main.go +++ b/examples/bar/main.go @@ -31,4 +31,5 @@ func main() { offline.ToHtml(fig, "bar.html") offline.Show(fig) + offline.Serve(fig) } diff --git a/examples/shapes/main.go b/examples/shapes/main.go index d93fe04..03b998f 100644 --- a/examples/shapes/main.go +++ b/examples/shapes/main.go @@ -27,7 +27,7 @@ func main() { Y0: 0, X1: 1, Y1: 2, - Line: &grob.ShapeLine{ + Line: &grob.LayoutShapeLine{ Color: "RoyalBlue", Width: types.N(3), }, @@ -38,7 +38,7 @@ func main() { Y0: 2, X1: 5, Y1: 2, - Line: &grob.ShapeLine{ + Line: &grob.LayoutShapeLine{ Color: "LightSeaGreen", Width: types.N(4), Dash: types.S(string(grob.Scatter3dLineDashDashdot)), @@ -50,7 +50,7 @@ func main() { Y0: 0, X1: 6, Y1: 2, - Line: &grob.ShapeLine{ + Line: &grob.LayoutShapeLine{ Color: "MediumPurple", Width: types.N(4), Dash: types.S(string(grob.Scatter3dLineDashDot)), diff --git a/examples/waterfall_bar_chart/main.go b/examples/waterfall_bar_chart/main.go index c3d0688..6a479c9 100644 --- a/examples/waterfall_bar_chart/main.go +++ b/examples/waterfall_bar_chart/main.go @@ -179,7 +179,7 @@ func main() { X: xData[i], Y: yData[i], Text: types.S(textList[i]), - Font: &grob.AnnotationFont{ + Font: &grob.LayoutAnnotationFont{ Family: types.S("Arial"), Size: types.N(14), Color: "rgba(245,246,249,1)",