yasuoza / YOChartImageKit

Chart image framework for watchOS
MIT License
427 stars 55 forks source link

Linechart resolution - problem #8

Open skuske opened 7 years ago

skuske commented 7 years ago

If you have an array of values, which are all pretty close, then the line chart is not drawn properly. Instead a simple line is drawn, which does not reflect any ups and downs at all:

Values:

1.0205, 1.0207, 1.0209, 1.0207, 1.0207, 1.0205, 1.0202, 1.0201, 1.0199, 1.0197, 1.0196, 1.0193, 1.0192, 1.0192, 1.019, 1.0188, 1.0187, 1.0186, 1.0185, 1.0187, 1.0188, 1.0188, 1.019, 1.0193, 1.0195, 1.0198, 1.0199, 1.0201, 1.0201, 1.0201, 1.0201, 1.02, 1.0199, 1.0198, 1.0198, 1.0197, 1.0197, 1.0198, 1.0196, 1.0194, 1.0194, 1.0196, 1.0197, 1.0198, 1.02, 1.0202, 1.0205, 1.0206, 1.0206, 1.0206

How can that be fixed?

TIA.