Skip to content

Change legend position? #63

Closed
Closed
@nhirschey

Description

@nhirschey

Description

How do I change the legend position? For instance, to put the legend below the chart in this sample? I can't see this documented anywhere.

Repro steps

open Plotly.NET 
  
let x = [1.; 2.; 3.; 4.; 5.; 6.; 7.; 8.; 9.; 10.; ]
let y = [2.; 1.5; 5.; 1.5; 3.; 2.5; 2.5; 1.5; 3.5; 1.]

let combinedChart = 
    [
        Chart.Line(x,y,Name="first")
        Chart.Line(y,x,Name="second")
    ]
    |> Chart.Combine

// has legend to the right of the chart. I'd like it below the chart.
combinedChart.Show

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions