All Projects → kaku2015 → Weatherchartview

kaku2015 / Weatherchartview

Licence: other
A simple line chart view of weather for android.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Weatherchartview

Weewx Belchertown
A clean and modern weewx skin with real time streaming updates, forecast data and interactive charts. View it in action at BelchertownWeather.com
Stars: ✭ 131 (+23.58%)
Mutual labels:  weather, chart
Devextreme
HTML5 JavaScript Component Suite for Responsive Web Development
Stars: ✭ 1,385 (+1206.6%)
Mutual labels:  chart
Inbrief
InBrief is a personal briefing app and dashboard powered by Electron and React
Stars: ✭ 90 (-15.09%)
Mutual labels:  weather
Highcharts Chart
Polymer Element wrapper for highcharts library. Seamlessly create various types of charts from one element.
Stars: ✭ 97 (-8.49%)
Mutual labels:  chart
Stolon Chart
Kubernetes Helm chart to deploy HA Postgresql cluster based on Stolon
Stars: ✭ 90 (-15.09%)
Mutual labels:  chart
Qbox
🐈 RxJava+Retrofit+Okhttp+Glide + A life tool App, contains modules: news; jokes; constellation fortune; LED; weather; calendar; two-dimensional code, and more ... 小秋魔盒是一个生活工具 App,主要功能有:新闻资讯;微信精选美文;笑话趣图;星座运势;LED字幕;天气;日历;二维码;手电筒;老黄历。在开发中尽可能多的用了目前比较流行的框架和库。
Stars: ✭ 1,360 (+1183.02%)
Mutual labels:  weather
Flutter weather bg
A rich and cool weather dynamic background plug-in
Stars: ✭ 89 (-16.04%)
Mutual labels:  weather
Vue Css Donut Chart
Lightweight Vue component for drawing pure CSS donut charts
Stars: ✭ 104 (-1.89%)
Mutual labels:  chart
Chart.qml
Chart.qml like Chart.js
Stars: ✭ 100 (-5.66%)
Mutual labels:  chart
Susnote
Susnote is a notebook which support markdown, UML and Chart.
Stars: ✭ 97 (-8.49%)
Mutual labels:  chart
Arcchartview
Arc Chart View (Draw Creative Statistic Arc Charts)
Stars: ✭ 96 (-9.43%)
Mutual labels:  chart
React Charts
⚛️ Simple, immersive & interactive charts for React
Stars: ✭ 1,302 (+1128.3%)
Mutual labels:  chart
Timeline Chart View
An android view to represent data over a timeline.
Stars: ✭ 100 (-5.66%)
Mutual labels:  chart
Coordinateaxischart
Drawing graphs of point, linear function, power function, exponential function, logarithmic function, circular function, etc in a coordinate. (实现了在坐标系中画点,一次函数,幂函数,指数函数,对数函数,三角函数等)
Stars: ✭ 90 (-15.09%)
Mutual labels:  chart
D3.chart.sankey
Reusable D3 Sankey diagram using d3.Chart
Stars: ✭ 103 (-2.83%)
Mutual labels:  chart
Barchart
SwiftUI Bar Chart
Stars: ✭ 89 (-16.04%)
Mutual labels:  chart
Chartjs Chart Box And Violin Plot
Chart.js Box Plot addon
Stars: ✭ 91 (-14.15%)
Mutual labels:  chart
Flamebarchart
一个炫酷的柱状图表。
Stars: ✭ 99 (-6.6%)
Mutual labels:  chart
Clj Xchart
XChart wrapper for Clojure
Stars: ✭ 105 (-0.94%)
Mutual labels:  chart
Laravel Dashboard Chart Tile
Create all the charts you want for your laravel dashboard
Stars: ✭ 102 (-3.77%)
Mutual labels:  chart

WeatherChartView

A simple line chart view of weather for android.

image

Usage

In the layout file, just introduce the custom View.

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:wcv="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@android:color/black">

    <com.kaku.wcv.WeatherChartView
        android:id="@+id/line_char"
        android:layout_width="match_parent"
        android:layout_height="150dp"
        android:layout_centerInParent="true"
        wcv:dayColor="@color/colorAccent"
        wcv:nightColor="@color/colorPrimary"
        wcv:textColor="@android:color/white"
        wcv:textSize="14sp"/>
</RelativeLayout>

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咖枯 <[email protected] | [email protected]>

 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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].