How to define/customize Legend for a chart? #460
Replies: 2 comments
-
Somehow chart.WithLegend only supports arg of bool. Have to call GenericChartExtensions.WithLegend(trace, legendSetting) explicitly to get it working. var boxPlot = box |
Beta Was this translation helpful? Give feedback.
-
It is hard for me to make out the problem because you are mixing some concepts here. Chart2D.Scatter does not create a trace - it creates a So you are always aiming to set the legend on the layout, or use a method that changes the layout part of a
|
Beta Was this translation helpful? Give feedback.
-
In version 5.0, legend is no longer an option for Layout.init. The legend option is also not exposed for trace such as Chart2D.Scatter. Looking at the code, it's defined for inner function Trace2DStyle.Scatter but Legend arg is set to null. Please provide an example for customizing Legend.
Beta Was this translation helpful? Give feedback.
All reactions