Flex图表标签的方式太小,如何调整轴的大小? [英] Flex chart labels way too small, how to resize axis?

查看:217
本文介绍了Flex图表标签的方式太小,如何调整轴的大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我有一个动态调整的条形图,如果我只有一些项目,高度会缩小,水平轴和标签会随之缩小。如果图表的高度足够小,标签缩小到几乎没有任何东西。

我该如何强制轴自身的最小高度?甚至是标签的最小字体大小?

我已经尝试在轴渲染器和轴标签渲染器上设置字体大小,而Flex仍然希望调整标签的大小。

解决方案

在容器上放一个minHeight,我相信...但大多只是想指出Axiis给你...


So I have a Flex bar chart that resizes dynamically, and if I have only a few items, the height shrinks and the horizontal axis and label shrink along with it. If the height of the chart is small enough, the label shrink down to practically nothing.

How can I enforce a minimum height for the axis itself? Or even a minimum font size for the labels?

I've tried setting the font size on the axis renderer and the axis label renderer and Flex still wants to resize the labels how it wants.

解决方案

put a minHeight on the container I believe... but mostly just wanted to point out Axiis to you...

这篇关于Flex图表标签的方式太小,如何调整轴的大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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