AppPear / ChartView

ChartView made in SwiftUI
MIT License
5.26k stars 645 forks source link

Line Chart with equal data points does not appear. #260

Open Brandon-316 opened 1 year ago

Brandon-316 commented 1 year ago

Description

If all data points are equal then the line chart does not appear.

Expected Behavior

A straight line for the chart.

Actual Behavior

The chart remains empty.

Possible Fix

Switching to a bar chart with a single bar and adjusting the gradient is an option but then the line is not present. It also has the bar chart drag animation where the bar expands.

Steps to Reproduce

Load data with all data points equal like [250, 250, 250].

Your Environment