Androidplot传说重叠 [英] Androidplot legend overlapping

查看:153
本文介绍了Androidplot传说重叠的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我能做些什么来解决这个传说androidplot重叠?

What can I do to fix the legend overlapping in androidplot?

我可以操纵的传说位置?

Can I manipulate the legend placement?

推荐答案

您可以用它来放大传说:

You can use this to enlarge the legend:

myPlot.getLegendWidget().setSize(new SizeMetrics(15, SizeLayoutType.ABSOLUTE, 200, SizeLayoutType.ABSOLUTE));

15的高度和200的宽度。

更改图例位置:

15 is the height and 200 the width.
Change the legend position:

myPlot.position(
        myPlot.getLegendWidget(),
            0,
            XLayoutStyle.ABSOLUTE_FROM_RIGHT,
            0,
            YLayoutStyle.ABSOLUTE_FROM_BOTTOM,
            AnchorPosition.RIGHT_BOTTOM);

和重新定位域内的标签,如果你需要:

And reposition the domain label if you need to:

myPlot.position(myPlot.getDomainLabelWidget(),                     
            0,                                    
            XLayoutStyle.ABSOLUTE_FROM_LEFT,       
            15,                                     
            YLayoutStyle.ABSOLUTE_FROM_BOTTOM,     
            AnchorPosition.LEFT_BOTTOM);

这篇关于Androidplot传说重叠的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆