ScottPlot / ScottPlot/ScottPlot
Financial Data looks horrible with large dataset
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 6.8k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
Issue:
Was following examples in how to display Candle bars using the Financial section and looks how it renders on a two year period.
ScottPlot Version:
Code Sample: See http://scottplot.net/faq/repro/ for tips about creating reproducible code samples
var plt = new Plot();
// plt.ScaleFactor = 2;
var candles = data.RawData.Select(v => new OHLC(
(double)v.Open,
(double)v.High,
(double)v.Low,
(double)v.Close,
v.Date.ToUniversalTime(), TimeSpan.FromHours(1)
)).ToList();
var candlePlot = plt.Add.Candlestick(candles);
// candlePlot.Sequential = true;
plt.Axes.DateTimeTicksBottom();
plt.FigureBackground.Color = Colors.Black;
plt.DataBackground.Color = Colors.Black;
plt.Axes.Color(Color.FromHtml("#999999"));
plt.Axes.Right.MajorTickStyle.Color = Colors.Transparent;
plt.Axes.Right.MinorTickStyle.Color = Colors.Transparent;
plt.Axes.Bottom.MajorTickStyle.Color = Colors.Transparent;
plt.Axes.FrameWidth(0);
plt.Grid.MajorLineColor = Color.FromHtml("#222222");
plt.Grid.YAxis = plt.Axes.Right;
plt.SavePng(fileName, 800, 600);
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the supplied two-year dataset with the C# Plot, Add.Candlestick(candles), and DateTimeTicksBottom() calls. Inspect the Candlestick rendering path and related examples to determine why a large dataset looks as shown; done means the same period renders clearly rather than with the reported appearance.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100