Giter Site home page Giter Site logo

f2 不能够设置title的吗? about wx-f2 HOT 7 CLOSED

antvis avatar antvis commented on September 18, 2024
f2 不能够设置title的吗?

from wx-f2.

Comments (7)

Gray497 avatar Gray497 commented on September 18, 2024

希望能帮到你

onShow: function onShow(ev) {
var items = ev.items;
items[0].title = items[0].origin.time;
items[0].name = null;
items[0].value = '温度:' + items[0].value;
items[1].name = null;
items[1].value = '湿度:' + items[1].value;
},

from wx-f2.

 avatar commented on September 18, 2024

这个好像不是设置曲线图的title的吧。看起来应该是页面的title的。。在官方教程里面,也是没有找到f2 配置title 的相关资料,搜出来的教程是 G2 的

from wx-f2.

 avatar commented on September 18, 2024

image

比如这种的,要在y轴配置一个 title = 销售额 这个,只能自己加一个view或者text 自己来配上去,但是在真机上,体验不是很好,真机上 canvas 默认被置顶了,加的 view或者 text 和 canvas 不是一个层级的

from wx-f2.

Gray497 avatar Gray497 commented on September 18, 2024

那我就没用过了

from wx-f2.

simaQ avatar simaQ commented on September 18, 2024

目前坐标轴不支持 title...
这种情况可以使用 chart.guide.text()。

DEMO:https://codepen.io/Sima/pen/QxaOBK

from wx-f2.

 avatar commented on September 18, 2024

试下看看, thanks~

from wx-f2.

Rabbitzzc avatar Rabbitzzc commented on September 18, 2024

目前坐标轴不支持 title...
这种情况可以使用 chart.guide.text()。

DEMO:https://codepen.io/Sima/pen/QxaOBK

那这块后续会加上标题么??两年了

from wx-f2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.