Skip to content

Conversation

@gemdev111
Copy link
Contributor

@gemdev111 gemdev111 commented Dec 2, 2025

Adjusted the color mapping for stop loss, entry, and liquidation lines in ChartLineViewModel for better visual distinction. Unified the line style to a consistent dashed pattern. Reduced line opacity and refined label padding and corner radius in CandlestickChartView for improved chart readability.

Added price for each line
Fixed perp details title showed with delay
Decrease opacity for a grid to highlight lines

images:

Simulator Screenshot - iPhone 17 Pro Max - 2025-12-08 at 18 38 40 Simulator Screenshot - iPhone 17 Pro Max - 2025-12-08 at 18 38 44 Simulator Screenshot - iPhone 17 Pro Max - 2025-12-08 at 18 38 20

Adjusted the color mapping for stop loss, entry, and liquidation lines in ChartLineViewModel for better visual distinction. Unified the line style to a consistent dashed pattern. Reduced line opacity and refined label padding and corner radius in CandlestickChartView for improved chart readability.
@gemdev111 gemdev111 self-assigned this Dec 2, 2025
@gemdev111 gemdev111 changed the title Update chart line colors and styles for clarity Perp chart style updates Dec 2, 2025
Extracted chart grid line and color styling into a new ChartGridStyle struct for reuse and consistency. Updated CandlestickChartView to use ChartGridStyle for axis grid lines and ticks.
ChartLine now includes a decimals property, allowing for more precise price formatting. ChartLineViewModel uses PerpetualFormatter to display price labels with correct decimal places. CandlestickChartView label styling and spacing have been adjusted for better appearance.
@gemdev111 gemdev111 marked this pull request as ready for review December 8, 2025 16:40
Replaced PerpetualFormatter with CurrencyFormatter in ChartLineViewModel and PerpetualSceneViewModel. Removed decimals property from ChartLine struct and its usage. Updated CurrencyFormatter to trim whitespace from formatted strings and added related tests. Simplified label padding in CandlestickChartView.
Replaces the 'Liquidation' label with 'Liq' for the 'charts.liquidation' key across all supported localizations and updates the fallback value in Localized.swift. This change ensures consistency and brevity in chart terminology.
@gemdev111 gemdev111 merged commit 7d56d71 into main Dec 8, 2025
1 check passed
@gemdev111 gemdev111 deleted the perp-chart-improvments- branch December 8, 2025 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants