pichukov / lightchart Goto Github PK
View Code? Open in Web Editor NEWSwiftUI charts
License: MIT License
SwiftUI charts
License: MIT License
Thanks a lot for this awesome library - it's a joy to use, and one of the few truly light and functional SwiftUI chart libraries out here. ๐
I assume this happens because the line stroke is equally applied to both sides of the line, and then cut off by frame. It would probably make sense to vertically move the chart inwards by half of the stroke width, so that the stroke is no longer cut off.
Thanks again!
The chart does not show anything if all the elements in the array is same
Ex:
LightChartView(data: [10, 10, 10, 10, 10],
type: .curved,
visualType: .filled(color: chartColor, lineWidth: 5),
currentValueLineType: .dash(color: .gray, lineWidth: 1, dash: [5]))
I've even tried adding an offset, but the result is still same
LightChartView(data: [10, 10, 10, 10, 10],
type: .curved,
visualType: .filled(color: chartColor, lineWidth: 5),
offset: 0.2,
currentValueLineType: .dash(color: .gray, lineWidth: 1, dash: [5]))
Current behavior
Expected behavior
Please fix this.
Thanks so much for this amazing SwiftUI library.
This is not a bug, just a feature suggestion.
LightChart already comes with the currentValueLine
, which draws a horizontal line at the last known value and works great.
I would like to suggest adding two more line types:
firstValueLine
(showing the first value in the data row)customValueLines
(showing a horizontal line at a value to be defined by the user).Background: I use LightChart for stock charts. It would be nice to draw a line at the first value of the chart (e.g. the opening price in the morning) or another arbitrary value (e.g. 0
or the closing price of the previous day).
Thanks for considering this! It's not urgent, but I think it would make a nice addition.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.