madrapps / plot Goto Github PK
View Code? Open in Web Editor NEWAn android compose library with different Graphs and Charts
License: Apache License 2.0
An android compose library with different Graphs and Charts
License: Apache License 2.0
Is it possible to provide the gradient color to area chart?
Add option to round YAxis intervals / ticks to nice numbers, i.e. 1,2,5 and all power-of-ten multiples of these numbers, like in this stackoverflow thread.
It seems like XAxis.stepSize is not synchronized to the xOffset between DataPoints. Changing stepSize only has effect on XAxis, not on Line
val ethereumOneWeek = listOf(
DataPoint(1f, 2938.67f),
DataPoint(2f, 2971.3f),
DataPoint(3f, 2887.21f),
DataPoint(4f, 2704.42f),
DataPoint(5f, 2646.03f),
DataPoint(6f, 2637.95f),
DataPoint(7f, 2548.08f),
)
LineGraph(
plot = LinePlot(
grid = LinePlot.Grid(Color.White.copy(alpha = 0.12f)),
lines = listOf(
element = LinePlot.Line(
dataPoints = ethereumOneWeek,
connection = LinePlot.Connection(color, 2.dp),
intersection = null,
),
),
xAxis = LinePlot.XAxis(
steps = 7,
stepSize = 40.dp,
),
),
modifier = Modifier
.fillMaxWidth()
.height(200.dp)
)
The background color for the canvas is hard coded to MaterialTheme.colors.surface
Just add an optional argument to the LineGraph composable for the graph background color, then set the bgColor variable in the composable to be equal to this argument. You can default it to the surface color if you wish and make it optional.
The build.gradle.kts file contains the code for creating a nexus repository. BUt where is the code which enables the publish plugin to actually publish the artifact??
It would be great if there was an option to enable drawing curved lines i.e. bezier paths
it is possible to disable the scroll and that the graph is displayed in the size of the screen ?
I like what you have done here; if the above features are not already implemented then is it possible for you to add these in a future release. At the moment we can't use this library as is unless (1) and (2) are resolved.
When I try to display one single datapoint, the y axis displays the same value 5 times and the dot is not visible.
I am currently using MPAndroidChart, but this library seems much more practical for my needs and do plan on switching over to it
However, the biggest downfall of what I'm currently using is the lack of data reduction. Which makes the chart look very weird when you have tens of thousands of points on a device as small as a phone.
is there such a feature with this library or could one be added?
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.