## [0.7.2] - 2026-03-05 - Gradient Fill Support#25
Merged
alaa-eddine merged 3 commits intomainfrom Mar 5, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[0.7.2] - 2026-03-05 - Gradient Fill Support
Added
FillRenderer): Added support for Pine Script's gradient fill variant —fill(plot1, plot2, top_value, bottom_value, top_color, bottom_color). The renderer detectsplotOptions.gradient === trueand renders each polygon segment with a vertical ECharts linear gradient, mappingtop_colorto the higher-value boundary andbottom_colorto the lower-value boundary. Gracefully falls back to a semi-transparent grey if per-bar color data is missing.ColorUtils.toRgba(): Added a new utility method to convert any parsed color + opacity pair into a reliablergba()string, handlingrgb(), 6-digit hex, and 8-digit hex (#RRGGBBAA) inputs.ColorUtils.parseColor()— 8-digit Hex: ExtendedparseColor()to handle#RRGGBBAAcolors (the format PineTS emits forcolor.new()with alpha), correctly extracting the alpha channel as opacity.Fixed
color: na: Fixed fill plots losing their reference data when the source plot had segments withcolor: na(invisible segments). Previously,plotDataArraysstored the post-nullification array (wherena-color points were set tonull), so the fill had gaps wherever the source plot was invisible. Now a separaterawDataArrayis stored with the original numeric values, ensuring fills always see the underlying data regardless of visibility.