Flot饼图更改图例的位置 [英] Flot pie chart change position of legends

查看:103
本文介绍了Flot饼图更改图例的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们可以将图例的位置从默认的左侧更改为右侧还是底部?

Can we change the position of legends from default left side to right or bottom?

我们如何在鼠标指针上实现悬停,即内容应显示在鼠标指针上,而不是在其他DIV上显示

How can we implement hover on mouse pointer that is the content should be shown on the mouse pointer and not in other DIV

推荐答案

legend选项采用"position"属性来指定其位置:

The legend option takes a "position" attribute to specify it's location:

  legend: {
    position: "ne" or "nw" or "se" or "sw"
  }

鼠标指针"是什么意思.您是否希望内容"跟随指针?

What do you mean by "on the mouse pointer". Would you like the "content" to follow the pointer?

这篇关于Flot饼图更改图例的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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