Home

LINQPad raw html script works in LINQPad 5 but not working in LINQPad 7

Script:

<Query Kind="Statements">
  <NuGetReference>FSharp.Core</NuGetReference>
  <NuGetReference>XPlot.GoogleCharts</NuGetReference>
  <NuGetReference>XPlot.Plotly</NuGetReference>
  <Namespace>Microsoft.FSharp.Core</Namespace>
  <Namespace>static XPlot.GoogleCharts.Configuration</Namespace>
  <Namespace>XPlot.GoogleCharts</Namespace>
</Query>

var rnd = new Random();
var data = Enumerable.Range(0, 700).Select(x => Tuple.Create(new DateTime(2019, 1, 1).AddDays(x), rnd.Next(5)));

string html = Chart.Calendar(data, FSharpOption<IEnumerable<string>>.None, FSharpOption<Options>.None)
    .GetHtml();
Util.RawHtml(html).Dump();

Expected result (using LINQPad 5):

Actually result (in LINQPad 7):
nothing

Likely caused by difference by WebView2 rendering engine and Internet Explorer.

Comments

Sign In or Register to comment.