Skip to content

Commit ccb6af7

Browse files
committed
Fix key value argument order for bar charts
1 parent 99fb173 commit ccb6af7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/Plotly.NET/Chart.fs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,7 @@ type Chart =
10391039
match Marker with
10401040
| Some marker -> marker |> Plotly.NET.Marker.style(?Color=Color)
10411041
| Option.None -> Plotly.NET.Marker.init (?Color=Color)
1042-
Trace.initBar (TraceStyle.Bar(X = keys,Y = values,Marker=marker,Orientation = StyleParam.Orientation.Horizontal))
1042+
Trace.initBar (TraceStyle.Bar(X = values,Y = keys,Marker=marker,Orientation = StyleParam.Orientation.Horizontal))
10431043
|> TraceStyle.TraceInfo(?Name=Name,?Showlegend=Showlegend,?Opacity=Opacity)
10441044
|> TraceStyle.TextLabel(?Text=Labels,?Textposition=TextPosition,?Textfont=TextFont)
10451045
|> GenericChart.ofTraceObject

0 commit comments

Comments
 (0)