<jupyter_start><jupyter_text>Charts with XPlotCharts can be rendered using [Xplot.Plotly](https://fslab.org/XPlot/)We will cover some example on how to use xplot in a notebook with C .NET Kernel, first import the namespace.<jupyter_code>using XPlot.Plotly;<jupyter_output><empty_output><jupyter_text>Let's try do declare two scatter plot series and combine them in a single chart<jupyter_code>var openSeries = new Graph.Scatter
{
    name = "Open",
    x = new[] {1, 2, 3, 4},
    y = new[] {10, 15, 13, 17}
};

var closeSeries = new Graph.Scatter
{
    name = "Close",
    x = new[] { 2,3,4,5 },
    y = new[] { 16, 5, 11, 9 }
};

var chart = Chart.Plot(new[] {openSeries, closeSeries});
chart.Width = 700;
chart.Height = 500;
chart.WithTitle("Open vs Close");
display(chart);<jupyter_output><empty_output><jupyter_text>Let's change it to be markers style, so more like a scatter plot!<jupyter_code>openSeries.mode = "markers";
closeSeries.mode = "markers";
chart = Chart.Plot(new [] {openSeries, closeSeries});
display(chart);<jupyter_output><empty_output><jupyter_text>Let's have a look at using histograms First let's generate some timeseries data<jupyter_code>var count = 20;
var generator = new Random(10);
var dates = Enumerable.Range(0, count).Select(i => DateTime.Now.AddMinutes(generator.Next(i, i + 30))).ToArray();<jupyter_output><empty_output><jupyter_text>Now let's define histogram traces<jupyter_code>var openByTime = new Graph.Histogram
{
    x = dates,
    y = Enumerable.Range(0, count).Select(_ => generator.Next(0,200)),
    name = "Open",
    histfunc = "sum"
};

var closeByTime = new Graph.Histogram
{
    x = dates,
    y = Enumerable.Range(0, count).Select(_ => generator.Next(0, 200)),
    name = "Close",
    histfunc = "sum"
};
chart = Chart.Plot(new [] {openByTime, closeByTime});
display(chart);<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1427801724137931, 'fraction_numerical': 0.024245689655172414, 'mean_word_length': 5.029220779220779, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 24, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '5', 'dir': 'jupyter-structured-clean-dedup', 'id': '143649', 'license': 'MIT', 'n_tokens_mistral': 697, 'n_tokens_neox': 641, 'n_words': 170, 'path': 'NotebookExamples/csharp/Docs/Plotting with Xplot.ipynb', 'repo_name': 'eerhardt/try', 'size': '1856'}