Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Yield Curve and Options Chart Types, Up/Down Markers Plugin #1674

Merged
merged 26 commits into from
Dec 9, 2024

Conversation

SlicedSilver
Copy link
Contributor

Type of PR: new features

PR checklist:

  • Addresses an existing issue: fixes #
  • Includes tests
  • Documentation update

Overview of change:

Add Yield Curve and Options Chart Types, Up/Down Markers Plugin, and Documentation Updates

New Features:

  1. Yield Curve Chart:

    • Added a new chart type specifically designed for displaying yield curves.
    • Introduced the createYieldCurveChart function.
    • Implemented specialized horizontal scale behavior for yield curves, including linear spacing and whitespace handling.
  2. Options Chart:

    • Added a new chart type that uses price values on the horizontal scale.
    • Introduced the createOptionsChart function.
    • Implemented horizontal scale behavior for price-based charts.
  3. Up/Down Markers Plugin:

    • Added the UpDownMarkersPrimitive plugin to display markers indicating price changes.
    • Implemented marker management with automatic expiration and update handling.
  4. Codebase Improvements / API additions:

    • Added the ignoreWhitespaceIndices option to the time scale configuration.
    • Enhanced the updateSeriesData function to support historical updates.
  5. Documentation:

    • Updated the documentation to include new chart types and their usage.
    • Added a new page for chart types, detailing the creation and use cases for standard time-based, yield curve, and options charts.

@SlicedSilver SlicedSilver added enhancement Feature requests, and general improvements. documentation Improvements or additions to the documentation plugin This feature request should/could be implemented as a Plugin. labels Aug 13, 2024
@SlicedSilver SlicedSilver added this to the 5.0 milestone Aug 13, 2024
@SlicedSilver SlicedSilver self-assigned this Aug 13, 2024
Copy link

github-actions bot commented Aug 13, 2024

size-limit report 📦

Path Size
ESM 44.76 KB (+4.95% 🔺)
ESM createChart 36.77 KB (+0.98% 🔺)
ESM createChartEx 35.52 KB (+1.16% 🔺)
ESM Standalone 0 B (-100% 🔽)
Standalone 46.16 KB (+4.63% 🔺)
Plugin: Text Watermark 1.86 KB (+0.22% 🔺)
Plugin: Image Watermark 1.69 KB (+0.59% 🔺)
Plugin: Series Markers 3.98 KB (+0.1% 🔺)
Series: LineSeries 2.54 KB (+0.12% 🔺)
Series: BaselineSeries 3.19 KB (-0.13% 🔽)
Series: AreaSeries 3.12 KB (+0.32% 🔺)
Series: BarSeries 2.15 KB (+0.28% 🔺)
Series: CandlestickSeries 2.42 KB (0%)
Series: HistogramSeries 2.18 KB (-0.18% 🔽)
ESM createYieldCurveChart 36.98 KB (+100% 🔺)
ESM createOptionsChart 35.72 KB (+100% 🔺)
Standalone-ESM 46.19 KB (+100% 🔺)
Plugin: UpDownMarkersPrimitive 2.37 KB (+100% 🔺)

@SlicedSilver SlicedSilver marked this pull request as ready for review December 9, 2024 13:02
@SlicedSilver SlicedSilver merged commit 4fd56b6 into v5-candidate Dec 9, 2024
27 of 33 checks passed
@SlicedSilver SlicedSilver deleted the curve-charts branch December 9, 2024 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to the documentation enhancement Feature requests, and general improvements. plugin This feature request should/could be implemented as a Plugin.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants