fslaborg / fslaborg/XPlot

Documentation request for subplots

Open
#49 0 comments 0 reactions 0 assignees View on GitHub
Area: docs Area: more charts enhancement help wanted
Dominant language
F#
Stars
289
Forks
70
PR merge metrics
No merged PRs in 30d

Description

Some clarification of how to make and use subplots in the documentation or an example in
`XPlot/src/XPlot.Plotly/Tests/Subplots.fsx`
would be very helpful.

I have gotten this far, two axes are made but they are overlaid, and only one plot is visible.

```f#
#I "packages/XPlot.Plotly/lib/net45"
#I "packages/Newtonsoft.Json/lib/net45"
#r "XPlot.Plotly.dll"

open XPlot.Plotly
let layout =
Layout(
title = "Heatmap and Time Series Plot beside each other",
xaxis = Xaxis(),
yaxis = Yaxis(),
xaxis2 = Xaxis(),
yaxis2 = Yaxis()
)

let data = [ Heatmap(z=[ [ 1;3;4]; [6;4;2]; [8;5;4]]):> XPlot.Plotly.Graph.Trace
Scatter( y = [1; 3; 6], xaxis="x2", yaxis="y2") :> XPlot.Plotly.Graph.Trace ]

data
|> Chart.Plot
|> Chart.WithLayout layout
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.