diff --git a/src/Plotly.NET/ChartAPI/Chart3D.fs b/src/Plotly.NET/ChartAPI/Chart3D.fs index 4b80768a7..c5cfdee9e 100644 --- a/src/Plotly.NET/ChartAPI/Chart3D.fs +++ b/src/Plotly.NET/ChartAPI/Chart3D.fs @@ -295,6 +295,7 @@ module Chart3D = [] ?Name, [] ?ShowLegend, [] ?Opacity, + [] ?Color, [] ?Contours, [] ?ColorScale, [] ?ShowScale, @@ -307,7 +308,8 @@ module Chart3D = Z = z, ?I = I, ?J = J, - ?K = K + ?K = K, + ?Color = Color ) ) |> TraceStyle.TraceInfo(?Name=Name,?ShowLegend=ShowLegend,?Opacity=Opacity) diff --git a/src/Plotly.NET/Traces/Trace3D.fs b/src/Plotly.NET/Traces/Trace3D.fs index a77802ff2..d87aa0fae 100644 --- a/src/Plotly.NET/Traces/Trace3D.fs +++ b/src/Plotly.NET/Traces/Trace3D.fs @@ -372,6 +372,7 @@ type Trace3DStyle() = /// Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. /// Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, "scatter" traces also appends customdata items in the markers DOM elements /// Sets a reference between this trace's 3D coordinate system and a 3D scene. If "scene" (the default value), the (x,y,z) coordinates refer to `layout.scene`. If "scene2", the (x,y,z) coordinates refer to `layout.scene2`, and so on. + /// Sets the color values, used for setting a color scale independent of `z`. /// Sets a reference to a shared color axis. References to these shared color axes are "coloraxis", "coloraxis2", "coloraxis3", etc. Settings for these shared color axes are set in the layout, under `layout.coloraxis`, `layout.coloraxis2`, etc. Note that multiple color scales can be linked to the same color axis. /// Sets the colorbar of this trace. /// Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale`. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed. @@ -423,6 +424,7 @@ type Trace3DStyle() = [] ?Meta : string, [] ?CustomData : seq<#IConvertible>, [] ?Scene : StyleParam.SubPlotId, + [] ?Color : Color, [] ?ColorAxis : StyleParam.SubPlotId, [] ?ColorBar : ColorBar, [] ?AutoColorScale : bool, @@ -476,6 +478,7 @@ type Trace3DStyle() = Meta |> DynObj.setValueOpt mesh3d "meta" CustomData |> DynObj.setValueOpt mesh3d "customdata" Scene |> DynObj.setValueOptBy mesh3d "scene" StyleParam.SubPlotId.convert + Color |> DynObj.setValueOpt mesh3d "color" ColorAxis |> DynObj.setValueOptBy mesh3d "coloraxis" StyleParam.SubPlotId.convert ColorBar |> DynObj.setValueOpt mesh3d "colorbar" AutoColorScale |> DynObj.setValueOpt mesh3d "autocolorscale"