kandi background
Explore Kits

hellocharts-android | graphs library for Android compatible | Chart library

 by   lecho Java Version: v1.5.8 License: Apache-2.0

 by   lecho Java Version: v1.5.8 License: Apache-2.0

Download this library from

kandi X-RAY | hellocharts-android Summary

hellocharts-android is a Java library typically used in User Interface, Chart applications. hellocharts-android has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has medium support. You can download it from GitHub, Maven.
Charts/graphs library for Android compatible with API 8+, several chart types with support for scaling, scrolling and animations
Support
Support
Quality
Quality
Security
Security
License
License
Reuse
Reuse

kandi-support Support

  • hellocharts-android has a medium active ecosystem.
  • It has 7211 star(s) with 1640 fork(s). There are 277 watchers for this library.
  • It had no major release in the last 12 months.
  • There are 278 open issues and 226 have been closed. On average issues are closed in 273 days. There are 10 open pull requests and 0 closed requests.
  • It has a neutral sentiment in the developer community.
  • The latest version of hellocharts-android is v1.5.8
hellocharts-android Support
Best in #Chart
Average in #Chart
hellocharts-android Support
Best in #Chart
Average in #Chart

quality kandi Quality

  • hellocharts-android has 0 bugs and 0 code smells.
hellocharts-android Quality
Best in #Chart
Average in #Chart
hellocharts-android Quality
Best in #Chart
Average in #Chart

securitySecurity

  • hellocharts-android has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
  • hellocharts-android code analysis shows 0 unresolved vulnerabilities.
  • There are 0 security hotspots that need review.
hellocharts-android Security
Best in #Chart
Average in #Chart
hellocharts-android Security
Best in #Chart
Average in #Chart

license License

  • hellocharts-android is licensed under the Apache-2.0 License. This license is Permissive.
  • Permissive licenses have the least restrictions, and you can use them in most projects.
hellocharts-android License
Best in #Chart
Average in #Chart
hellocharts-android License
Best in #Chart
Average in #Chart

buildReuse

  • hellocharts-android releases are available to install and integrate.
  • Deployable package is available in Maven.
  • Build file is available. You can build the component from source.
  • Installation instructions, examples and code snippets are available.
  • hellocharts-android saves you 5111 person hours of effort in developing the same functionality from scratch.
  • It has 10746 lines of code, 1153 functions and 160 files.
  • It has medium code complexity. Code complexity directly impacts maintainability of the code.
hellocharts-android Reuse
Best in #Chart
Average in #Chart
hellocharts-android Reuse
Best in #Chart
Average in #Chart
Top functions reviewed by kandi - BETA

kandi has reviewed hellocharts-android and discovered the below as its top functions. This is intended to give you an instant insight into hellocharts-android implemented functionality, and help decide if they suit your requirements.

  • Draw a smooth path .
  • Prepare custom axis with viewport
  • Computes the touch event .
  • Compute a zoomable viewport .
  • Scroll the scroll result .
  • Compute axis values .
  • Process the column for each subcol .
  • Ensure that the viewport is within the max viewport .
  • Draws the separators for the pie chart .
  • Call the touch listener on the click listener

hellocharts-android Key Features

Line chart(cubic lines, filled lines, scattered points)

Column chart(grouped, stacked, negative values)

Pie chart

Bubble chart

Combo chart(columns/lines)

Preview charts(for column chart and line chart)

Zoom(pinch to zoom, double tap zoom), scroll and fling

Custom and auto-generated axes(top, bottom, left, right, inside)

Animations

Download and Import

copy iconCopydownload iconDownload
	dependencies{
		compile 'com.github.lecho:hellocharts-library:1.5.8@aar'
	}

Usage

copy iconCopydownload iconDownload
   <lecho.lib.hellocharts.view.LineChartView
       android:id="@+id/chart"
       android:layout_width="match_parent"
       android:layout_height="match_parent" />

License

copy iconCopydownload iconDownload
HelloCharts	
Copyright 2014 Leszek Wach

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Hellocharts android library not rendering chart when there is a single value or when y axis values are same

copy iconCopydownload iconDownload
        float ymax= maxyvalue +10f;
        final Viewport v = new Viewport(chart.getMaximumViewport());
        v.top =ymax; //max value
        v.bottom = 0f;  //min value
        chart.setMaximumViewport(v);
        chart.setCurrentViewport(v);

Community Discussions

Trending Discussions on hellocharts-android
  • Hellocharts android library not rendering chart when there is a single value or when y axis values are same
Trending Discussions on hellocharts-android

QUESTION

Hellocharts android library not rendering chart when there is a single value or when y axis values are same

Asked 2020-Apr-15 at 07:57

Am using hellochart library https://github.com/lecho/hellocharts-android to show a linechart in my app.

When i try to generate the graph with a single value, it is just showing an empty graph (It is supposed to show a single dot in the graph indicating the value right?).

The problem also persists if the first and second y axis value is same (When there is just 2 values).

Any ideas why this weird problem occurs?

The code am using is given below

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        List<String> datelist = new ArrayList<String>();
        List<Float> weightlist = new ArrayList<Float>();
        datelist.add("12/Apr/2020");
        weightlist.add(72f);
        datelist.add("13/Apr/2020");
        weightlist.add(72f);

        LineChartView chart = findViewById(R.id.chart);

        List<AxisValue> axisValues = new ArrayList<AxisValue>();
        List<PointValue> values = new ArrayList<PointValue>();
        for (int i = 0; i < datelist.size(); ++i) {
            values.add(new PointValue(i, weightlist.get(i)));
            axisValues.add(new AxisValue(i).setLabel(datelist.get(i)));
        }

        Line line = new Line(values).setColor(Color.BLUE).setCubic(false);
        line.setHasLabels(true);
        List<Line> lines = new ArrayList<Line>();
        lines.add(line);

        LineChartData data = new LineChartData();
        data.setLines(lines);

        data.setAxisXBottom(new Axis(axisValues));
        data.setAxisYLeft(new Axis());

        chart.setLineChartData(data);


    }
}

ANSWER

Answered 2020-Apr-15 at 07:57

This is the the solution i finally found, To set the viewport manually.

        float ymax= maxyvalue +10f;
        final Viewport v = new Viewport(chart.getMaximumViewport());
        v.top =ymax; //max value
        v.bottom = 0f;  //min value
        chart.setMaximumViewport(v);
        chart.setCurrentViewport(v);

Hope it will help somebody in future.

Source https://stackoverflow.com/questions/61190544

Community Discussions, Code Snippets contain sources that include Stack Exchange Network

Vulnerabilities

No vulnerabilities reported

Install hellocharts-android

Maven Central/jCenter, add dependency to your build.gradle:
JitPack.io, add jitpack.io repositiory and dependency to your build.gradle:
Download the latest release jar file.
Copy hellocharts-library-<version>.jar into the libs folder of your application project.

Support

Yes:) If you found a bug, have an idea how to improve library or have a question, please create new issue or comment existing one. If you would like to contribute code fork the repository and send a pull request.

DOWNLOAD this Library from

Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases

Save this library and start creating your kit

Explore Related Topics

Share this Page

share link
Compare Chart Libraries with Highest Support
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases

Save this library and start creating your kit

  • © 2022 Open Weaver Inc.