如何动态调整Morris折线图y轴
问题描述:
我需要在我的Morris折线图中连接y轴。我至今的代码是:如何动态调整Morris折线图y轴
Morris.Line({
element : 'chart_01',
data:[<?php echo $chart_data; ?>],
xkey:'fecha',
ykeys:['Precio'],
labels:'Precio',
lineWidth:'6px',
xLabelAngle: 45
而且我这是怎么想的图表上,一旦Y轴进行调整。理想情况下,我不想从0开始,但更接近找到的范围。任何人都可以帮忙吗?谢谢。
答
我只注意到如何做到这一点:
> ymin: 'auto'