Comments (7)
@MuthuSubramaniam
thank you!
Please, try the following approach:
List<DataEntry> data = new ArrayList<>();
data.add(new ValueDataEntry("Apples", 6371664));
data.add(new ValueDataEntry("Pears", 789622));
data.add(new ValueDataEntry("Bananas", 7216301));
data.add(new ValueDataEntry("Grapes", 1486621));
data.add(new ValueDataEntry("Oranges", 1200000));
AnyChartView anyChartView = findViewById(R.id.any_chart_view);
APIlib.getInstance().setActiveAnyChartView(anyChartView);
Pie pie = AnyChart.pie();
pie.data(data);
anyChartView.setChart(pie);
AnyChartView anyChartView1 = findViewById(R.id.any_chart_view1);
APIlib.getInstance().setActiveAnyChartView(anyChartView1);
Pie pie1 = AnyChart.pie();
pie1.data(data);
anyChartView1.setChart(pie1);
from anychart-android.
@MuthuSubramaniam
Please, can you provide us your code to review it and suggest a proper solution?
from anychart-android.
`
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:weightSum="4">
<com.anychart.AnyChartView
android:id="@+id/any_chart_view"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" />
<com.anychart.AnyChartView
android:id="@+id/any_chart_view1"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" />
<com.anychart.AnyChartView
android:id="@+id/any_chart_view2"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" />
<com.anychart.AnyChartView
android:id="@+id/any_chart_view3"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" />
</LinearLayout>
</ScrollView>
`
from anychart-android.
@MuthuSubramaniam
Thank you for the layout, but we need the code which creates the chart.
from anychart-android.
`
Pie pie = AnyChart.pie();
List<DataEntry> data = new ArrayList<>();
data.add(new ValueDataEntry("John", 10000));
data.add(new ValueDataEntry("Jake", 12000));
data.add(new ValueDataEntry("Peter", 18000));
pie.data(data);
AnyChartView anyChartView = (AnyChartView) findViewById(R.id.any_chart_view);
anyChartView.setChart(pie);
AnyChartView anyChartView1 = (AnyChartView) findViewById(R.id.any_chart_view1);
anyChartView1.setChart(pie);
.
.
.
.
.
AnyChartView anyChartView5 = (AnyChartView) findViewById(R.id.any_chart_view5);
anyChartView5.setChart(pie);
`
from anychart-android.
It didn't work for me
from anychart-android.
Is there any other solution?
from anychart-android.
Related Issues (20)
- Documentation website is down HOT 1
- Feature request Dark Mode HOT 1
- Charts are not displaying HOT 8
- Android: Change background color of a chart HOT 2
- Build issue: Manifest merger failed with multiple errors
- Updating datasets for multiple charts in single view HOT 1
- Download it and run it, click on the page and nothing is displayed HOT 7
- Getting blank page when try to open any graph HOT 2
- Loading MutableLiveData HOT 1
- tree chart is showing on activity but not showing in fragment HOT 1
- Cannot resolve symbol 'AnyChartView' in Android Studio version Arctic Fox |2020.3.1 Patch 3 HOT 1
- Pie chart is flickering whenever new data is inserted HOT 1
- When I add chart, cant see anything in designer HOT 3
- Changing label color depending on data value
- Bar chart not showing when use more then one view.... HOT 2
- i have problem chart not displaying HOT 3
- Sponsored issue: Java to Kotlin HOT 1
- Vertical Bar data does not refresh when tried to update with new data set. HOT 2
- ็ดงๆฅๆฑๅฉ/Urgent assistance
- Is it possible to create a sleep stage graph in Android similar to Apple Health's visualization?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from anychart-android.