File tree Expand file tree Collapse file tree 4 files changed +23
-14
lines changed Expand file tree Collapse file tree 4 files changed +23
-14
lines changed Original file line number Diff line number Diff line change @@ -45,17 +45,26 @@ let data =
45
45
46
46
let updateMenu =
47
47
UpdateMenu.init (
48
- Buttons =
49
- [ UpdateMenuButton.init (
50
- Args = [ " type" ; " surface" ],
51
- Label = " Surface" ,
52
- Method = StyleParam.UpdateMethod.Restyle
48
+ Buttons = [
49
+ UpdateMenuButton.init (
50
+ Args = [
51
+ let args = DynamicObj.DynamicObj()
52
+ args?( " type" ) <- " surface"
53
+ args
54
+ ],
55
+ Label = " Surface" ,
56
+ Method = StyleParam.UpdateMethod.Restyle
57
+ )
58
+ UpdateMenuButton.init (
59
+ Args = [
60
+ let args = DynamicObj.DynamicObj()
61
+ args?( " type" ) <- " heatmap"
62
+ args
63
+ ],
64
+ Label = " Heatmap" ,
65
+ Method = StyleParam.UpdateMethod.Restyle
53
66
)
54
- UpdateMenuButton.init (
55
- Args = [ " type" ; " heatmap" ],
56
- Label = " Heatmap" ,
57
- Method = StyleParam.UpdateMethod.Restyle
58
- ) ],
67
+ ],
59
68
Direction = StyleParam.UpdateMenuDirection.Down,
60
69
Pad = Padding.init ( R = 10 , T = 10 ),
61
70
ShowActive = true ,
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ A Histogram2D chart can be created using the `Chart.Histogram2D` or `Chart.Histo
66
66
*)
67
67
68
68
let histogramContour =
69
- Chart.Histogram2DContour( x = x, y = y, ContourLine = Line.init ( Width = 0. ))
69
+ Chart.Histogram2DContour( x = x, y = y, ContourLines = Line.init ( Width = 0. ))
70
70
71
71
(*** condition: ipynb ***)
72
72
#if IPYNB
Original file line number Diff line number Diff line change @@ -105,8 +105,8 @@ let contour3 =
105
105
Chart.Contour(
106
106
zData = z,
107
107
ContoursColoring = StyleParam.ContourColoring.Heatmap,
108
- ShowContourLabels = true ,
109
- ContourLabelFont = Font.init ( Size = 12. , Color = Color.fromKeyword White)
108
+ ShowContoursLabels = true ,
109
+ ContoursLabelFont = Font.init ( Size = 12. , Color = Color.fromKeyword White)
110
110
)
111
111
112
112
(*** condition: ipynb ***)
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ let pointDensityChartStyled =
74
74
PointMarkerSize = 4 ,
75
75
ColorScale = StyleParam.Colorscale.Viridis,
76
76
ColorBar = ColorBar.init ( Title = Title.init ( " Density" )),
77
- ShowContourLabels = true
77
+ ShowContoursLabels = true
78
78
)
79
79
80
80
(*** condition: ipynb ***)
You can’t perform that action at this time.
0 commit comments