bytebeats / compose-charts Goto Github PK
View Code? Open in Web Editor NEWSimple Jetpack Compose Charts for multi-platform. Including Android, Web, Desktop.
License: MIT License
Simple Jetpack Compose Charts for multi-platform. Including Android, Web, Desktop.
License: MIT License
I would like to replace the labels on the y-axis in a bar diagram while keeping the original structure.
In my use case, I display an amount of time per day of week, which is currently displayed in minutes, but I'd like to change the format to something like 2:30 instead of 150. Is there an option for that?
Please help me for add implementation for compose chart desktop in my project intelliJ.
I want to add charts(bar & pie) to compose desktop project.
Hi ๐ Firstly, I wanna say thank you for your helpful compose chart library. You saved me a lot of time to implement the LineChart on my current project.
I am using LineChart from your library however the design looks a bit different from yours, that's why I have do to some stuff to customize the chart. I need to determine the max and min values to draw the text label on top of the points. So I am asking for the solution that we could expose the properties to public rather than private/internal ๐
Right now, BarChart max y value is fixed on the highest data point. It would be nice to be able to set the top y value to some other value. I have some extra markers I need to put at certain Y values beyond the top bar and I'm struggling to make it render correctly.
Hey, you have a typo in compose-charts/charts/src/main/java/me/bytebeats/views/charts/bar/BarChart.kt
The classname now is BarChar instead of BarChart.
Kotlin 1.8.0 and Compose 1.3.0
@Preview
@Composable
fun PieChartPreview() {
Box(modifier = Modifier.height(150.dp)) {
PieChart(
pieChartData = PieChartData(
slices = listOf(
PieChartData.Slice(25F, Color.Red),
PieChartData.Slice(45F, Color.Green),
PieChartData.Slice(20F, Color.Blue),
),
),
sliceDrawer = SimpleSliceDrawer(sliceThickness = 100f)
)
}
}
I am using a Android Studio 2021.1.1 Patch 3, with Jetpack Compose 1.1.1
I can display the chart no problem on my device
Hello, is there a maven package for the charts?
First of all, congrats for the API, it's awesome and works like a glance.
But just like in the Y axis there's a value formatter to customize how it's displayed, it'd be really useful to have the same on the X axis.
Thanks in advance, keep working! This is awesome ๐
Could you add a license to the project?
There are open source licenses such as Apache 2.0, MIT, BSD, etc
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.