Skip to content
Discussion options

You must be logged in to vote

I didn't know using Plotly.NET.CSharp; is needed to show Grid() with gCharts overload. So the solution is,

using Plotly.NET.CSharp;
...
static void CreateAndOpenCharts(GenericChart[] charts, string fileName)
{
    var dashboardChart = Plotly.NET.CSharp.Chart.Grid(charts, charts.Length, 2)
        .WithTitle("Core Loop Dashboard Report")
        .WithSize(1200, 600 * charts.Length);

    var filePath = Path.Combine(Environment.CurrentDirectory, $"{fileName}.html");
    Plotly.NET.CSharp.GenericChartExtensions.SaveHtml(dashboardChart, filePath);
    FileUtility.OpenFile($"{fileName}.html");
}

Thank you, Kevin!
You're the best ❤️ !

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by BlokyMose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant