Giter Club home page Giter Club logo

Comments (7)

AAChartModel avatar AAChartModel commented on May 22, 2024

你给个设计稿看看,我看看能不能搞定,看你的需求描述,应该问题不大

from aachartcore.

XIAOPOPO avatar XIAOPOPO commented on May 22, 2024

如图 您好,需求大部分实现了。但是现在存在一个问题:就是当两条线其中一条Y坐标为空时,我想要的是tooltip依然显示两条,y坐标为空的那个提示待报价。现在的情况是移动到只有一个y坐标的地方无法显示提示框了。

"function () {\n" +
"var s = '' + '<b>' +  this.x + '</b>' + '' + '<br/>';\n" +
"var colorDot1 = '<span style=\\\"' + 'color:#AA0606; font-size:13px\\\"' + '>◉</span> ';\n" +
"var colorDot2 = '<span style=\\\"' + 'color:#2C4755; font-size:13px\\\"' + '>◉</span> ';\n" +
"var s1 = colorDot1  + this.points[0].y + this.points[0].series.name + '<br/>';\n" +
"var s2 = colorDot2  + this.points[1].y + this.points[1].series.name + '<br/>';\n" +
"if (this.points[1].y === '') {\n" +
"var s1 = colorDot1  + '无报价' + this.points[0].series.name + '<br/>';\n" +
"    }\n" +
"var s3 = '价差:' + Math.abs(this.points[1].y - this.points[0].y) + this.points[0].series.name.split('-')[0];\n" +
"s += s1 + s2 + s3;\n" +
"return s;\n" +
"    }"

这是我的js字符串。

from aachartcore.

XIAOPOPO avatar XIAOPOPO commented on May 22, 2024

20200528_111142
不自定义的时候,另外那根线的Y坐标为null时 也可以显示tooltip 想实现的是两根线横坐标对应的y都存在正常显示,如果其中一根y坐标是null还是提示两条信息

from aachartcore.

BestDreams avatar BestDreams commented on May 22, 2024

你好,请问下你下面这个可拖拽的轴是咋实现的?
image

from aachartcore.

AAChartModel avatar AAChartModel commented on May 22, 2024

你好,请问下你下面这个可拖拽的轴是咋实现的?

参考:

from aachartcore.

BestDreams avatar BestDreams commented on May 22, 2024

好的,谢谢,请问下有Android版本的demo吗

from aachartcore.

AAChartModel avatar AAChartModel commented on May 22, 2024

请问下有Android版本的demo吗

这个没有.

from aachartcore.

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.