Skip to content

Commit

Permalink
Update 06 Plot Data.html
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekMelchin authored Oct 24, 2023
1 parent 8179e03 commit 58e2953
Showing 1 changed file with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
<p>Follow these steps to plot line charts using <span class="python">built-in methods</span><span class="csharp"><code>Plotly.NET</code> package</span>:</p>

<ol>
<li class="python">Call the <code>plot</code> method on the history <code>DataFrame</code>.</li>
<div class="python section-example-container">
<pre class='python'>history.plot(title='PE Ratio Over Time', figsize=(15, 8))</pre>
<li>Get some historical data.</li>
<div class="section-example-container">
<pre class='csharp'>var history = qb.GetFundamental(symbols, "ValuationRatios.PERatio", new DateTime(2014, 1, 1), new DateTime(2015, 1, 1));</pre>
<pre class='python'>history = qb.GetFundamental(symbols, "ValuationRatios.PERatio", datetime(2014, 1, 1), datetime(2015, 1, 1))</pre>
</div>

<li class="csharp">Create <code>Line</code> charts.</li>
<div class="csharp section-example-container">
<pre class='csharp'>var chart1 = Chart2D.Chart.Line&lt;DateTime, decimal, string&gt;(
Expand Down Expand Up @@ -41,6 +42,11 @@
<pre class='csharp'>var chart = Plotly.NET.Chart.Combine(new []{chart1, chart2});
chart.WithLayout(layout);</pre>
</div>

<li class="python">Call the <code>plot</code> method on the history <code>DataFrame</code>.</li>
<div class="python section-example-container">
<pre class='python'>history.plot(title='PE Ratio Over Time', figsize=(15, 8))</pre>
</div>

<li>Show the plot.</li>
<div class="section-example-container">
Expand Down

0 comments on commit 58e2953

Please sign in to comment.