Comments (5)
@KartikAggarwal
Do you mean multi-series column chart like this?
from anychart-android.
@Shestac92, Yes
from anychart-android.
@KartikAggarwal
Please, try this code to build a such column chart:
Cartesian cartesian = AnyChart.column();
List<DataEntry> data = new ArrayList<>();
data.add(new CustomDataEntry("Rouge", 10, 5, 9));
data.add(new CustomDataEntry("Foundation", 12, 5, 8));
data.add(new CustomDataEntry("Mascara", 4, 3, 7));
Set set = Set.instantiate();
set.data(data);
cartesian.labels("{position:'center', fontColor:'#000'}");
cartesian.column(set.mapAs("{'value': 'value'}"));
cartesian.column(set.mapAs("{'value': 'value1'}"));
cartesian.column(set.mapAs("{'value': 'value2'}"));
cartesian.yAxis(0).labels().format("${%Value}{groupsSeparator: }");
cartesian.yAxis(0).title("Revenue");
cartesian.labels()
.enabled(true)
.position("center-top")
.anchor("center-bottom")
.format("${%Value}{groupsSeparator: }");
cartesian.hovered().labels(false);
cartesian.legend()
.enabled(true)
.fontSize(13)
.padding(0, 0, 20, 0);
cartesian.interactivity().hoverMode("single");
cartesian.tooltip()
.positionMode("point")
.position("center-top")
.anchor("center-bottom")
.offsetX(0)
.offsetY(5)
.titleFormat("{%X}")
.format("{%SeriesName} : ${%Value}{groupsSeparator: }");
anyChartView.setChart(cartesian);
class CustomDataEntry extends ValueDataEntry {
public CustomDataEntry(String x, Number value, Number value1, Number value2) {
super(x, value);
setValue("value1", value1);
setValue("value2", value2);
}
}
from anychart-android.
@Shestac92
Thanks, It works like charm. You have done great job in this library.
I have one more query regarding the custom column colors.
from anychart-android.
Problem resolved..:blush:
from anychart-android.
Related Issues (20)
- the problem in treemap HOT 4
- Heatmap Chart not working HOT 1
- 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
- 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
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.