Code Monkey home page Code Monkey logo

plot's People

Contributors

thsaravana avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

plot's Issues

LineWidth is not synchronized to XAxisWidth

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)
    )

chart

Add graph background color argument

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.

Disable scroll

it is possible to disable the scroll and that the graph is displayed in the size of the screen ?

Looking for the following functionality

  1. I want to show the Y-Axis on the right hand side of the graph. Is it possible?
  2. I want to show all the data in a single view without the need to scroll through the data. Right now after I display the data I have to scroll to the right to see the latest data sets. I want to present all the data to the user without the need for scrolling. Is there a way to do it in the current release?

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.

data reduction (Douglas Peucker)

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.