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 completely remove paddings from chart Options · View
roman125
#1 Posted : Tuesday, June 05, 2012 2:10:54 PM
Rank: Newbie

Groups: Registered

Joined: 6/5/2012
Posts: 4


How can I remove completely paddings from left and right of the chart?

Code:

chartView.getAreas().remove(0);

        ChartArea area = new ChartArea();
        area.setName("area");
        area.setPadding(0);
        for (ChartAxis axis : area.getAxes()) {
            axis.setGridVisible(false);
            axis.setPadding(0);
            axis.setVisible(false);
            axis.setShowLabels(false);
            axis.setLabelLayoutMode(LabelLayoutMode.Hide);
        }
Baydalka Volodymyr
#2 Posted : Tuesday, June 05, 2012 2:58:08 PM
Rank: Developers Team


Groups: Registered, Administrators

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

Try to set chartAxis.getScale().setMargin(0);

Best regards,
Volodymyr Baydalka
Andriod development and support team
roman125
#3 Posted : Wednesday, June 06, 2012 5:35:03 PM
Rank: Newbie

Groups: Registered

Joined: 6/5/2012
Posts: 4
Thank you very much
Users browsing this topic
Guest (2)
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-2017 ArtfulBits. All rights reserved.