An open API service indexing awesome lists of open source software.

https://github.com/kaku2015/weatherchartview

A simple line chart view of weather for android.
https://github.com/kaku2015/weatherchartview

android chart weather weather-chart

Last synced: about 1 year ago
JSON representation

A simple line chart view of weather for android.

Awesome Lists containing this project

README

          

# WeatherChartView
A simple line chart view of weather for android.

![image](https://github.com/kaku2015/WeatherChartView/blob/master/sample/screenshots/show.png)

# Usage
In the layout file, just introduce the custom View.

```

```
Dynamic set values of day and night temperature in Activity.

```
WeatherChartView mCharView = (WeatherChartView) findViewById(R.id.line_char);
// set day
mCharView.setTempDay(new int[]{14, 15, 16, 17, 9, 9});
// set night
mCharView.setTempNight(new int[]{7, 5, 9, 10, 3, 2});
mCharView.invalidate();
```
# Note
Default display 6 days of weather, if there is a need to be able to modify their own.

# License
```
Copyright (c) 2016 Kaku咖枯

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.
```