whitespace COMPANY whitespace SERVICES whitespace PRODUCTS whitespace PURCHASE whitespace SUPPORT whitespace CONTACTS whitespace Home whitespace Contact Us whitespace Site Map whitespace
whitespace
SUPPORT
whitespace
FORUM
whitespace
FAQS
whitespace
SUBSCRIPTION
whitespace
REQUEST ON-LINE
whitespace
whitespace

Technical Support Forum

Welcome Guest Search | Active Topics | Log In | Register

How to modify Column Chart to look like a Barometer Options · View
nehaverma
#1 Posted : Tuesday, January 22, 2013 10:44:06 AM
Rank: Newbie

Groups: Registered

Joined: 1/22/2013
Posts: 1
Location: Bangalore
Hi

I am evaluating AiCharts for one my projects.

I want to modify the Column Chart to look like a vertical Barometer. Please see attached picture.

Let me know if this level of customization is possible in AiCharts.

Thanks


nehaverma attached the following image(s):
Charts.png (22kb) downloaded 9 time(s).
Baydalka Volodymyr
#2 Posted : Monday, January 28, 2013 12:01:00 PM
Rank: Developers Team


Groups: Registered, Administrators

Joined: 7/28/2009
Posts: 447
Hi,

There is some code to modification

Code:
ChartView chartView = new ChartView(this);
ChartArea area = new ChartArea();
ChartSeries series = new ChartSeries("", ChartTypes.Column);

area.getDefaultYAxis().setPosition(Position.Right);
area.getDefaultYAxis().getScale().setRange(0, 100);
area.getDefaultXAxis().setVisible(false);
area.getDefaultXAxis().getScale().setRange(-0.5, 0.5);

ChartPoint progressPoint = new ChartPoint(0, yourValue); // change your value
series.getPoints().add(progressPoint);
series.setAttribute(ChartType.POINT_WIDTH, 1f);
series.setBackDrawable(getDrawable(R.drawable.column)); // column gradient

chartView.getSeries().add(series);
chartView.getAreas().add(area);

setContentView(chartView);


However, aiCharts it not a best choice to represent vertical ProgressBar.

Best regards,
Volodymyr Baydalka
Andriod development and support team
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Company | Services | Practices | Technologies | Career | Contacts | Privacy
© 2005-2016 ArtfulBits. All rights reserved.