Comments (1)
The short answer is: sure you can.
You can modify the SalesStackedBarChart class in the demo this way and you will
only get one single series built:
public Intent execute(Context context) {
String[] titles = new String[] { "2008" };//, "2007" };
List<double[]> values = new ArrayList<double[]>();
values.add(new double[] { 14230, 12300, 14240, 15244, 15900, 19200, 22030, 21200, 19500,
15500, 12600, 14000 });
// values.add(new double[] { 5230, 7300, 9240, 10540, 7900, 9200, 12030,
11200, 9500, 10500,
// 11600, 13500 });
int[] colors = new int[] { Color.BLUE };//, Color.CYAN };
XYMultipleSeriesRenderer renderer = buildBarRenderer(colors);
setChartSettings(renderer, "Monthly sales in the last 2 years", "Month", "Units sold", 0.5,
12.5, 0, 24000, Color.GRAY, Color.LTGRAY);
renderer.setXLabels(12);
renderer.setYLabels(10);
renderer.setDisplayChartValues(true);
renderer.setXLabelsAlign(Align.LEFT);
renderer.setYLabelsAlign(Align.LEFT);
renderer.setZoomRate(1.1f);
return ChartFactory.getBarChartIntent(context, buildBarDataset(titles, values), renderer, Type.DEFAULT);
}
Original comment by [email protected]
on 16 Nov 2010 at 5:51
- Changed state: Done
from achartengine.
Related Issues (20)
- 91-9587549251~husband wife vashikaran specialist baba ji HOT 1
- [deleted issue]
- dusman mukati specialist baba ji+91-9587549251 HOT 1
- Change color of clicked point only. Show pop up at position of clicked point.
- Can't get zoom buttons visible and zoom with them if pinch zoom is disabled with setZoomEnabled(false,false)
- in zoomListener isZoomIn only works with zoom buttons and not with pinch zoom
- Chart with FillOutsideLine and background color of margin transparent
- Custom axis labels: Missing functionality, interface confusion. HOT 1
- Issues with when dynamically ploting the line graph using AchartEngine in android
- Added custom Point value formatter HOT 1
- Zoom does not zoom out when on Zoom Limits
- is it possible to group the x axis?
- duplicate x values behavior in XYSeries
- Highlight single points of a time/xy series
- chartView.toRealPoint() not working for static chart HOT 2
- [deleted issue]
- [deleted issue]
- [deleted issue]
- [deleted issue]
- Xaxis Label over lapping,
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 achartengine.